Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 120.1 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00134/0.00134, allocations: 198.8 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.474/1.474, allocations: 225.6 MB / 249.1 MB, free: 3.617 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001495/0.001495, allocations: 47.92 kB / 365.6 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09914/0.1006, allocations: 52.15 MB / 417.8 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00354/0.1042, allocations: 2.246 MB / 420 MB, free: 10.44 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.106, allocations: 1.095 MB / 421.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001015/0.1061, allocations: 7.938 kB / 421.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003236/0.1064, allocations: 87.56 kB / 421.2 MB, free: 9.242 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003104/0.1067, allocations: 123.2 kB / 421.3 MB, free: 9.121 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003676/0.1071, allocations: 147.6 kB / 421.5 MB, free: 8.977 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003373/0.1074, allocations: 278.8 kB / 421.7 MB, free: 8.703 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001709/0.1076, allocations: 68.53 kB / 421.8 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001623/0.1078, allocations: 123.5 kB / 421.9 MB, free: 8.512 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001818/0.1079, allocations: 131.5 kB / 422.1 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.454e-05/0.108, allocations: 16 kB / 422.1 MB, free: 8.367 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001239/0.1081, allocations: 51.98 kB / 422.1 MB, free: 8.316 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.113e-05/0.1082, allocations: 55.78 kB / 422.2 MB, free: 8.262 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001321/0.1083, allocations: 115.4 kB / 422.3 MB, free: 8.148 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003779/0.1087, allocations: 290.8 kB / 422.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1087, allocations: 0 / 422.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1087, allocations: 0 / 422.6 MB, free: 7.863 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.444e-06/0.1087, allocations: 4 kB / 422.6 MB, free: 7.859 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.0008342/0.1095, allocations: 0.5455 MB / 423.1 MB, free: 7.266 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1096, allocations: 8.031 kB / 423.1 MB, free: 7.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.481e-05/0.1096, allocations: 58.67 kB / 423.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001336/0.1098, allocations: 32.73 kB / 423.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003514/0.1101, allocations: 260.8 kB / 423.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.126e-05/0.1101, allocations: 12.38 kB / 423.5 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.675e-05/0.1102, allocations: 23.88 kB / 423.5 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003245/0.1105, allocations: 165.2 kB / 423.7 MB, free: 6.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/0.1105, allocations: 3.953 kB / 423.7 MB, free: 6.656 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.1105, allocations: 4 kB / 423.7 MB, free: 6.652 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.1105, allocations: 4 kB / 423.7 MB, free: 6.648 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002523/0.1108, allocations: 115.9 kB / 423.8 MB, free: 6.535 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008815/0.1117, allocations: 0.5625 MB / 424.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003156/0.112, allocations: 150.5 kB / 424.5 MB, free: 5.766 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.1122, allocations: 80.2 kB / 424.6 MB, free: 5.688 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.974e-05/0.1122, allocations: 7.984 kB / 424.6 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002353/0.1124, allocations: 126 kB / 424.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.1124, allocations: 0 / 424.7 MB, free: 5.547 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005101/0.1129, allocations: 221.5 kB / 424.9 MB, free: 5.324 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.113, allocations: 59.36 kB / 425 MB, free: 5.254 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002725/0.1133, allocations: 256.9 kB / 425.2 MB, free: 4.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.574e-05/0.1133, allocations: 33.7 kB / 425.3 MB, free: 4.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.1134, allocations: 140.5 kB / 425.4 MB, free: 4.812 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.176e-05/0.1134, allocations: 71.44 kB / 425.5 MB, free: 4.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.104e-05/0.1135, allocations: 45.64 kB / 425.5 MB, free: 4.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.1137, allocations: 338.8 kB / 425.9 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00012/0.1138, allocations: 47.98 kB / 425.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.1139, allocations: 87.98 kB / 426 MB, free: 4.207 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.1142, allocations: 147.4 kB / 426.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.1142, allocations: 0 / 426.1 MB, free: 4.051 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003585/0.1146, allocations: 199.3 kB / 426.3 MB, free: 3.852 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.1146, allocations: 8 kB / 426.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.378e-06/0.1146, allocations: 0 / 426.3 MB, free: 3.844 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.671e-05/0.1146, allocations: 7.984 kB / 426.3 MB, free: 3.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000217/0.1148, allocations: 55.95 kB / 426.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.431e-06/0.1148, allocations: 0 / 426.4 MB, free: 3.781 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.1149, allocations: 31.78 kB / 426.4 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.342e-05/0.1149, allocations: 4 kB / 426.4 MB, free: 3.746 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.lossTable.nextTimeEvent,$whenCondition1,lossTable.nextTimeEventScaled,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001488/0.1151, allocations: 148.1 kB / 426.6 MB, free: 3.594 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.033e-05/0.1151, allocations: 27.84 kB / 426.6 MB, free: 3.566 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.528e-05/0.1152, allocations: 30.17 kB / 426.6 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.218e-06/0.1152, allocations: 3.938 kB / 426.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.408e-06/0.1152, allocations: 0 / 426.6 MB, free: 3.531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.908e-06/0.1152, allocations: 4 kB / 426.6 MB, free: 3.527 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003026/0.1155, allocations: 289.4 kB / 426.9 MB, free: 3.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.1155, allocations: 4 kB / 426.9 MB, free: 3.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001859/0.1157, allocations: 31.98 kB / 427 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.113e-06/0.1157, allocations: 0 / 427 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.479e-05/0.1157, allocations: 0 / 427 MB, free: 3.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.384e-06/0.1157, allocations: 11.88 kB / 427 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1157, allocations: 0 / 427 MB, free: 3.148 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005227/0.1163, allocations: 282.8 kB / 427.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.287e-05/0.1163, allocations: 96.97 kB / 427.3 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.84e-05/0.1164, allocations: 11.94 kB / 427.4 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.097e-05/0.1164, allocations: 7.938 kB / 427.4 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.21e-05/0.1165, allocations: 15.94 kB / 427.4 MB, free: 2.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.223e-05/0.1165, allocations: 11.98 kB / 427.4 MB, free: 2.695 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001849/0.1167, allocations: 184.5 kB / 427.6 MB, free: 2.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1167, allocations: 4 kB / 427.6 MB, free: 2.508 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002759/0.117, allocations: 51.94 kB / 427.6 MB, free: 2.457 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (winding.T,core.T) * Number of discrete variables: 3 ($whenCondition1,lossTable.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of discrete states: 2 (lossTable.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002208/0.1192, allocations: 1.128 MB / 428.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003281/0.1195, allocations: 137.3 kB / 428.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1195, allocations: 192 / 428.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.1197, allocations: 71.91 kB / 429 MB, free: 1.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.12, allocations: 48.58 kB / 429 MB, free: 1.215 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003052/0.1231, allocations: 2.362 MB / 431.4 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000371/0.1234, allocations: 0.7519 MB / 432.1 MB, free: 13.97 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001009/0.1235, allocations: 25.94 kB / 432.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001303/0.1237, allocations: 71.41 kB / 432.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.1237, allocations: 4 kB / 432.2 MB, free: 13.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03549/0.1591, allocations: 5.342 MB / 437.6 MB, free: 8.605 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.295/8.454, allocations: 6.031 kB / 437.6 MB, free: 8.602 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.01 Modelica_4_0_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 24.245549666695297]