Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001375/0.001375, allocations: 111.1 kB / 20.44 MB, free: 1.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001507/0.001507, allocations: 212 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.446/1.446, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Thermal.HeatTransfer.Examples.Motor,fileNamePrefix="Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001661/0.001661, allocations: 51.91 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2561/0.2578, allocations: 53.35 MB / 431.1 MB, free: 6.652 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003653/0.2614, allocations: 2.162 MB / 433.2 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00215/0.2636, allocations: 1.165 MB / 434.4 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001077/0.2637, allocations: 4 kB / 434.4 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.264, allocations: 91.5 kB / 434.5 MB, free: 3.215 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004457/0.2645, allocations: 167.1 kB / 434.6 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002908/0.2648, allocations: 123.6 kB / 434.8 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003735/0.2651, allocations: 290.8 kB / 435 MB, free: 2.645 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001829/0.2653, allocations: 65.52 kB / 435.1 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001535/0.2655, allocations: 119.6 kB / 435.2 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001983/0.2657, allocations: 115.5 kB / 435.3 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.378e-05/0.2657, allocations: 23.94 kB / 435.4 MB, free: 2.324 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.2659, allocations: 47.98 kB / 435.4 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.677e-05/0.2659, allocations: 63.77 kB / 435.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001168/0.2661, allocations: 99.47 kB / 435.6 MB, free: 2.117 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003893/0.2665, allocations: 300.4 kB / 435.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.648e-06/0.2665, allocations: 0 / 435.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2665, allocations: 0 / 435.9 MB, free: 1.824 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.682e-06/0.2665, allocations: 0 / 435.9 MB, free: 1.824 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.0008061/0.2673, allocations: 497.2 kB / 436.4 MB, free: 1.309 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.2673, allocations: 12.03 kB / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.882e-05/0.2674, allocations: 54.73 kB / 436.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001346/0.2675, allocations: 32.73 kB / 436.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003484/0.2679, allocations: 209.9 kB / 436.7 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.2679, allocations: 12.38 kB / 436.7 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.85e-05/0.2679, allocations: 15.94 kB / 436.7 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003227/0.2682, allocations: 161.6 kB / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.2683, allocations: 0 / 436.8 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.974e-05/0.2683, allocations: 8 kB / 436.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.2683, allocations: 7.984 kB / 436.9 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002747/0.2686, allocations: 127.7 kB / 437 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008956/0.2695, allocations: 0.4953 MB / 437.5 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003673/0.2698, allocations: 161.1 kB / 437.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001701/0.27, allocations: 83.73 kB / 437.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.555e-05/0.27, allocations: 0 / 437.7 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002349/0.2702, allocations: 127.2 kB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.2702, allocations: 4 kB / 437.8 MB, free: 15.71 MB / 350.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005356/0.2708, allocations: 233.4 kB / 438.1 MB, free: 15.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.321e-05/0.2708, allocations: 55.41 kB / 438.1 MB, free: 15.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000345/0.2712, allocations: 272.9 kB / 438.4 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.532e-05/0.2712, allocations: 29.7 kB / 438.4 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.2713, allocations: 148.4 kB / 438.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.811e-05/0.2714, allocations: 75.28 kB / 438.6 MB, free: 14.88 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.031e-05/0.2715, allocations: 41.72 kB / 438.7 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001592/0.2716, allocations: 334.8 kB / 439 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.2717, allocations: 51.97 kB / 439.1 MB, free: 14.45 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001506/0.2719, allocations: 95.34 kB / 439.1 MB, free: 14.34 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002665/0.2722, allocations: 146.4 kB / 439.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2722, allocations: 3.938 kB / 439.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003657/0.2725, allocations: 209.4 kB / 439.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.492e-05/0.2725, allocations: 8 kB / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.2725, allocations: 0 / 439.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.243e-05/0.2726, allocations: 4.094 kB / 439.5 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002211/0.2728, allocations: 59.8 kB / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.2728, allocations: 0 / 439.6 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.2729, allocations: 19.88 kB / 439.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.56e-05/0.2729, allocations: 8 kB / 439.6 MB, free: 13.88 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.0001475/0.273, allocations: 149.8 kB / 439.7 MB, free: 13.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.55e-05/0.2731, allocations: 27.81 kB / 439.8 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004471/0.2735, allocations: 211.7 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.2735, allocations: 4 kB / 440 MB, free: 13.48 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.2736, allocations: 7.938 kB / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2736, allocations: 0 / 440 MB, free: 13.47 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002818/0.2738, allocations: 244.5 kB / 440.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.363e-06/0.2738, allocations: 0 / 440.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.274, allocations: 43.86 kB / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.274, allocations: 0 / 440.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.06e-05/0.2741, allocations: 11.98 kB / 440.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2741, allocations: 0 / 440.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.2741, allocations: 3.938 kB / 440.3 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005452/0.2746, allocations: 304 kB / 440.6 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.374e-05/0.2746, allocations: 27.83 kB / 440.6 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.671e-05/0.2747, allocations: 8.062 kB / 440.6 MB, free: 12.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.2748, allocations: 11.92 kB / 440.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.052e-05/0.2748, allocations: 15.98 kB / 440.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.2748, allocations: 7.984 kB / 440.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002004/0.275, allocations: 200.4 kB / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.275, allocations: 0 / 440.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002815/0.2753, allocations: 63.88 kB / 440.9 MB, free: 12.49 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.002382/0.2777, allocations: 1.171 MB / 442.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003221/0.278, allocations: 142.3 kB / 442.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.713e-06/0.278, allocations: 0 / 442.2 MB, free: 11.34 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001498/0.2782, allocations: 75.89 kB / 442.3 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003442/0.2785, allocations: 59.02 kB / 442.4 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003151/0.2817, allocations: 2.412 MB / 444.8 MB, free: 8.699 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001413/0.2818, allocations: 146.2 kB / 444.9 MB, free: 8.535 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001083/0.2819, allocations: 25.94 kB / 444.9 MB, free: 8.508 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001271/0.282, allocations: 79.41 kB / 445 MB, free: 8.43 MB / 350.1 MB Notification: Performance of SimCode: time 5.82e-07/0.282, allocations: 3.938 kB / 445 MB, free: 8.426 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0359/0.3179, allocations: 6.244 MB / 451.3 MB, free: 2.258 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.52/11.84, allocations: 3.25 kB / 451.3 MB, free: 2.258 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor.fmu > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 27.9367955327034]