Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001508/0.001508, allocations: 85.95 kB / 22.21 MB, free: 2.289 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.002107/0.002107, allocations: 163.3 kB / 25.61 MB, free: 8.91 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9075/0.9075, allocations: 158.6 MB / 187.5 MB, free: 2.797 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.462e-06/1.462e-06, allocations: 0 / 251.4 MB, free: 7.285 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.845e-05/1.992e-05, allocations: 2.312 kB / 251.4 MB, free: 7.281 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003026/0.003046, allocations: 2.249 MB / 253.7 MB, free: 5.016 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00114/0.004186, allocations: 0.9438 MB / 254.6 MB, free: 4.062 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001084/0.004294, allocations: 4 kB / 254.6 MB, free: 4.059 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003299/0.004624, allocations: 91.44 kB / 254.7 MB, free: 3.969 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002616/0.004886, allocations: 139.1 kB / 254.9 MB, free: 3.832 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.005113, allocations: 123.6 kB / 255 MB, free: 3.711 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002371/0.00535, allocations: 294.6 kB / 255.3 MB, free: 3.422 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001344/0.005484, allocations: 64.78 kB / 255.3 MB, free: 3.359 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001369/0.005621, allocations: 151.7 kB / 255.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001335/0.005755, allocations: 107.7 kB / 255.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/0.00578, allocations: 16 kB / 255.6 MB, free: 3.09 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001037/0.005884, allocations: 59.86 kB / 255.7 MB, free: 3.031 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.57e-05/0.005939, allocations: 59.8 kB / 255.7 MB, free: 2.973 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.895e-05/0.005998, allocations: 75.78 kB / 255.8 MB, free: 2.898 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000227/0.006225, allocations: 211.2 kB / 256 MB, free: 2.691 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.006227, allocations: 0 / 256 MB, free: 2.691 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.12e-07/0.006228, allocations: 0 / 256 MB, free: 2.691 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.677e-06/0.006231, allocations: 8 kB / 256 MB, free: 2.684 MB / 234.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.000563/0.006794, allocations: 0.5778 MB / 256.6 MB, free: 2.066 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.006834, allocations: 15.98 kB / 256.6 MB, free: 2.051 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001349/0.006969, allocations: 48.69 kB / 256.7 MB, free: 2.004 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001972/0.007166, allocations: 189.1 kB / 256.8 MB, free: 1.789 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.007185, allocations: 16.38 kB / 256.9 MB, free: 1.773 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.203e-05/0.007207, allocations: 16.38 kB / 256.9 MB, free: 1.758 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001577/0.007365, allocations: 134.4 kB / 257 MB, free: 1.617 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.007376, allocations: 7.922 kB / 257 MB, free: 1.609 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.007389, allocations: 7.984 kB / 257 MB, free: 1.602 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.831e-06/0.007395, allocations: 4 kB / 257 MB, free: 1.598 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.122e-05/0.007476, allocations: 51.94 kB / 257.1 MB, free: 1.547 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004851/0.007961, allocations: 483.4 kB / 257.5 MB, free: 1.047 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001403/0.008101, allocations: 126.8 kB / 257.7 MB, free: 0.9102 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.933e-05/0.008171, allocations: 51.28 kB / 257.7 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.886e-05/0.00819, allocations: 7.938 kB / 257.7 MB, free: 0.8516 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001103/0.0083, allocations: 89 kB / 257.8 MB, free: 0.75 MB / 234.7 MB Notification: Performance of pre-optimization done (n=20): time 1.343e-06/0.008301, allocations: 0 / 257.8 MB, free: 0.75 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.0002257/0.008527, allocations: 169.7 kB / 258 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.71e-05/0.008554, allocations: 55.41 kB / 258 MB, free: 0.5117 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001335/0.008688, allocations: 257.8 kB / 258.3 MB, free: 248 kB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.731e-05/0.008705, allocations: 29.7 kB / 258.3 MB, free: 212 kB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.215e-05/0.008787, allocations: 199.1 kB / 258.5 MB, free: 8 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.275e-05/0.00884, allocations: 75.53 kB / 258.6 MB, free: 15.93 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.125e-05/0.008891, allocations: 51.34 kB / 258.6 MB, free: 15.87 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001217/0.009013, allocations: 0.5001 MB / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.201e-05/0.009045, allocations: 19.98 kB / 259.1 MB, free: 15.34 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.07e-05/0.009105, allocations: 78.62 kB / 259.2 MB, free: 15.25 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.479e-05/0.0092, allocations: 106.3 kB / 259.3 MB, free: 15.13 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.009202, allocations: 4 kB / 259.3 MB, free: 15.12 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001553/0.009358, allocations: 161.3 kB / 259.5 MB, free: 14.96 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.056e-05/0.009368, allocations: 4 kB / 259.5 MB, free: 14.96 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.009373, allocations: 4 kB / 259.5 MB, free: 14.95 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.119e-05/0.009385, allocations: 0 / 259.5 MB, free: 14.95 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.009505, allocations: 47.97 kB / 259.5 MB, free: 14.91 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.618e-06/0.00951, allocations: 4 kB / 259.6 MB, free: 14.9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.552e-05/0.009556, allocations: 15.89 kB / 259.6 MB, free: 14.89 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.009563, allocations: 7.938 kB / 259.6 MB, free: 14.88 MB / 250.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.347e-05/0.009647, allocations: 168.5 kB / 259.7 MB, free: 14.7 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.009673, allocations: 31.95 kB / 259.8 MB, free: 14.67 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001797/0.009853, allocations: 163.3 kB / 259.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.009856, allocations: 7.938 kB / 259.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.009857, allocations: 0 / 259.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.009861, allocations: 0 / 259.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001373/0.009998, allocations: 173.1 kB / 260.1 MB, free: 14.3 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.01, allocations: 7.938 kB / 260.1 MB, free: 14.29 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001055/0.01011, allocations: 35.98 kB / 260.1 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.926e-06/0.01011, allocations: 4 kB / 260.2 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.267e-06/0.01012, allocations: 0 / 260.2 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.01012, allocations: 4 kB / 260.2 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.01012, allocations: 3.984 kB / 260.2 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002112/0.01033, allocations: 228 kB / 260.4 MB, free: 14 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.171e-05/0.01035, allocations: 27.78 kB / 260.4 MB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.01037, allocations: 4 kB / 260.4 MB, free: 13.97 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.72e-05/0.01041, allocations: 4 kB / 260.4 MB, free: 13.96 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.562e-05/0.01043, allocations: 15.97 kB / 260.4 MB, free: 13.95 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.01045, allocations: 7.984 kB / 260.4 MB, free: 13.94 MB / 250.7 MB Notification: Performance of sorting global known variables: time 7.246e-05/0.01052, allocations: 184.5 kB / 260.6 MB, free: 13.76 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01052, allocations: 0 / 260.6 MB, free: 13.76 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001744/0.01069, allocations: 63.89 kB / 260.7 MB, free: 13.7 MB / 250.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.0007192/0.01141, allocations: 393.7 kB / 261.1 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001399/0.01155, allocations: 108.1 kB / 261.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.052e-06/0.01155, allocations: 0 / 261.2 MB, free: 13.25 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.87e-05/0.01161, allocations: 55.59 kB / 261.2 MB, free: 13.19 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002087/0.01182, allocations: 51.83 kB / 261.3 MB, free: 13.14 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007298/0.01255, allocations: 473.7 kB / 261.7 MB, free: 12.64 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.579e-05/0.0126, allocations: 87.97 kB / 261.8 MB, free: 12.54 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.869e-05/0.01266, allocations: 21.64 kB / 261.8 MB, free: 12.52 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.61e-05/0.01275, allocations: 110.2 kB / 262 MB, free: 12.41 MB / 250.7 MB Notification: Performance of SimCode: time 6.71e-07/0.01275, allocations: 0 / 262 MB, free: 12.41 MB / 250.7 MB Notification: Performance of Templates: time 0.00448/0.01723, allocations: 2.885 MB / 264.8 MB, free: 9.531 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.004378191195428]