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.001356/0.001356, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.001359/0.001359, allocations: 192.5 kB / 23.71 MB, free: 4.406 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.471/1.471, allocations: 225.7 MB / 252.5 MB, free: 12.79 MB / 206.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.001581/0.001581, allocations: 47.92 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.239/0.2405, allocations: 52.18 MB / 422.6 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003726/0.2443, allocations: 2.133 MB / 424.7 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001868/0.2461, allocations: 1.033 MB / 425.7 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/0.2463, allocations: 11.94 kB / 425.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.2466, allocations: 87.56 kB / 425.8 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003252/0.2469, allocations: 115.2 kB / 425.9 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003813/0.2473, allocations: 157.9 kB / 426.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003337/0.2476, allocations: 286.8 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001819/0.2478, allocations: 60.78 kB / 426.4 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001502/0.248, allocations: 115.6 kB / 426.5 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001869/0.2481, allocations: 119.5 kB / 426.7 MB, free: 10.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.248e-05/0.2482, allocations: 20 kB / 426.7 MB, free: 10.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001306/0.2483, allocations: 47.98 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.819e-05/0.2484, allocations: 63.75 kB / 426.8 MB, free: 10.15 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001175/0.2485, allocations: 91.55 kB / 426.9 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003816/0.2489, allocations: 300.4 kB / 427.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.2489, allocations: 0 / 427.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2489, allocations: 0 / 427.2 MB, free: 9.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.322e-06/0.2489, allocations: 0 / 427.2 MB, free: 9.766 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.000803/0.2497, allocations: 489.5 kB / 427.6 MB, free: 9.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.741e-05/0.2498, allocations: 8.031 kB / 427.7 MB, free: 9.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.795e-05/0.2498, allocations: 46.73 kB / 427.7 MB, free: 9.195 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001364/0.25, allocations: 32.75 kB / 427.7 MB, free: 9.164 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003314/0.2503, allocations: 191.1 kB / 427.9 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.269e-05/0.2503, allocations: 12.38 kB / 427.9 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.213e-05/0.2504, allocations: 23.94 kB / 428 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003457/0.2507, allocations: 173.3 kB / 428.1 MB, free: 8.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.2507, allocations: 7.953 kB / 428.1 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.795e-05/0.2507, allocations: 4 kB / 428.1 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.063e-06/0.2507, allocations: 4 kB / 428.1 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002696/0.251, allocations: 119.9 kB / 428.3 MB, free: 8.605 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008728/0.2519, allocations: 0.5031 MB / 428.8 MB, free: 8.059 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003467/0.2522, allocations: 150.5 kB / 428.9 MB, free: 7.902 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.2524, allocations: 84.83 kB / 429 MB, free: 7.816 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.42e-05/0.2524, allocations: 4 kB / 429 MB, free: 7.812 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002376/0.2527, allocations: 123.6 kB / 429.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.2527, allocations: 0 / 429.1 MB, free: 7.68 MB / 334.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005274/0.2532, allocations: 240 kB / 429.4 MB, free: 7.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.2532, allocations: 55.41 kB / 429.4 MB, free: 7.375 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002753/0.2535, allocations: 256.9 kB / 429.7 MB, free: 7.117 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.978e-05/0.2535, allocations: 33.7 kB / 429.7 MB, free: 7.078 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.2537, allocations: 144.4 kB / 429.8 MB, free: 6.93 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.337e-05/0.2537, allocations: 71.44 kB / 429.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.73e-05/0.2538, allocations: 37.7 kB / 429.9 MB, free: 6.816 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000148/0.2539, allocations: 338.8 kB / 430.3 MB, free: 6.477 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001234/0.2541, allocations: 55.97 kB / 430.3 MB, free: 6.422 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001447/0.2542, allocations: 83.41 kB / 430.4 MB, free: 6.328 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002663/0.2545, allocations: 154 kB / 430.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.2545, allocations: 0 / 430.6 MB, free: 6.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003687/0.2548, allocations: 221.2 kB / 430.8 MB, free: 5.945 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.082e-05/0.2549, allocations: 6.812 kB / 430.8 MB, free: 5.941 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2549, allocations: 4 kB / 430.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.2549, allocations: 0 / 430.8 MB, free: 5.938 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002173/0.2551, allocations: 43.92 kB / 430.8 MB, free: 5.895 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.265e-06/0.2551, allocations: 7.938 kB / 430.8 MB, free: 5.887 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.2552, allocations: 19.84 kB / 430.8 MB, free: 5.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.767e-05/0.2552, allocations: 11.98 kB / 430.9 MB, free: 5.855 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.0001422/0.2554, allocations: 141.8 kB / 431 MB, free: 5.707 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.543e-05/0.2554, allocations: 23.95 kB / 431 MB, free: 5.684 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004425/0.2559, allocations: 220.9 kB / 431.2 MB, free: 5.461 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.2559, allocations: 4 kB / 431.2 MB, free: 5.457 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.2559, allocations: 3.938 kB / 431.2 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.2559, allocations: 3.938 kB / 431.3 MB, free: 5.449 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.2562, allocations: 244.6 kB / 431.5 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2562, allocations: 0 / 431.5 MB, free: 5.168 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001935/0.2564, allocations: 39.92 kB / 431.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2564, allocations: 0 / 431.5 MB, free: 5.129 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.053e-05/0.2564, allocations: 8 kB / 431.5 MB, free: 5.121 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.2564, allocations: 4 kB / 431.5 MB, free: 5.117 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.956e-06/0.2564, allocations: 3.938 kB / 431.5 MB, free: 5.113 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005287/0.2569, allocations: 307.7 kB / 431.8 MB, free: 4.797 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.383e-05/0.257, allocations: 23.8 kB / 431.9 MB, free: 4.773 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.367e-05/0.257, allocations: 4 kB / 431.9 MB, free: 4.77 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.453e-05/0.2571, allocations: 7.938 kB / 431.9 MB, free: 4.762 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.439e-05/0.2571, allocations: 23.95 kB / 431.9 MB, free: 4.738 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.07e-05/0.2571, allocations: 4 kB / 431.9 MB, free: 4.734 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001873/0.2573, allocations: 192.5 kB / 432.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2573, allocations: 0 / 432.1 MB, free: 4.543 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002832/0.2576, allocations: 67.95 kB / 432.2 MB, free: 4.477 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.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.002325/0.2599, allocations: 1.174 MB / 433.3 MB, free: 3.465 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000361/0.2603, allocations: 146.9 kB / 433.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2603, allocations: 0 / 433.5 MB, free: 3.324 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001441/0.2604, allocations: 75.91 kB / 433.6 MB, free: 3.25 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003481/0.2608, allocations: 56.7 kB / 433.6 MB, free: 3.195 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003003/0.2638, allocations: 2.386 MB / 436 MB, free: 0.7188 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001389/0.2639, allocations: 149.1 kB / 436.1 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000115/0.264, allocations: 33.92 kB / 436.2 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001208/0.2642, allocations: 79.41 kB / 436.3 MB, free: 456 kB / 334.1 MB Notification: Performance of SimCode: time 7.41e-07/0.2642, allocations: 0 / 436.3 MB, free: 456 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03468/0.2988, allocations: 6.135 MB / 442.4 MB, free: 10.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.79, allocations: 3.938 kB / 442.4 MB, free: 10.38 MB / 350.1 MB " [Timeout remaining time 648] (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: 28.10114328423515]