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.001026/0.001026, allocations: 75.77 kB / 22.45 MB, free: 2.098 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.001073/0.001073, allocations: 164 kB / 25.75 MB, free: 8.582 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.9466/0.9466, allocations: 158.6 MB / 187.5 MB, free: 2.168 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.703e-06/1.703e-06, allocations: 0 / 251.1 MB, free: 7.781 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.615e-05/2.785e-05, allocations: 6.25 kB / 251.1 MB, free: 7.773 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003903/0.003931, allocations: 2.253 MB / 253.3 MB, free: 5.504 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001401/0.005331, allocations: 0.9556 MB / 254.3 MB, free: 4.539 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001191/0.005451, allocations: 4 kB / 254.3 MB, free: 4.535 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003365/0.005787, allocations: 99.38 kB / 254.4 MB, free: 4.438 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002822/0.006069, allocations: 127.2 kB / 254.5 MB, free: 4.312 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.00636, allocations: 127.6 kB / 254.6 MB, free: 4.188 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006/0.00696, allocations: 294.6 kB / 254.9 MB, free: 3.898 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.007127, allocations: 56.78 kB / 255 MB, free: 3.844 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000174/0.007301, allocations: 159.7 kB / 255.1 MB, free: 3.688 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001594/0.007461, allocations: 107.7 kB / 255.3 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.00749, allocations: 16 kB / 255.3 MB, free: 3.566 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001206/0.007611, allocations: 55.92 kB / 255.3 MB, free: 3.512 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.187e-05/0.007683, allocations: 59.75 kB / 255.4 MB, free: 3.453 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.792e-05/0.007761, allocations: 83.7 kB / 255.5 MB, free: 3.371 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002958/0.008056, allocations: 203.3 kB / 255.7 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.00806, allocations: 0 / 255.7 MB, free: 3.172 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.008062, allocations: 0 / 255.7 MB, free: 3.172 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.077e-06/0.008071, allocations: 0 / 255.7 MB, free: 3.172 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.0006748/0.008746, allocations: 0.5817 MB / 256.2 MB, free: 2.555 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.132e-05/0.008787, allocations: 19.97 kB / 256.3 MB, free: 2.535 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001687/0.008956, allocations: 52.69 kB / 256.3 MB, free: 2.484 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002341/0.00919, allocations: 185.2 kB / 256.5 MB, free: 2.273 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.176e-05/0.009211, allocations: 12.38 kB / 256.5 MB, free: 2.262 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.238e-05/0.009244, allocations: 20.38 kB / 256.5 MB, free: 2.242 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002232/0.009467, allocations: 146.4 kB / 256.7 MB, free: 2.09 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.00948, allocations: 3.938 kB / 256.7 MB, free: 2.086 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.533e-05/0.009495, allocations: 8 kB / 256.7 MB, free: 2.078 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.538e-06/0.009505, allocations: 4 kB / 256.7 MB, free: 2.074 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001319/0.009637, allocations: 67.94 kB / 256.8 MB, free: 2.008 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006325/0.01027, allocations: 0.5069 MB / 257.3 MB, free: 1.465 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002247/0.01049, allocations: 134.8 kB / 257.4 MB, free: 1.32 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.781e-05/0.01058, allocations: 59.66 kB / 257.4 MB, free: 1.258 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.987e-05/0.0106, allocations: 4 kB / 257.5 MB, free: 1.254 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001537/0.01076, allocations: 101 kB / 257.6 MB, free: 1.141 MB / 234.7 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.01076, allocations: 0 / 257.6 MB, free: 1.141 MB / 234.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003048/0.01106, allocations: 181.8 kB / 257.7 MB, free: 0.957 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.033e-05/0.01109, allocations: 59.34 kB / 257.8 MB, free: 0.8867 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001651/0.01126, allocations: 269.8 kB / 258.1 MB, free: 0.6055 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.01127, allocations: 25.7 kB / 258.1 MB, free: 0.5742 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.736e-05/0.01136, allocations: 195.1 kB / 258.3 MB, free: 388 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.398e-05/0.01141, allocations: 71.38 kB / 258.3 MB, free: 316 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-05/0.01146, allocations: 51.36 kB / 258.4 MB, free: 256 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.0116, allocations: 0.5079 MB / 258.9 MB, free: 15.73 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.828e-05/0.01166, allocations: 27.98 kB / 258.9 MB, free: 15.7 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.628e-05/0.01173, allocations: 78.66 kB / 259 MB, free: 15.61 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001344/0.01187, allocations: 122.5 kB / 259.1 MB, free: 15.47 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.01187, allocations: 0 / 259.1 MB, free: 15.47 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001989/0.01207, allocations: 169.5 kB / 259.3 MB, free: 15.3 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.533e-05/0.01208, allocations: 8 kB / 259.3 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.01209, allocations: 0 / 259.3 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.371e-05/0.0121, allocations: 4 kB / 259.3 MB, free: 15.29 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001445/0.01225, allocations: 47.91 kB / 259.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.01225, allocations: 0 / 259.3 MB, free: 15.24 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.952e-05/0.0123, allocations: 15.89 kB / 259.4 MB, free: 15.23 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.01231, allocations: 8 kB / 259.4 MB, free: 15.22 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.918e-05/0.0124, allocations: 176.4 kB / 259.5 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.021e-05/0.01243, allocations: 31.86 kB / 259.6 MB, free: 15 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002331/0.01266, allocations: 175.3 kB / 259.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.747e-06/0.01267, allocations: 4 kB / 259.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.01267, allocations: 0 / 259.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.01268, allocations: 0 / 259.7 MB, free: 14.82 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.01285, allocations: 216.4 kB / 260 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.973e-06/0.01285, allocations: 0 / 260 MB, free: 14.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001115/0.01296, allocations: 35.98 kB / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.01296, allocations: 0 / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.275e-05/0.01297, allocations: 4 kB / 260 MB, free: 14.54 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.01298, allocations: 4 kB / 260 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/0.01298, allocations: 0 / 260 MB, free: 14.53 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002911/0.01327, allocations: 248 kB / 260.2 MB, free: 14.27 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.444e-05/0.01329, allocations: 27.8 kB / 260.3 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.01331, allocations: 3.984 kB / 260.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.353e-05/0.01336, allocations: 8 kB / 260.3 MB, free: 14.23 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.179e-05/0.0134, allocations: 11.97 kB / 260.3 MB, free: 14.21 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.679e-05/0.01342, allocations: 11.94 kB / 260.3 MB, free: 14.2 MB / 250.7 MB Notification: Performance of sorting global known variables: time 9.922e-05/0.01352, allocations: 192.5 kB / 260.5 MB, free: 14.02 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01352, allocations: 0 / 260.5 MB, free: 14.02 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001937/0.01371, allocations: 59.89 kB / 260.5 MB, free: 13.96 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.0008332/0.01454, allocations: 407.5 kB / 260.9 MB, free: 13.61 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002037/0.01475, allocations: 116 kB / 261.1 MB, free: 13.49 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.322e-06/0.01475, allocations: 4.188 kB / 261.1 MB, free: 13.48 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.476e-05/0.01482, allocations: 63.59 kB / 261.1 MB, free: 13.42 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002341/0.01506, allocations: 47.89 kB / 261.2 MB, free: 13.37 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008265/0.01588, allocations: 477.6 kB / 261.6 MB, free: 12.88 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.182e-05/0.01594, allocations: 87.97 kB / 261.7 MB, free: 12.77 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.156e-05/0.01601, allocations: 29.62 kB / 261.8 MB, free: 12.74 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.072e-05/0.01606, allocations: 24.5 kB / 261.8 MB, free: 12.71 MB / 250.7 MB Notification: Performance of SimCode: time 8.62e-07/0.01606, allocations: 0 / 261.8 MB, free: 12.71 MB / 250.7 MB Notification: Performance of Templates: time 0.005033/0.02109, allocations: 2.631 MB / 264.4 MB, free: 10.09 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.11895645596087]