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.001142/0.001142, allocations: 75.59 kB / 21.18 MB, free: 3.391 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.001018/0.001018, allocations: 161 kB / 24.56 MB, free: 20 kB / 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 1.02/1.02, allocations: 177.2 MB / 205 MB, free: 5.293 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: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=720000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.24e-05/2.402e-05, allocations: 8.984 kB / 273 MB, free: 1.418 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002784/0.002808, allocations: 2.298 MB / 275.3 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001582/0.00439, allocations: 1.2 MB / 276.5 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001153/0.004505, allocations: 3.938 kB / 276.5 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003404/0.004845, allocations: 91.5 kB / 276.5 MB, free: 13.8 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003887/0.005234, allocations: 170.9 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.005494, allocations: 111.6 kB / 276.8 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002613/0.005755, allocations: 314.5 kB / 277.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001545/0.00591, allocations: 64.78 kB / 277.2 MB, free: 13.16 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001475/0.006057, allocations: 159.7 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001487/0.006206, allocations: 99.75 kB / 277.4 MB, free: 12.9 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.003e-05/0.006236, allocations: 23.94 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001061/0.006342, allocations: 51.92 kB / 277.5 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.606e-05/0.006408, allocations: 63.75 kB / 277.6 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.784e-05/0.006486, allocations: 79.77 kB / 277.7 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002666/0.006753, allocations: 215.2 kB / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.006755, allocations: 0 / 277.9 MB, free: 12.48 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.006757, allocations: 8 kB / 277.9 MB, free: 12.47 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.489e-06/0.006761, allocations: 0 / 277.9 MB, free: 12.47 MB / 266.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.0006107/0.007372, allocations: 0.5778 MB / 278.5 MB, free: 11.86 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.007407, allocations: 8.031 kB / 278.5 MB, free: 11.85 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00015/0.007557, allocations: 56.67 kB / 278.5 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002182/0.007775, allocations: 196.1 kB / 278.7 MB, free: 11.57 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.307e-05/0.007799, allocations: 20.38 kB / 278.7 MB, free: 11.55 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.277e-05/0.007831, allocations: 12.38 kB / 278.7 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002082/0.00804, allocations: 142.6 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.276e-05/0.008052, allocations: 7.922 kB / 278.9 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.461e-05/0.008067, allocations: 4 kB / 278.9 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.488e-06/0.008076, allocations: 11.94 kB / 278.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001387/0.008215, allocations: 75.72 kB / 279 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006151/0.00883, allocations: 0.5069 MB / 279.5 MB, free: 10.75 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001848/0.009015, allocations: 126.9 kB / 279.6 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.845e-05/0.009093, allocations: 59.64 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.576e-05/0.009119, allocations: 4.344 kB / 279.7 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001421/0.009261, allocations: 105 kB / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.482e-06/0.009263, allocations: 0 / 279.8 MB, free: 10.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003052/0.009568, allocations: 192.1 kB / 280 MB, free: 10.24 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.277e-05/0.009601, allocations: 55.41 kB / 280 MB, free: 10.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.009772, allocations: 270.7 kB / 280.3 MB, free: 9.891 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.869e-05/0.009791, allocations: 29.7 kB / 280.3 MB, free: 9.855 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.792e-05/0.009889, allocations: 215 kB / 280.5 MB, free: 9.637 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.008e-05/0.009929, allocations: 63.44 kB / 280.6 MB, free: 9.574 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.384e-05/0.009983, allocations: 51.36 kB / 280.6 MB, free: 9.516 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001205/0.0101, allocations: 0.5001 MB / 281.1 MB, free: 9.004 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.034e-05/0.01015, allocations: 27.98 kB / 281.2 MB, free: 8.977 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.313e-05/0.01023, allocations: 77.34 kB / 281.2 MB, free: 8.887 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000135/0.01036, allocations: 118.6 kB / 281.3 MB, free: 8.754 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.085e-06/0.01036, allocations: 4 kB / 281.4 MB, free: 8.75 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001909/0.01056, allocations: 172.6 kB / 281.5 MB, free: 8.578 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.01057, allocations: 4 kB / 281.5 MB, free: 8.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.01057, allocations: 4 kB / 281.5 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.557e-05/0.01059, allocations: 0 / 281.5 MB, free: 8.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001431/0.01073, allocations: 47.91 kB / 281.6 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.01074, allocations: 4 kB / 281.6 MB, free: 8.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.004e-05/0.01079, allocations: 15.89 kB / 281.6 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.019e-05/0.0108, allocations: 8 kB / 281.6 MB, free: 8.496 MB / 266.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.755e-05/0.01089, allocations: 178.9 kB / 281.8 MB, free: 8.312 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.672e-05/0.01091, allocations: 31.8 kB / 281.8 MB, free: 8.281 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002319/0.01115, allocations: 179.3 kB / 282 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.01115, allocations: 0 / 282 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.01115, allocations: 0 / 282 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.01116, allocations: 0 / 282 MB, free: 8.102 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001709/0.01133, allocations: 224.4 kB / 282.2 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.01133, allocations: 0 / 282.2 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.01144, allocations: 35.98 kB / 282.2 MB, free: 7.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.01144, allocations: 4 kB / 282.2 MB, free: 7.809 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.01145, allocations: 8 kB / 282.2 MB, free: 7.801 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.554e-06/0.01146, allocations: 4 kB / 282.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.01146, allocations: 0 / 282.3 MB, free: 7.797 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002719/0.01173, allocations: 244.9 kB / 282.5 MB, free: 7.535 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.16e-05/0.01175, allocations: 19.86 kB / 282.5 MB, free: 7.516 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.137e-05/0.01177, allocations: 4 kB / 282.5 MB, free: 7.512 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.936e-05/0.01181, allocations: 11.98 kB / 282.5 MB, free: 7.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.838e-05/0.01185, allocations: 7.984 kB / 282.5 MB, free: 7.492 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.718e-05/0.01187, allocations: 11.98 kB / 282.5 MB, free: 7.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001012/0.01197, allocations: 197.5 kB / 282.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01197, allocations: 32 / 282.7 MB, free: 7.289 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001966/0.01216, allocations: 67.83 kB / 282.8 MB, free: 7.223 MB / 266.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.0007947/0.01296, allocations: 391 kB / 283.2 MB, free: 6.977 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001887/0.01315, allocations: 122.3 kB / 283.3 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.01315, allocations: 0 / 283.3 MB, free: 6.855 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.949e-05/0.01323, allocations: 63.59 kB / 283.4 MB, free: 6.789 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002346/0.01346, allocations: 52.08 kB / 283.4 MB, free: 6.742 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000831/0.01429, allocations: 485.6 kB / 283.9 MB, free: 6.234 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.98e-05/0.01434, allocations: 87.97 kB / 284 MB, free: 6.129 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.413e-05/0.01441, allocations: 33.92 kB / 284 MB, free: 6.098 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.713e-05/0.01446, allocations: 20.5 kB / 284 MB, free: 6.078 MB / 266.7 MB Notification: Performance of SimCode: time 6.61e-07/0.01446, allocations: 3.938 kB / 284 MB, free: 6.074 MB / 266.7 MB Notification: Performance of Templates: time 0.004748/0.0192, allocations: 2.673 MB / 286.7 MB, free: 3.438 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (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 & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 6.127752909436822]