Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008317/0.0008317, allocations: 80.11 kB / 9.934 MB, free: 0.75 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001041/0.001873, allocations: 449.7 kB / 10.37 MB, free: 320 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0007754/0.0007754, allocations: 165.1 kB / 11.26 MB, free: 2.906 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009946/0.00177, allocations: 463.6 kB / 11.72 MB, free: 2.449 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.021/1.021, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09125/1.112, allocations: 53.86 MB / 243.7 MB, free: 14.9 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7200,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") translateModel(Modelica.Thermal.HeatTransfer.Examples.Motor,tolerance=1e-06,outputFormat="mat",numberOfIntervals=7200,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.614e-06/1.614e-06, allocations: 0 / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.907e-05/2.068e-05, allocations: 5.406 kB / 245 MB, free: 13.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003745/0.003765, allocations: 2.32 MB / 247.3 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002026/0.005791, allocations: 1.234 MB / 248.5 MB, free: 10.08 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.005924, allocations: 7.938 kB / 248.6 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003086/0.006233, allocations: 91.48 kB / 248.6 MB, free: 9.984 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004001/0.006633, allocations: 170.9 kB / 248.8 MB, free: 9.816 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002919/0.006925, allocations: 115.5 kB / 248.9 MB, free: 9.703 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003531/0.007278, allocations: 314.5 kB / 249.2 MB, free: 9.395 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001797/0.007458, allocations: 70.73 kB / 249.3 MB, free: 9.328 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002739/0.007732, allocations: 180.6 kB / 249.5 MB, free: 9.152 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001938/0.007926, allocations: 103.7 kB / 249.6 MB, free: 9.051 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.00796, allocations: 20 kB / 249.6 MB, free: 9.031 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001639/0.008124, allocations: 59.86 kB / 249.7 MB, free: 8.973 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.505e-05/0.008199, allocations: 43.86 kB / 249.7 MB, free: 8.93 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.515e-05/0.008294, allocations: 67.81 kB / 249.8 MB, free: 8.863 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003645/0.008658, allocations: 199.3 kB / 250 MB, free: 8.668 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.112e-05/0.00868, allocations: 0 / 250 MB, free: 8.668 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.312e-06/0.008681, allocations: 0 / 250 MB, free: 8.668 MB / 250.7 MB Notification: Performance of Transformations before backend: time 2.242e-05/0.008703, allocations: 0 / 250 MB, free: 8.668 MB / 250.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.000839/0.009542, allocations: 0.515 MB / 250.5 MB, free: 8.129 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.846e-05/0.009581, allocations: 12.62 kB / 250.5 MB, free: 8.117 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001965/0.009777, allocations: 118 kB / 250.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002453/0.01002, allocations: 181.3 kB / 250.8 MB, free: 7.781 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.141e-05/0.01004, allocations: 12.38 kB / 250.8 MB, free: 7.77 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.164e-05/0.01008, allocations: 16.38 kB / 250.8 MB, free: 7.754 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002251/0.0103, allocations: 137.7 kB / 250.9 MB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.264e-05/0.01031, allocations: 192 / 250.9 MB, free: 7.609 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.01033, allocations: 12.36 kB / 251 MB, free: 7.598 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.666e-06/0.01034, allocations: 11.94 kB / 251 MB, free: 7.586 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001268/0.01047, allocations: 51.53 kB / 251 MB, free: 7.535 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006315/0.0111, allocations: 349.3 kB / 251.4 MB, free: 7.176 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002144/0.01131, allocations: 168.1 kB / 251.5 MB, free: 7.004 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.845e-05/0.01138, allocations: 44.84 kB / 251.6 MB, free: 6.957 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.807e-05/0.0114, allocations: 4 kB / 251.6 MB, free: 6.953 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001408/0.01154, allocations: 90.16 kB / 251.7 MB, free: 6.852 MB / 250.7 MB Notification: Performance of pre-optimization done (n=20): time 1.734e-06/0.01154, allocations: 0 / 251.7 MB, free: 6.852 MB / 250.7 MB Notification: Performance of matching and sorting (n=20): time 0.0001864/0.01173, allocations: 125.9 kB / 251.8 MB, free: 6.723 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.185e-05/0.01176, allocations: 55.34 kB / 251.8 MB, free: 6.656 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000131/0.01189, allocations: 217.1 kB / 252 MB, free: 6.43 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.061e-05/0.01191, allocations: 33.7 kB / 252.1 MB, free: 6.391 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.5e-05/0.01197, allocations: 132.8 kB / 252.2 MB, free: 6.258 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.234e-05/0.01201, allocations: 67.41 kB / 252.3 MB, free: 6.191 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.495e-05/0.01205, allocations: 45.69 kB / 252.3 MB, free: 6.141 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.173e-05/0.01213, allocations: 334.8 kB / 252.6 MB, free: 5.805 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.048e-05/0.01217, allocations: 22.81 kB / 252.7 MB, free: 5.781 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.804e-05/0.01221, allocations: 56.06 kB / 252.7 MB, free: 5.715 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.922e-05/0.0123, allocations: 100.3 kB / 252.8 MB, free: 5.605 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.01231, allocations: 0 / 252.8 MB, free: 5.605 MB / 250.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001319/0.01244, allocations: 124.4 kB / 252.9 MB, free: 5.477 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.01245, allocations: 4 kB / 252.9 MB, free: 5.473 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.01246, allocations: 0 / 252.9 MB, free: 5.473 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.01247, allocations: 7.938 kB / 253 MB, free: 5.465 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001961/0.01266, allocations: 63.89 kB / 253 MB, free: 5.402 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.01267, allocations: 3.984 kB / 253 MB, free: 5.398 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.507e-05/0.01271, allocations: 19.89 kB / 253 MB, free: 5.379 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.01272, allocations: 4 kB / 253 MB, free: 5.375 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.64e-05/0.0128, allocations: 128.5 kB / 253.2 MB, free: 5.238 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.959e-05/0.01282, allocations: 15.98 kB / 253.2 MB, free: 5.223 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.01297, allocations: 147.3 kB / 253.3 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.01297, allocations: 0 / 253.3 MB, free: 5.074 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.003e-06/0.01298, allocations: 4 kB / 253.3 MB, free: 5.07 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.01298, allocations: 0 / 253.3 MB, free: 5.07 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001261/0.01311, allocations: 129.8 kB / 253.5 MB, free: 4.926 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.01311, allocations: 4 kB / 253.5 MB, free: 4.922 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001368/0.01324, allocations: 51.2 kB / 253.5 MB, free: 4.875 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.279e-05/0.01327, allocations: 31.72 kB / 253.5 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.01327, allocations: 0 / 253.5 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.448e-06/0.01328, allocations: 0 / 253.5 MB, free: 4.844 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.475e-06/0.01328, allocations: 8 kB / 253.6 MB, free: 4.836 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.01328, allocations: 0 / 253.6 MB, free: 4.836 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000191/0.01347, allocations: 187.6 kB / 253.7 MB, free: 4.633 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.018e-05/0.01349, allocations: 8 kB / 253.7 MB, free: 4.625 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.051e-05/0.01353, allocations: 4 kB / 253.7 MB, free: 4.621 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002898/0.01382, allocations: 15.97 kB / 253.8 MB, free: 4.605 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/0.01384, allocations: 7.984 kB / 253.8 MB, free: 4.598 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.478e-05/0.01389, allocations: 74.25 kB / 253.8 MB, free: 4.523 MB / 250.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01389, allocations: 0 / 253.8 MB, free: 4.523 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001497/0.01404, allocations: 59.89 kB / 253.9 MB, free: 4.465 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.001213/0.01526, allocations: 0.5449 MB / 254.4 MB, free: 4.145 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001401/0.0154, allocations: 96.11 kB / 254.5 MB, free: 4.051 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.095e-05/0.01541, allocations: 4 kB / 254.5 MB, free: 4.047 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.22e-05/0.01546, allocations: 52.78 kB / 254.6 MB, free: 3.992 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001822/0.01564, allocations: 68.77 kB / 254.7 MB, free: 3.926 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.01803, allocations: 467.5 kB / 255.1 MB, free: 3.441 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.502e-05/0.01807, allocations: 91.83 kB / 255.2 MB, free: 3.332 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.533e-05/0.01814, allocations: 29.94 kB / 255.2 MB, free: 3.297 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.305e-05/0.01823, allocations: 91.28 kB / 255.3 MB, free: 3.207 MB / 250.7 MB Notification: Performance of SimCode: time 7.71e-07/0.01823, allocations: 0 / 255.3 MB, free: 3.207 MB / 250.7 MB Notification: Performance of Templates: time 0.005328/0.02356, allocations: 3.083 MB / 258.4 MB, free: 172 kB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 3.822580791078508]