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.002392/0.002392, allocations: 103.5 kB / 20.97 MB, free: 3.449 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.002767/0.002767, allocations: 156.8 kB / 24.27 MB, free: 152 kB / 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.659/1.659, allocations: 177 MB / 204.4 MB, free: 5.602 MB / 186.7 MB " [Timeout remaining time 178] 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.663e-06/1.663e-06, allocations: 0 / 272.2 MB, free: 1.82 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.485e-05/3.651e-05, allocations: 6.312 kB / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.005875/0.005911, allocations: 2.254 MB / 274.4 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.003534/0.009446, allocations: 1.196 MB / 275.6 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.00959, allocations: 8 kB / 275.6 MB, free: 14.33 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004549/0.01004, allocations: 83.5 kB / 275.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006188/0.01066, allocations: 174.9 kB / 275.9 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004249/0.01109, allocations: 115.6 kB / 276 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005798/0.01167, allocations: 314.5 kB / 276.3 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002348/0.0119, allocations: 56.78 kB / 276.4 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003552/0.01226, allocations: 159.7 kB / 276.5 MB, free: 13.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002967/0.01255, allocations: 111.7 kB / 276.6 MB, free: 13.34 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.982e-05/0.01261, allocations: 20 kB / 276.6 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000205/0.01282, allocations: 51.92 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001273/0.01295, allocations: 59.81 kB / 276.8 MB, free: 13.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001709/0.01312, allocations: 83.77 kB / 276.8 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006355/0.01375, allocations: 291 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.01376, allocations: 0 / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.01376, allocations: 0 / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.01377, allocations: 3.984 kB / 277.1 MB, free: 12.84 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.001355/0.01512, allocations: 0.597 MB / 277.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.193e-05/0.01519, allocations: 11.98 kB / 277.7 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002912/0.01548, allocations: 52.62 kB / 277.8 MB, free: 12.14 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000483/0.01596, allocations: 200.1 kB / 278 MB, free: 11.92 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.36e-05/0.01599, allocations: 12.38 kB / 278 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.875e-05/0.01605, allocations: 20.38 kB / 278 MB, free: 11.89 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00051/0.01656, allocations: 157.9 kB / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.01658, allocations: 192 / 278.2 MB, free: 11.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.341e-05/0.01662, allocations: 12.38 kB / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.01663, allocations: 7.938 kB / 278.2 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004448/0.01708, allocations: 111.9 kB / 278.3 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.01852, allocations: 0.5421 MB / 278.8 MB, free: 11.02 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005255/0.01905, allocations: 159 kB / 279 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002628/0.01931, allocations: 83.59 kB / 279.1 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.01934, allocations: 4 kB / 279.1 MB, free: 10.76 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003578/0.0197, allocations: 125.2 kB / 279.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 2.364e-06/0.0197, allocations: 0 / 279.2 MB, free: 10.62 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0008542/0.02056, allocations: 227.9 kB / 279.4 MB, free: 10.4 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.278e-05/0.02064, allocations: 63.33 kB / 279.5 MB, free: 10.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005055/0.02115, allocations: 294.7 kB / 279.8 MB, free: 10.02 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.524e-05/0.02119, allocations: 29.7 kB / 279.8 MB, free: 9.98 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/0.02145, allocations: 207.1 kB / 280 MB, free: 9.773 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001284/0.02158, allocations: 79.33 kB / 280.1 MB, free: 9.695 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001391/0.02172, allocations: 47.36 kB / 280.1 MB, free: 9.641 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004371/0.02216, allocations: 0.5157 MB / 280.6 MB, free: 9.113 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001908/0.02235, allocations: 47.98 kB / 280.7 MB, free: 9.066 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.02261, allocations: 98.66 kB / 280.8 MB, free: 8.953 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004824/0.02309, allocations: 158.6 kB / 280.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.02309, allocations: 0 / 280.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0006502/0.02374, allocations: 212.8 kB / 281.1 MB, free: 8.57 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.02376, allocations: 4 kB / 281.2 MB, free: 8.566 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.892e-06/0.02377, allocations: 4 kB / 281.2 MB, free: 8.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.634e-05/0.0238, allocations: 4.094 kB / 281.2 MB, free: 8.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003459/0.02414, allocations: 43.92 kB / 281.2 MB, free: 8.516 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.581e-05/0.02416, allocations: 7.938 kB / 281.2 MB, free: 8.508 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001579/0.02432, allocations: 19.88 kB / 281.2 MB, free: 8.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.54e-05/0.02434, allocations: 8 kB / 281.2 MB, free: 8.48 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 0.000258/0.0246, allocations: 184.5 kB / 281.4 MB, free: 8.289 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.21e-05/0.02468, allocations: 27.86 kB / 281.4 MB, free: 8.262 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006746/0.02536, allocations: 199.4 kB / 281.6 MB, free: 8.062 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.02536, allocations: 4 kB / 281.6 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.02537, allocations: 3.938 kB / 281.6 MB, free: 8.055 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.02538, allocations: 4 kB / 281.7 MB, free: 8.051 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004977/0.02587, allocations: 244.5 kB / 281.9 MB, free: 7.777 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.242e-06/0.02588, allocations: 3.938 kB / 281.9 MB, free: 7.773 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003249/0.0262, allocations: 35.98 kB / 281.9 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.02621, allocations: 0 / 281.9 MB, free: 7.738 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.505e-05/0.02623, allocations: 4 kB / 281.9 MB, free: 7.734 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.867e-06/0.02624, allocations: 4 kB / 281.9 MB, free: 7.73 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.499e-06/0.02625, allocations: 4 kB / 281.9 MB, free: 7.727 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009371/0.02718, allocations: 305 kB / 282.2 MB, free: 7.406 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.61e-05/0.02724, allocations: 19.8 kB / 282.3 MB, free: 7.387 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.953e-05/0.0273, allocations: 12.02 kB / 282.3 MB, free: 7.375 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001279/0.02743, allocations: 8 kB / 282.3 MB, free: 7.367 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.821e-05/0.02751, allocations: 15.97 kB / 282.3 MB, free: 7.352 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.016e-05/0.02754, allocations: 4 kB / 282.3 MB, free: 7.348 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003246/0.02786, allocations: 213.5 kB / 282.5 MB, free: 7.141 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.02786, allocations: 0 / 282.5 MB, free: 7.141 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005052/0.02837, allocations: 63.88 kB / 282.6 MB, free: 7.078 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.004206/0.03257, allocations: 439.2 kB / 283 MB, free: 6.793 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005632/0.03314, allocations: 154.9 kB / 283.1 MB, free: 6.641 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.03314, allocations: 0 / 283.1 MB, free: 6.641 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000268/0.03341, allocations: 83.59 kB / 283.2 MB, free: 6.555 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005574/0.03396, allocations: 52.62 kB / 283.3 MB, free: 6.5 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.03545, allocations: 0.4908 MB / 283.8 MB, free: 5.973 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002357/0.03568, allocations: 137.8 kB / 283.9 MB, free: 5.82 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001466/0.03583, allocations: 21.95 kB / 283.9 MB, free: 5.797 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001076/0.03594, allocations: 32.48 kB / 284 MB, free: 5.766 MB / 266.7 MB Notification: Performance of SimCode: time 6.51e-07/0.03594, allocations: 0 / 284 MB, free: 5.766 MB / 266.7 MB Notification: Performance of Templates: time 0.01122/0.04715, allocations: 2.675 MB / 286.6 MB, free: 3.129 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 7.372726223897189]