Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008284/0.0008284, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001214/0.002043, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006724/0.0006724, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001017/0.00169, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8642/0.8642, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1577/1.022, allocations: 52.49 MB / 238.5 MB, free: 7.625 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.532e-06/1.532e-06, allocations: 0 / 239.7 MB, free: 6.379 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.905e-05/2.058e-05, allocations: 2.312 kB / 239.7 MB, free: 6.375 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002712/0.002732, allocations: 2.303 MB / 242 MB, free: 4.078 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001451/0.004183, allocations: 1.091 MB / 243.1 MB, free: 2.984 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001536/0.004337, allocations: 4 kB / 243.1 MB, free: 2.98 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003192/0.004656, allocations: 91.39 kB / 243.2 MB, free: 2.891 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002851/0.004941, allocations: 133.4 kB / 243.3 MB, free: 2.762 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003828/0.005324, allocations: 152.5 kB / 243.5 MB, free: 2.613 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003047/0.005629, allocations: 294.6 kB / 243.8 MB, free: 2.324 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.005782, allocations: 66.69 kB / 243.8 MB, free: 2.254 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002218/0.006003, allocations: 194.8 kB / 244 MB, free: 2.066 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.006162, allocations: 91.77 kB / 244.1 MB, free: 1.977 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.748e-05/0.00619, allocations: 16 kB / 244.1 MB, free: 1.961 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001365/0.006326, allocations: 59.86 kB / 244.2 MB, free: 1.902 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.764e-05/0.006384, allocations: 43.81 kB / 244.2 MB, free: 1.859 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 6.142e-05/0.006445, allocations: 63.88 kB / 244.3 MB, free: 1.797 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002625/0.006708, allocations: 203.2 kB / 244.5 MB, free: 1.598 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.273e-05/0.006721, allocations: 0 / 244.5 MB, free: 1.598 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.472e-06/0.006722, allocations: 0 / 244.5 MB, free: 1.598 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.006732, allocations: 1.281 kB / 244.5 MB, free: 1.598 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.0005804/0.007313, allocations: 0.5007 MB / 245 MB, free: 1.07 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.292e-05/0.007345, allocations: 11.03 kB / 245 MB, free: 1.062 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001569/0.007502, allocations: 118 kB / 245.1 MB, free: 0.9297 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002014/0.007704, allocations: 182.2 kB / 245.3 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.768e-05/0.007721, allocations: 12.38 kB / 245.3 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.973e-05/0.007751, allocations: 16.38 kB / 245.3 MB, free: 0.6953 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001764/0.007927, allocations: 137.5 kB / 245.5 MB, free: 0.5508 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.222e-05/0.00794, allocations: 7.875 kB / 245.5 MB, free: 0.543 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.007953, allocations: 12.97 kB / 245.5 MB, free: 0.5312 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.374e-06/0.00796, allocations: 4 kB / 245.5 MB, free: 0.5273 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.955e-05/0.008039, allocations: 55.47 kB / 245.6 MB, free: 484 kB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004617/0.008501, allocations: 352 kB / 245.9 MB, free: 116 kB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001698/0.008671, allocations: 157.1 kB / 246.1 MB, free: 15.95 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.707e-05/0.008718, allocations: 44.83 kB / 246.1 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.008734, allocations: 4.656 kB / 246.1 MB, free: 15.9 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001206/0.008854, allocations: 94.09 kB / 246.2 MB, free: 15.79 MB / 250.7 MB Notification: Performance of pre-optimization done (n=20): time 1.783e-06/0.008856, allocations: 0.6875 kB / 246.2 MB, free: 15.79 MB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.0001922/0.009048, allocations: 131.1 kB / 246.3 MB, free: 15.66 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.937e-05/0.009077, allocations: 55.41 kB / 246.4 MB, free: 15.6 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000125/0.009202, allocations: 208.1 kB / 246.6 MB, free: 15.38 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.063e-05/0.009223, allocations: 33.7 kB / 246.6 MB, free: 15.34 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.373e-05/0.009277, allocations: 136.3 kB / 246.7 MB, free: 15.2 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.943e-05/0.009316, allocations: 72.86 kB / 246.8 MB, free: 15.13 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.462e-05/0.009361, allocations: 37.7 kB / 246.9 MB, free: 15.09 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.895e-05/0.00944, allocations: 334.8 kB / 247.2 MB, free: 14.75 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.261e-05/0.009472, allocations: 22.81 kB / 247.2 MB, free: 14.73 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.349e-05/0.009516, allocations: 55.08 kB / 247.3 MB, free: 14.67 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.625e-05/0.009602, allocations: 104.1 kB / 247.4 MB, free: 14.55 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.013e-06/0.009604, allocations: 1.688 kB / 247.4 MB, free: 14.55 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001266/0.009731, allocations: 126.6 kB / 247.5 MB, free: 14.43 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.009745, allocations: 7.938 kB / 247.5 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.041e-06/0.009751, allocations: 0.5 kB / 247.5 MB, free: 14.42 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.254e-05/0.009764, allocations: 4.812 kB / 247.5 MB, free: 14.41 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001929/0.009957, allocations: 55.97 kB / 247.5 MB, free: 14.36 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.553e-06/0.009963, allocations: 13.58 kB / 247.6 MB, free: 14.35 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.994e-05/0.01001, allocations: 15.89 kB / 247.6 MB, free: 14.33 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.029e-05/0.01002, allocations: 7.984 kB / 247.6 MB, free: 14.32 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 7.9e-05/0.0101, allocations: 120.8 kB / 247.7 MB, free: 14.2 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.208e-05/0.01012, allocations: 27.86 kB / 247.7 MB, free: 14.17 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001566/0.01028, allocations: 131.4 kB / 247.9 MB, free: 14.03 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.01028, allocations: 0 / 247.9 MB, free: 14.03 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.01029, allocations: 7.938 kB / 247.9 MB, free: 14.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.01029, allocations: 0 / 247.9 MB, free: 14.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001337/0.01042, allocations: 137.7 kB / 248 MB, free: 13.87 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.904e-06/0.01043, allocations: 0 / 248 MB, free: 13.87 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000131/0.01056, allocations: 47.98 kB / 248 MB, free: 13.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.216e-05/0.01058, allocations: 23.78 kB / 248.1 MB, free: 13.8 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.727e-06/0.01058, allocations: 7.938 kB / 248.1 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.01059, allocations: 4 kB / 248.1 MB, free: 13.79 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.419e-06/0.0106, allocations: 7.938 kB / 248.1 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.0106, allocations: 0 / 248.1 MB, free: 13.78 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002035/0.0108, allocations: 177.1 kB / 248.3 MB, free: 13.59 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.01082, allocations: 11.98 kB / 248.3 MB, free: 13.58 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.029e-05/0.01086, allocations: 4 kB / 248.3 MB, free: 13.57 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.117e-05/0.0109, allocations: 11.97 kB / 248.3 MB, free: 13.56 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.477e-05/0.01091, allocations: 8 kB / 248.3 MB, free: 13.55 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.937e-05/0.01097, allocations: 73.02 kB / 248.4 MB, free: 13.48 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01097, allocations: 0 / 248.4 MB, free: 13.48 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001734/0.01114, allocations: 67.84 kB / 248.4 MB, free: 13.41 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.001129/0.01227, allocations: 0.5568 MB / 249 MB, free: 13.13 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001657/0.01244, allocations: 84.75 kB / 249.1 MB, free: 13.04 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.219e-05/0.01245, allocations: 4 kB / 249.1 MB, free: 13.04 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.384e-05/0.01252, allocations: 71.89 kB / 249.1 MB, free: 12.97 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003011/0.01282, allocations: 378 kB / 249.5 MB, free: 12.54 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002375/0.0152, allocations: 443.6 kB / 250 MB, free: 12.07 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.202e-05/0.01525, allocations: 87.97 kB / 250 MB, free: 11.96 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.019e-05/0.01533, allocations: 33.92 kB / 250.1 MB, free: 11.93 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001006/0.01543, allocations: 87.34 kB / 250.2 MB, free: 11.85 MB / 250.7 MB Notification: Performance of SimCode: time 9.41e-07/0.01543, allocations: 3.938 kB / 250.2 MB, free: 11.84 MB / 250.7 MB Notification: Performance of Templates: time 0.005047/0.02048, allocations: 3.025 MB / 253.2 MB, free: 8.887 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 5.8390914630144835]