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.00111/0.00111, allocations: 118.8 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001073/0.001073, allocations: 198 kB / 18.73 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001206, allocations: 59.91 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2484/0.2496, allocations: 50.55 MB / 408.7 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004184/0.2539, allocations: 2.25 MB / 411 MB, free: 15.28 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002061/0.2559, allocations: 1.227 MB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000185/0.2562, allocations: 4 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004384/0.2566, allocations: 87.5 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005678/0.2572, allocations: 163.1 kB / 412.5 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000393/0.2576, allocations: 123.6 kB / 412.6 MB, free: 13.67 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004139/0.258, allocations: 290.8 kB / 412.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002147/0.2583, allocations: 84.58 kB / 413 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001998/0.2585, allocations: 119.5 kB / 413.1 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002256/0.2587, allocations: 131.5 kB / 413.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.319e-05/0.2588, allocations: 20 kB / 413.2 MB, free: 13.04 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001571/0.2589, allocations: 47.98 kB / 413.3 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.409e-05/0.259, allocations: 59.81 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001323/0.2592, allocations: 115.4 kB / 413.4 MB, free: 12.82 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.2596, allocations: 293.8 kB / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2596, allocations: 0 / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.502e-06/0.2596, allocations: 0 / 413.7 MB, free: 12.53 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.091e-05/0.2596, allocations: 0 / 413.7 MB, free: 12.53 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.0008724/0.2605, allocations: 0.5608 MB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.857e-05/0.2606, allocations: 12.03 kB / 414.3 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.868e-05/0.2606, allocations: 50.73 kB / 414.3 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001484/0.2608, allocations: 32.75 kB / 414.4 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004971/0.2613, allocations: 263.8 kB / 414.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.387e-05/0.2613, allocations: 12.38 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.2614, allocations: 23.94 kB / 414.7 MB, free: 11.49 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003201/0.2617, allocations: 157.6 kB / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.532e-05/0.2617, allocations: 0 / 414.8 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.945e-05/0.2618, allocations: 12 kB / 414.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.765e-06/0.2618, allocations: 4 kB / 414.8 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.262, allocations: 123.6 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008961/0.2629, allocations: 0.5664 MB / 415.5 MB, free: 10.57 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003037/0.2632, allocations: 158.5 kB / 415.7 MB, free: 10.41 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001585/0.2634, allocations: 93.17 kB / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.03e-05/0.2635, allocations: 0 / 415.8 MB, free: 10.32 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.2637, allocations: 129.6 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.924e-06/0.2637, allocations: 4 kB / 415.9 MB, free: 10.18 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004893/0.2642, allocations: 229.4 kB / 416.1 MB, free: 9.945 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.2643, allocations: 55.41 kB / 416.2 MB, free: 9.879 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002536/0.2645, allocations: 257 kB / 416.4 MB, free: 9.617 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.289e-05/0.2646, allocations: 29.7 kB / 416.5 MB, free: 9.582 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.2647, allocations: 152.3 kB / 416.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.994e-05/0.2647, allocations: 75.41 kB / 416.7 MB, free: 9.355 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.887e-05/0.2648, allocations: 45.66 kB / 416.7 MB, free: 9.305 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001361/0.2649, allocations: 342.8 kB / 417.1 MB, free: 8.961 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001141/0.2651, allocations: 47.98 kB / 417.1 MB, free: 8.914 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001313/0.2652, allocations: 95.27 kB / 417.2 MB, free: 8.809 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000257/0.2655, allocations: 139.4 kB / 417.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.721e-06/0.2655, allocations: 0 / 417.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003416/0.2658, allocations: 205.3 kB / 417.5 MB, free: 8.453 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.2659, allocations: 6.812 kB / 417.6 MB, free: 8.449 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.96e-06/0.2659, allocations: 4 kB / 417.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.402e-05/0.2659, allocations: 0 / 417.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002115/0.2661, allocations: 51.84 kB / 417.6 MB, free: 8.395 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.742e-06/0.2661, allocations: 4 kB / 417.6 MB, free: 8.391 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.2662, allocations: 19.98 kB / 417.6 MB, free: 8.371 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.599e-05/0.2663, allocations: 12 kB / 417.6 MB, free: 8.359 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.0001325/0.2664, allocations: 141.8 kB / 417.8 MB, free: 8.211 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.506e-05/0.2664, allocations: 19.86 kB / 417.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.178e-05/0.2665, allocations: 34.17 kB / 417.8 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.7e-06/0.2665, allocations: 7.938 kB / 417.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.7e-06/0.2665, allocations: 0 / 417.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2665, allocations: 0 / 417.8 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002743/0.2668, allocations: 289.4 kB / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.2668, allocations: 0 / 418.1 MB, free: 7.816 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001811/0.267, allocations: 39.98 kB / 418.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.267, allocations: 0 / 418.2 MB, free: 7.777 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.745e-05/0.2671, allocations: 4 kB / 418.2 MB, free: 7.773 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.2671, allocations: 3.938 kB / 418.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.113e-06/0.2671, allocations: 0 / 418.2 MB, free: 7.77 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004738/0.2675, allocations: 287 kB / 418.4 MB, free: 7.473 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.951e-05/0.2676, allocations: 97.03 kB / 418.5 MB, free: 7.359 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.559e-05/0.2677, allocations: 15.94 kB / 418.6 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.2e-05/0.2678, allocations: 8 kB / 418.6 MB, free: 7.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.128e-05/0.2678, allocations: 11.94 kB / 418.6 MB, free: 7.324 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.038e-05/0.2678, allocations: 7.984 kB / 418.6 MB, free: 7.316 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000174/0.268, allocations: 196.5 kB / 418.8 MB, free: 7.125 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.268, allocations: 3.938 kB / 418.8 MB, free: 7.121 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002658/0.2683, allocations: 55.94 kB / 418.8 MB, free: 7.066 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.001517/0.2698, allocations: 1.124 MB / 420 MB, free: 6.055 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003175/0.2701, allocations: 143.9 kB / 420.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.2702, allocations: 0 / 420.1 MB, free: 5.914 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001321/0.2703, allocations: 67.92 kB / 420.2 MB, free: 5.848 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003325/0.2706, allocations: 63.89 kB / 420.2 MB, free: 5.793 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002939/0.2736, allocations: 2.384 MB / 422.6 MB, free: 3.301 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.2739, allocations: 0.7519 MB / 423.4 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001122/0.2741, allocations: 33.92 kB / 423.4 MB, free: 2.488 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001198/0.2742, allocations: 71.36 kB / 423.5 MB, free: 2.418 MB / 334.1 MB Notification: Performance of SimCode: time 2.61e-07/0.2742, allocations: 3.938 kB / 423.5 MB, free: 2.414 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.3006, allocations: 5.349 MB / 428.8 MB, free: 13.17 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.484/7.785, allocations: 18.81 kB / 428.8 MB, free: 13.15 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.0.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