Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001309, allocations: 121.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001413/0.001413, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.418/1.418, allocations: 227.4 MB / 246.9 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001717/0.001717, allocations: 63.89 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2566/0.2583, allocations: 50.54 MB / 408.7 MB, free: 1.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.0041/0.2625, allocations: 2.258 MB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.2647, allocations: 1.216 MB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001486/0.2649, allocations: 4 kB / 412.2 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004017/0.2653, allocations: 91.5 kB / 412.3 MB, free: 13.92 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004895/0.2658, allocations: 163 kB / 412.5 MB, free: 13.76 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003534/0.2662, allocations: 119.6 kB / 412.6 MB, free: 13.64 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004013/0.2666, allocations: 294.8 kB / 412.9 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000209/0.2668, allocations: 88.56 kB / 413 MB, free: 13.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001594/0.267, allocations: 111.6 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002057/0.2672, allocations: 131.4 kB / 413.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.078e-05/0.2673, allocations: 20 kB / 413.2 MB, free: 13.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001377/0.2674, allocations: 55.97 kB / 413.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.28e-05/0.2675, allocations: 51.84 kB / 413.3 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.2676, allocations: 123.3 kB / 413.4 MB, free: 12.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004063/0.2681, allocations: 293.7 kB / 413.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.2681, allocations: 4 kB / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.2681, allocations: 0 / 413.7 MB, free: 12.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.341e-06/0.2681, allocations: 0 / 413.7 MB, free: 12.49 MB / 334.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.0008873/0.269, allocations: 0.5647 MB / 414.3 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.272e-05/0.269, allocations: 8.031 kB / 414.3 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.135e-05/0.2691, allocations: 54.73 kB / 414.4 MB, free: 11.81 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001553/0.2693, allocations: 32.75 kB / 414.4 MB, free: 11.78 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004424/0.2697, allocations: 259.9 kB / 414.6 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.061e-05/0.2697, allocations: 8.375 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.527e-05/0.2698, allocations: 19.94 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000378/0.2702, allocations: 165.5 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.2702, allocations: 4 kB / 414.8 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.2702, allocations: 8 kB / 414.8 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.767e-06/0.2703, allocations: 4 kB / 414.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002562/0.2705, allocations: 115.7 kB / 415 MB, free: 11.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009876/0.2715, allocations: 0.5625 MB / 415.5 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003311/0.2719, allocations: 162.5 kB / 415.7 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001711/0.272, allocations: 92.67 kB / 415.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.541e-05/0.2721, allocations: 4 kB / 415.8 MB, free: 10.29 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002528/0.2723, allocations: 113.7 kB / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 2.225e-06/0.2723, allocations: 0 / 415.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005439/0.2729, allocations: 237.4 kB / 416.1 MB, free: 9.926 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.273, allocations: 59.34 kB / 416.2 MB, free: 9.855 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000302/0.2733, allocations: 261 kB / 416.4 MB, free: 9.59 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.826e-05/0.2733, allocations: 29.7 kB / 416.5 MB, free: 9.555 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.2735, allocations: 152.4 kB / 416.6 MB, free: 9.402 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.86e-05/0.2735, allocations: 75.42 kB / 416.7 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.386e-05/0.2736, allocations: 37.67 kB / 416.7 MB, free: 9.285 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001987/0.2738, allocations: 342.8 kB / 417.1 MB, free: 8.941 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.274, allocations: 55.97 kB / 417.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001445/0.2741, allocations: 83.34 kB / 417.2 MB, free: 8.793 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.2744, allocations: 150.7 kB / 417.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.2744, allocations: 0 / 417.3 MB, free: 8.637 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003693/0.2748, allocations: 209.3 kB / 417.5 MB, free: 8.426 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.2748, allocations: 4 kB / 417.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.891e-06/0.2748, allocations: 0 / 417.5 MB, free: 8.422 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.2748, allocations: 4 kB / 417.6 MB, free: 8.418 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002219/0.2751, allocations: 43.92 kB / 417.6 MB, free: 8.375 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.2751, allocations: 3.938 kB / 417.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.2752, allocations: 23.88 kB / 417.6 MB, free: 8.348 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.518e-05/0.2752, allocations: 8.094 kB / 417.6 MB, free: 8.34 MB / 334.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.0001528/0.2754, allocations: 141.8 kB / 417.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.931e-05/0.2754, allocations: 27.84 kB / 417.8 MB, free: 8.164 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.591e-05/0.2755, allocations: 26.19 kB / 417.8 MB, free: 8.137 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.2755, allocations: 7.938 kB / 417.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.855e-06/0.2755, allocations: 0 / 417.8 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.2755, allocations: 15.91 kB / 417.8 MB, free: 8.113 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003164/0.2758, allocations: 285.4 kB / 418.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2758, allocations: 0 / 418.1 MB, free: 7.785 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001968/0.2761, allocations: 39.98 kB / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.2761, allocations: 0 / 418.2 MB, free: 7.746 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.558e-05/0.2761, allocations: 7.984 kB / 418.2 MB, free: 7.738 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.27e-06/0.2761, allocations: 7.922 kB / 418.2 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.2761, allocations: 0 / 418.2 MB, free: 7.73 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005252/0.2766, allocations: 291 kB / 418.5 MB, free: 7.43 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.612e-05/0.2767, allocations: 89.05 kB / 418.5 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.76e-05/0.2768, allocations: 15.92 kB / 418.6 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.213e-05/0.2769, allocations: 8.062 kB / 418.6 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.331e-05/0.2769, allocations: 19.88 kB / 418.6 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.2769, allocations: 4 kB / 418.6 MB, free: 7.277 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002133/0.2772, allocations: 196.5 kB / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2772, allocations: 0 / 418.8 MB, free: 7.086 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002939/0.2775, allocations: 55.94 kB / 418.8 MB, free: 7.031 MB / 334.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.002348/0.2798, allocations: 1.131 MB / 420 MB, free: 6.016 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003513/0.2802, allocations: 138.6 kB / 420.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.2802, allocations: 0 / 420.1 MB, free: 5.883 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001432/0.2803, allocations: 71.91 kB / 420.2 MB, free: 5.812 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003554/0.2807, allocations: 48.53 kB / 420.2 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00305/0.2838, allocations: 2.396 MB / 422.6 MB, free: 3.262 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.2842, allocations: 0.7518 MB / 423.4 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001187/0.2843, allocations: 25.95 kB / 423.4 MB, free: 2.457 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.2845, allocations: 75.41 kB / 423.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of SimCode: time 8.71e-07/0.2845, allocations: 0 / 423.5 MB, free: 2.383 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0297/0.3142, allocations: 5.36 MB / 428.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.109/8.424, allocations: 12.03 kB / 428.8 MB, free: 13.11 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[1440025]=7200.000000 File[98317]=1024.060000 " Variables in the reference:time,core.T,winding.T Variables in the result:time,core.T,winding.T