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.001224/0.001224, allocations: 81.91 kB / 21.43 MB, free: 3.07 MB / 18.57 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.001474/0.001474, allocations: 162.3 kB / 24.82 MB, free: 9.258 MB / 18.57 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/1, allocations: 177 MB / 205.1 MB, free: 5.441 MB / 186.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.884e-06/1.884e-06, allocations: 0 / 273.3 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.839e-05, allocations: 2.312 kB / 273.3 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004229/0.004257, allocations: 2.277 MB / 275.6 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001905/0.006162, allocations: 1.188 MB / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001352/0.006298, allocations: 0 / 276.8 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003408/0.006638, allocations: 95.44 kB / 276.9 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004058/0.007044, allocations: 174.9 kB / 277 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002651/0.007309, allocations: 119.5 kB / 277.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002832/0.007592, allocations: 302.7 kB / 277.4 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001541/0.007747, allocations: 64.7 kB / 277.5 MB, free: 12.99 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000166/0.007913, allocations: 163.7 kB / 277.7 MB, free: 12.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001524/0.008065, allocations: 107.7 kB / 277.8 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.686e-05/0.008092, allocations: 20 kB / 277.8 MB, free: 12.7 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001168/0.008209, allocations: 51.92 kB / 277.8 MB, free: 12.65 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.186e-05/0.00827, allocations: 63.75 kB / 277.9 MB, free: 12.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.48e-05/0.008335, allocations: 75.83 kB / 278 MB, free: 12.52 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002522/0.008587, allocations: 223.1 kB / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.008591, allocations: 0 / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.008592, allocations: 0 / 278.2 MB, free: 12.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.09e-06/0.008597, allocations: 0 / 278.2 MB, free: 12.3 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.0005805/0.009177, allocations: 0.5856 MB / 278.8 MB, free: 11.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.782e-05/0.009215, allocations: 11.98 kB / 278.8 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001327/0.009348, allocations: 52.67 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001833/0.009531, allocations: 196.1 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.995e-05/0.009551, allocations: 16.38 kB / 279.1 MB, free: 11.38 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.907e-05/0.00958, allocations: 12.38 kB / 279.1 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001999/0.00978, allocations: 134.6 kB / 279.2 MB, free: 11.23 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.25e-05/0.009792, allocations: 8.172 kB / 279.2 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.009805, allocations: 4.375 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.009813, allocations: 7.938 kB / 279.2 MB, free: 11.21 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.12e-05/0.009905, allocations: 55.72 kB / 279.3 MB, free: 11.15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005023/0.01041, allocations: 479.7 kB / 279.7 MB, free: 10.66 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.01055, allocations: 111 kB / 279.8 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.225e-05/0.0106, allocations: 54.92 kB / 279.9 MB, free: 10.48 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.819e-05/0.01062, allocations: 8.281 kB / 279.9 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001115/0.01073, allocations: 100.9 kB / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.252e-06/0.01073, allocations: 0 / 280 MB, free: 10.36 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.000504/0.01124, allocations: 165.5 kB / 280.2 MB, free: 10.19 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.888e-05/0.01127, allocations: 55.41 kB / 280.2 MB, free: 10.12 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000153/0.01142, allocations: 278.6 kB / 280.5 MB, free: 9.832 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.683e-05/0.01144, allocations: 29.7 kB / 280.5 MB, free: 9.797 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.323e-05/0.01153, allocations: 203 kB / 280.7 MB, free: 9.59 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.055e-05/0.01157, allocations: 63.42 kB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.952e-05/0.01162, allocations: 55.34 kB / 280.8 MB, free: 9.465 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001182/0.01174, allocations: 0.5117 MB / 281.4 MB, free: 8.941 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.386e-05/0.01177, allocations: 19.98 kB / 281.4 MB, free: 8.922 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.474e-05/0.01183, allocations: 74.64 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.625e-05/0.01192, allocations: 106.6 kB / 281.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.943e-06/0.01192, allocations: 0 / 281.5 MB, free: 8.711 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001566/0.01208, allocations: 152.9 kB / 281.7 MB, free: 8.559 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.127e-05/0.01209, allocations: 12 kB / 281.7 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.729e-06/0.0121, allocations: 0 / 281.7 MB, free: 8.547 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.01211, allocations: 4 kB / 281.7 MB, free: 8.543 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000124/0.01223, allocations: 51.91 kB / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.956e-06/0.01224, allocations: 0 / 281.8 MB, free: 8.492 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.976e-05/0.01229, allocations: 15.89 kB / 281.8 MB, free: 8.477 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.848e-06/0.01229, allocations: 8 kB / 281.8 MB, free: 8.469 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 8.32e-05/0.01238, allocations: 168.5 kB / 282 MB, free: 8.293 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.01241, allocations: 35.78 kB / 282 MB, free: 8.258 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001892/0.01259, allocations: 163.4 kB / 282.1 MB, free: 8.094 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.0126, allocations: 4 kB / 282.1 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.763e-06/0.0126, allocations: 0 / 282.1 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.566e-06/0.0126, allocations: 0 / 282.1 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001519/0.01276, allocations: 177 kB / 282.3 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.01276, allocations: 0 / 282.3 MB, free: 7.891 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001071/0.01286, allocations: 43.97 kB / 282.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.01287, allocations: 0 / 282.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.153e-05/0.01288, allocations: 7.938 kB / 282.4 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.01288, allocations: 0 / 282.4 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.653e-06/0.01288, allocations: 0 / 282.4 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002321/0.01311, allocations: 232.1 kB / 282.6 MB, free: 7.59 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.385e-05/0.01314, allocations: 23.8 kB / 282.6 MB, free: 7.566 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.019e-05/0.01316, allocations: 4 kB / 282.6 MB, free: 7.562 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.076e-05/0.0132, allocations: 4 kB / 282.6 MB, free: 7.559 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.341e-05/0.01323, allocations: 15.97 kB / 282.6 MB, free: 7.543 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.386e-05/0.01325, allocations: 4 kB / 282.7 MB, free: 7.539 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.894e-05/0.01333, allocations: 193.5 kB / 282.8 MB, free: 7.352 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01333, allocations: 0 / 282.8 MB, free: 7.352 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001998/0.01353, allocations: 67.83 kB / 282.9 MB, free: 7.285 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.0007826/0.01432, allocations: 392.6 kB / 283.3 MB, free: 7.012 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002211/0.01454, allocations: 103.6 kB / 283.4 MB, free: 6.91 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.01454, allocations: 192 / 283.4 MB, free: 6.91 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.735e-05/0.0146, allocations: 63.58 kB / 283.5 MB, free: 6.844 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002077/0.0148, allocations: 52.62 kB / 283.5 MB, free: 6.793 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007048/0.01551, allocations: 478.3 kB / 284 MB, free: 6.289 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.657e-05/0.01556, allocations: 87.95 kB / 284.1 MB, free: 6.184 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.425e-05/0.01562, allocations: 21.95 kB / 284.1 MB, free: 6.164 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001/0.01572, allocations: 114.2 kB / 284.2 MB, free: 6.051 MB / 266.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01572, allocations: 0 / 284.2 MB, free: 6.051 MB / 266.7 MB Notification: Performance of Templates: time 0.005337/0.02106, allocations: 2.935 MB / 287.1 MB, free: 3.164 MB / 266.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 -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: 4.904292286839336]