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.0009214/0.0009214, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009068/0.0009068, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.8784/0.8784, allocations: 177.1 MB / 204.3 MB, free: 5.727 MB / 186.7 MB " [Timeout remaining time 179] 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 1.233e-06/1.233e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.213e-05/1.337e-05, allocations: 2.281 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002232/0.002246, allocations: 2.155 MB / 326.7 MB, free: 13.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00127/0.003515, allocations: 1.181 MB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.559e-05/0.003611, allocations: 4 kB / 327.9 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005433/0.004154, allocations: 91.44 kB / 328 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000331/0.004485, allocations: 166.9 kB / 328.1 MB, free: 12.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002036/0.004689, allocations: 123.5 kB / 328.3 MB, free: 12.22 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000231/0.00492, allocations: 306.6 kB / 328.6 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.005062, allocations: 68.56 kB / 328.6 MB, free: 11.86 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001359/0.005198, allocations: 163.6 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001313/0.005329, allocations: 107.7 kB / 328.9 MB, free: 11.59 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.281e-05/0.005352, allocations: 16 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.55e-05/0.005448, allocations: 59.91 kB / 329 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.003e-05/0.005508, allocations: 55.77 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.093e-05/0.005569, allocations: 79.83 kB / 329.1 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.005822, allocations: 291 kB / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.914e-06/0.005824, allocations: 0 / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.322e-06/0.005825, allocations: 4 kB / 329.4 MB, free: 11.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.005829, allocations: 4 kB / 329.4 MB, free: 11.09 MB / 298.7 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.0005353/0.006364, allocations: 489.4 kB / 329.9 MB, free: 10.58 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.301e-05/0.006397, allocations: 8.031 kB / 329.9 MB, free: 10.57 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.118e-05/0.006439, allocations: 46.73 kB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.686e-05/0.006525, allocations: 32.75 kB / 329.9 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.006737, allocations: 209.1 kB / 330.2 MB, free: 10.26 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.452e-05/0.006751, allocations: 16.38 kB / 330.2 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.006776, allocations: 16.38 kB / 330.2 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002103/0.006986, allocations: 169.9 kB / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.097e-05/0.006997, allocations: 0 / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.329e-05/0.00701, allocations: 4 kB / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.631e-06/0.007016, allocations: 4 kB / 330.4 MB, free: 10.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001735/0.007189, allocations: 127.6 kB / 330.5 MB, free: 9.922 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005545/0.007744, allocations: 0.5032 MB / 331 MB, free: 9.375 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002043/0.007948, allocations: 154.5 kB / 331.1 MB, free: 9.215 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.184e-05/0.00804, allocations: 88.73 kB / 331.2 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.008057, allocations: 0 / 331.2 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000144/0.008201, allocations: 119.3 kB / 331.3 MB, free: 9 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.192e-06/0.008202, allocations: 0 / 331.3 MB, free: 9 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003217/0.008524, allocations: 240.5 kB / 331.6 MB, free: 8.762 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.796e-05/0.008551, allocations: 55.34 kB / 331.6 MB, free: 8.695 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000173/0.008724, allocations: 273.7 kB / 331.9 MB, free: 8.422 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.008741, allocations: 37.7 kB / 331.9 MB, free: 8.379 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.699e-05/0.008808, allocations: 144.3 kB / 332.1 MB, free: 8.234 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.004e-05/0.008848, allocations: 79.38 kB / 332.2 MB, free: 8.156 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.464e-05/0.008892, allocations: 37.7 kB / 332.2 MB, free: 8.113 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.936e-05/0.008972, allocations: 338.8 kB / 332.5 MB, free: 7.773 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.877e-05/0.009041, allocations: 51.97 kB / 332.6 MB, free: 7.723 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.696e-05/0.009128, allocations: 87.39 kB / 332.7 MB, free: 7.625 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001573/0.009285, allocations: 150.4 kB / 332.8 MB, free: 7.469 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.009287, allocations: 4 kB / 332.8 MB, free: 7.465 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002066/0.009494, allocations: 209.4 kB / 333 MB, free: 7.254 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.031e-05/0.009504, allocations: 4 kB / 333 MB, free: 7.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.009509, allocations: 4 kB / 333 MB, free: 7.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.989e-06/0.009519, allocations: 3.938 kB / 333 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001229/0.009642, allocations: 47.91 kB / 333.1 MB, free: 7.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.264e-06/0.009649, allocations: 7.984 kB / 333.1 MB, free: 7.188 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.047e-05/0.0097, allocations: 19.83 kB / 333.1 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.12e-05/0.009711, allocations: 12.09 kB / 333.1 MB, free: 7.156 MB / 298.7 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 8.515e-05/0.009796, allocations: 145.8 kB / 333.3 MB, free: 7.004 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.095e-05/0.009817, allocations: 23.81 kB / 333.3 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/0.01006, allocations: 219.7 kB / 333.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.01006, allocations: 0 / 333.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.336e-06/0.01006, allocations: 0 / 333.5 MB, free: 6.762 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.298e-06/0.01007, allocations: 4 kB / 333.5 MB, free: 6.758 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.01024, allocations: 256.5 kB / 333.7 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-06/0.01025, allocations: 0 / 333.7 MB, free: 6.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001008/0.01035, allocations: 43.91 kB / 333.8 MB, free: 6.422 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.01035, allocations: 4 kB / 333.8 MB, free: 6.418 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.205e-05/0.01036, allocations: 4 kB / 333.8 MB, free: 6.414 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.01036, allocations: 4 kB / 333.8 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.01036, allocations: 0 / 333.8 MB, free: 6.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003118/0.01067, allocations: 308.9 kB / 334.1 MB, free: 6.094 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.307e-05/0.0107, allocations: 23.83 kB / 334.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.01072, allocations: 7.984 kB / 334.1 MB, free: 6.062 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.831e-05/0.01076, allocations: 7.984 kB / 334.1 MB, free: 6.055 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.299e-05/0.01079, allocations: 19.91 kB / 334.2 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.466e-05/0.0108, allocations: 8 kB / 334.2 MB, free: 6.027 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001159/0.01092, allocations: 205.3 kB / 334.4 MB, free: 5.824 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01092, allocations: 0 / 334.4 MB, free: 5.824 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001827/0.0111, allocations: 59.89 kB / 334.4 MB, free: 5.766 MB / 298.7 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.001251/0.01235, allocations: 1.159 MB / 335.6 MB, free: 4.762 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000205/0.01256, allocations: 147 kB / 335.7 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.252e-06/0.01256, allocations: 0 / 335.7 MB, free: 4.621 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 8.111e-05/0.01264, allocations: 71.91 kB / 335.8 MB, free: 4.551 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002134/0.01285, allocations: 66 kB / 335.9 MB, free: 4.496 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001825/0.01468, allocations: 2.383 MB / 338.2 MB, free: 2.004 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.277e-05/0.01477, allocations: 146.2 kB / 338.4 MB, free: 1.84 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 7.826e-05/0.01485, allocations: 29.92 kB / 338.4 MB, free: 1.809 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.223e-05/0.01493, allocations: 76.47 kB / 338.5 MB, free: 1.734 MB / 298.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01493, allocations: 4 kB / 338.5 MB, free: 1.73 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01958/0.03452, allocations: 6.364 MB / 344.9 MB, free: 11.44 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.52/6.555, allocations: 18.08 kB / 344.9 MB, free: 11.43 MB / 314.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Thermal_HeatTransfer_Examples_Motor_fmu --startTime=0 --stopTime=7200 --stepSize=0.01 --timeout=50 --tolerance=1e-06 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.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins/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 656] Reference file matches [Calling sys.exit(0), Time elapsed: 16.746315205469728]