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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001342/0.001342, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00164/0.00164, allocations: 205.4 kB / 23.72 MB, free: 4.391 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.462/1.462, allocations: 230.5 MB / 257.4 MB, free: 7.719 MB / 206.1 MB " [Timeout remaining time 178] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002015/0.002015, allocations: 67.88 kB / 377.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2497/0.2517, allocations: 53.4 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003912/0.2557, allocations: 2.151 MB / 433.3 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00216/0.2578, allocations: 1.176 MB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.258, allocations: 4 kB / 434.5 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003638/0.2583, allocations: 87.5 kB / 434.5 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005063/0.2588, allocations: 167.1 kB / 434.7 MB, free: 2.844 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003247/0.2592, allocations: 123.6 kB / 434.8 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004423/0.2596, allocations: 290.8 kB / 435.1 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001928/0.2598, allocations: 64.77 kB / 435.2 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.26, allocations: 115.6 kB / 435.3 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002156/0.2602, allocations: 119.5 kB / 435.4 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.006e-05/0.2603, allocations: 23.94 kB / 435.4 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001493/0.2604, allocations: 55.98 kB / 435.5 MB, free: 2.062 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.766e-05/0.2605, allocations: 59.75 kB / 435.5 MB, free: 2.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000123/0.2606, allocations: 95.53 kB / 435.6 MB, free: 1.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004211/0.261, allocations: 292.5 kB / 435.9 MB, free: 1.625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.261, allocations: 4 kB / 435.9 MB, free: 1.621 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.261, allocations: 3.984 kB / 435.9 MB, free: 1.617 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.023e-05/0.2611, allocations: 4 kB / 435.9 MB, free: 1.613 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.0008781/0.2619, allocations: 0.4933 MB / 436.4 MB, free: 1.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.262, allocations: 11.98 kB / 436.4 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.311e-05/0.262, allocations: 50.73 kB / 436.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.2622, allocations: 32.75 kB / 436.5 MB, free: 0.9883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003675/0.2626, allocations: 198 kB / 436.7 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.325e-05/0.2626, allocations: 16.38 kB / 436.7 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.624e-05/0.2626, allocations: 16.38 kB / 436.7 MB, free: 0.7383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003291/0.2629, allocations: 165.7 kB / 436.9 MB, free: 0.5703 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.754e-05/0.263, allocations: 4 kB / 436.9 MB, free: 0.5664 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.262e-05/0.263, allocations: 4 kB / 436.9 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.263, allocations: 8 kB / 436.9 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002812/0.2633, allocations: 119.7 kB / 437 MB, free: 448 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009257/0.2642, allocations: 0.4954 MB / 437.5 MB, free: 15.9 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003581/0.2646, allocations: 158.5 kB / 437.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000167/0.2647, allocations: 77.17 kB / 437.8 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.256e-05/0.2648, allocations: 4 kB / 437.8 MB, free: 15.65 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002442/0.265, allocations: 126 kB / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 2.645e-06/0.265, allocations: 0 / 437.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005486/0.2656, allocations: 241.3 kB / 438.1 MB, free: 15.28 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.202e-05/0.2656, allocations: 55.41 kB / 438.2 MB, free: 15.21 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003077/0.2659, allocations: 272.9 kB / 438.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.2659, allocations: 29.7 kB / 438.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001127/0.2661, allocations: 148.4 kB / 438.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.049e-05/0.2661, allocations: 75.36 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.608e-05/0.2662, allocations: 45.7 kB / 438.7 MB, free: 14.63 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001588/0.2664, allocations: 338.8 kB / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001211/0.2665, allocations: 51.98 kB / 439.1 MB, free: 14.24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001426/0.2666, allocations: 92.05 kB / 439.2 MB, free: 14.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002613/0.2669, allocations: 154.7 kB / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.974e-06/0.2669, allocations: 0 / 439.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000391/0.2673, allocations: 209.3 kB / 439.6 MB, free: 13.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.705e-05/0.2673, allocations: 4.094 kB / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.763e-06/0.2673, allocations: 4 kB / 439.6 MB, free: 13.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.2673, allocations: 4 kB / 439.6 MB, free: 13.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000221/0.2675, allocations: 51.91 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.2676, allocations: 3.938 kB / 439.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.2677, allocations: 19.83 kB / 439.6 MB, free: 13.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.565e-05/0.2677, allocations: 8 kB / 439.7 MB, free: 13.67 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.0001611/0.2678, allocations: 138.3 kB / 439.8 MB, free: 13.53 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.212e-05/0.2679, allocations: 27.81 kB / 439.8 MB, free: 13.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004332/0.2683, allocations: 223 kB / 440 MB, free: 13.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.821e-06/0.2683, allocations: 8 kB / 440 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.2683, allocations: 0 / 440 MB, free: 13.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.2683, allocations: 7.969 kB / 440.1 MB, free: 13.26 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003024/0.2686, allocations: 244.5 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.047e-06/0.2686, allocations: 3.984 kB / 440.3 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.2688, allocations: 35.98 kB / 440.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.517e-06/0.2688, allocations: 3.938 kB / 440.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.878e-05/0.2688, allocations: 8 kB / 440.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.003e-06/0.2688, allocations: 0 / 440.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.2688, allocations: 0 / 440.3 MB, free: 12.93 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005308/0.2694, allocations: 311.8 kB / 440.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.28e-05/0.2694, allocations: 23.81 kB / 440.7 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.461e-05/0.2695, allocations: 8 kB / 440.7 MB, free: 12.58 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.373e-05/0.2695, allocations: 11.94 kB / 440.7 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.623e-05/0.2696, allocations: 15.91 kB / 440.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.135e-05/0.2696, allocations: 8 kB / 440.7 MB, free: 12.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001998/0.2698, allocations: 200.5 kB / 440.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2698, allocations: 0 / 440.9 MB, free: 12.35 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000294/0.2701, allocations: 63.89 kB / 441 MB, free: 12.29 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.nextTimeEvent,lossTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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.002409/0.2725, allocations: 1.161 MB / 442.1 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003382/0.2728, allocations: 147.8 kB / 442.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.2729, allocations: 0 / 442.3 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001412/0.273, allocations: 71.91 kB / 442.3 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003548/0.2733, allocations: 56.27 kB / 442.4 MB, free: 10.98 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003344/0.2767, allocations: 2.425 MB / 444.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001608/0.2769, allocations: 146.2 kB / 445 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001177/0.277, allocations: 25.94 kB / 445 MB, free: 8.27 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001419/0.2771, allocations: 75.41 kB / 445.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of SimCode: time 7.01e-07/0.2771, allocations: 0 / 445.1 MB, free: 8.195 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04889/0.326, allocations: 6.238 MB / 451.3 MB, free: 1.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.66, allocations: 7.938 kB / 451.3 MB, free: 1.988 MB / 350.1 MB " [Timeout remaining time 648] (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) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 27.505284492857754]