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.00238/0.00238, allocations: 91.61 kB / 20.96 MB, free: 3.461 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.002843/0.002843, allocations: 169.3 kB / 24.27 MB, free: 152 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.546/1.546, allocations: 177.1 MB / 204.6 MB, free: 5.559 MB / 186.7 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: 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.362e-06/1.362e-06, allocations: 0 / 272.3 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.423e-05/2.559e-05, allocations: 2.312 kB / 272.3 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004145/0.004171, allocations: 2.258 MB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002607/0.006778, allocations: 1.196 MB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001641/0.006942, allocations: 4 kB / 275.8 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003997/0.007342, allocations: 87.5 kB / 275.8 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005521/0.007894, allocations: 174.9 kB / 276 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003919/0.008286, allocations: 123.5 kB / 276.1 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004617/0.008747, allocations: 298.6 kB / 276.4 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002014/0.008949, allocations: 68.77 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000306/0.009255, allocations: 159.6 kB / 276.6 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000237/0.009492, allocations: 107.7 kB / 276.8 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.225e-05/0.009544, allocations: 20 kB / 276.8 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001617/0.009706, allocations: 51.92 kB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000102/0.009808, allocations: 59.81 kB / 276.9 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001301/0.009938, allocations: 79.77 kB / 277 MB, free: 13.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0004927/0.01043, allocations: 303 kB / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.116e-06/0.01043, allocations: 0 / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.01043, allocations: 0 / 277.3 MB, free: 12.83 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.875e-06/0.01044, allocations: 0 / 277.3 MB, free: 12.83 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.001067/0.01151, allocations: 0.5931 MB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.01155, allocations: 8.031 kB / 277.9 MB, free: 12.2 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.01177, allocations: 48.69 kB / 277.9 MB, free: 12.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003595/0.01213, allocations: 208.1 kB / 278.1 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.229e-05/0.01215, allocations: 12.38 kB / 278.1 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.002e-05/0.01221, allocations: 24.31 kB / 278.1 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003423/0.01255, allocations: 150 kB / 278.3 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.949e-05/0.01257, allocations: 7.922 kB / 278.3 MB, free: 11.72 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.01259, allocations: 11.94 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.0126, allocations: 4 kB / 278.3 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002798/0.01288, allocations: 103.9 kB / 278.4 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001038/0.01392, allocations: 0.5499 MB / 279 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003663/0.01428, allocations: 159 kB / 279.1 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001668/0.01445, allocations: 79.66 kB / 279.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.567e-05/0.01448, allocations: 4 kB / 279.2 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002562/0.01473, allocations: 128.5 kB / 279.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.583e-06/0.01473, allocations: 0 / 279.3 MB, free: 10.63 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0005912/0.01532, allocations: 229.4 kB / 279.5 MB, free: 10.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.881e-05/0.01537, allocations: 51.41 kB / 279.6 MB, free: 10.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003282/0.0157, allocations: 302.7 kB / 279.9 MB, free: 10.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.535e-05/0.01573, allocations: 33.7 kB / 279.9 MB, free: 9.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.01589, allocations: 203.1 kB / 280.1 MB, free: 9.777 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.367e-05/0.01597, allocations: 79.31 kB / 280.2 MB, free: 9.699 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001014/0.01608, allocations: 55.36 kB / 280.3 MB, free: 9.637 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002941/0.01637, allocations: 0.5196 MB / 280.8 MB, free: 9.105 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.01649, allocations: 43.98 kB / 280.8 MB, free: 9.062 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001648/0.01666, allocations: 97.12 kB / 280.9 MB, free: 8.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000286/0.01694, allocations: 157.6 kB / 281.1 MB, free: 8.785 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.01695, allocations: 4 kB / 281.1 MB, free: 8.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004218/0.01737, allocations: 209.4 kB / 281.3 MB, free: 8.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/0.01738, allocations: 4 kB / 281.3 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.185e-06/0.01739, allocations: 4 kB / 281.3 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.472e-05/0.01741, allocations: 0 / 281.3 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.01764, allocations: 47.91 kB / 281.3 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.01765, allocations: 4 kB / 281.3 MB, free: 8.512 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.872e-05/0.01775, allocations: 15.89 kB / 281.4 MB, free: 8.496 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.964e-05/0.01777, allocations: 11.94 kB / 281.4 MB, free: 8.484 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 0.0001841/0.01795, allocations: 188.5 kB / 281.5 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.001e-05/0.018, allocations: 23.86 kB / 281.6 MB, free: 8.266 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004492/0.01845, allocations: 203.4 kB / 281.8 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.01846, allocations: 4 kB / 281.8 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.01846, allocations: 0 / 281.8 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.398e-06/0.01846, allocations: 0 / 281.8 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003315/0.0188, allocations: 244.4 kB / 282 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.0188, allocations: 0 / 282 MB, free: 7.785 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000227/0.01902, allocations: 43.92 kB / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.01903, allocations: 0 / 282.1 MB, free: 7.742 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.01904, allocations: 4 kB / 282.1 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.659e-06/0.01905, allocations: 4 kB / 282.1 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.01905, allocations: 0 / 282.1 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005841/0.01963, allocations: 311 kB / 282.4 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.061e-05/0.01967, allocations: 19.8 kB / 282.4 MB, free: 7.391 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.89e-05/0.01971, allocations: 8 kB / 282.4 MB, free: 7.383 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.388e-05/0.0198, allocations: 4 kB / 282.4 MB, free: 7.379 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.139e-05/0.01986, allocations: 15.97 kB / 282.4 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.479e-05/0.01988, allocations: 8 kB / 282.4 MB, free: 7.355 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002124/0.02009, allocations: 213.5 kB / 282.6 MB, free: 7.148 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02009, allocations: 0 / 282.6 MB, free: 7.148 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000294/0.02039, allocations: 63.92 kB / 282.7 MB, free: 7.086 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.003172/0.02356, allocations: 449.8 kB / 283.1 MB, free: 6.824 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005471/0.02411, allocations: 151.4 kB / 283.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.02411, allocations: 0 / 283.3 MB, free: 6.672 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002601/0.02437, allocations: 86.78 kB / 283.4 MB, free: 6.586 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005204/0.02489, allocations: 44.83 kB / 283.4 MB, free: 6.539 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001382/0.02627, allocations: 0.4945 MB / 283.9 MB, free: 6.008 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002183/0.02649, allocations: 137.8 kB / 284 MB, free: 5.855 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001577/0.02665, allocations: 33.92 kB / 284.1 MB, free: 5.82 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001013/0.02675, allocations: 20.5 kB / 284.1 MB, free: 5.801 MB / 266.7 MB Notification: Performance of SimCode: time 8.72e-07/0.02675, allocations: 0 / 284.1 MB, free: 5.801 MB / 266.7 MB Notification: Performance of Templates: time 0.01047/0.03722, allocations: 2.667 MB / 286.8 MB, free: 3.172 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","/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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 8.944185924949124]