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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=1440000,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=1440000,variableFilter="time|core.T|winding.T",fileNamePrefix="Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00108/0.00108, allocations: 105.5 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001067/0.001067, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.3 MB, free: 9.164 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 58.47 kB / 306.2 MB, free: 0.8633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08816/0.08938, allocations: 50.54 MB / 356.8 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003541/0.09296, allocations: 2.294 MB / 359.1 MB, free: 12.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001722/0.0947, allocations: 1.231 MB / 360.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9e-05/0.09481, allocations: 0 / 360.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003203/0.09515, allocations: 83.69 kB / 360.4 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003322/0.09549, allocations: 143.3 kB / 360.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002198/0.09572, allocations: 95.78 kB / 360.6 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002711/0.096, allocations: 278.8 kB / 360.9 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001729/0.09619, allocations: 77 kB / 361 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001287/0.09632, allocations: 103.6 kB / 361.1 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000174/0.0965, allocations: 135.4 kB / 361.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.062e-05/0.09654, allocations: 12 kB / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001234/0.09667, allocations: 43.98 kB / 361.3 MB, free: 9.824 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.113e-05/0.09675, allocations: 47.83 kB / 361.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.09688, allocations: 119.3 kB / 361.4 MB, free: 9.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002872/0.09717, allocations: 279.3 kB / 361.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/0.09718, allocations: 0 / 361.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.09719, allocations: 0 / 361.7 MB, free: 9.387 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.264e-06/0.0972, allocations: 0 / 361.7 MB, free: 9.387 MB / 302.1 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.0007516/0.09796, allocations: 0.5497 MB / 362.3 MB, free: 8.789 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.274e-05/0.098, allocations: 11.97 kB / 362.3 MB, free: 8.777 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000138/0.09814, allocations: 28.66 kB / 362.3 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002641/0.09841, allocations: 267.4 kB / 362.6 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.964e-05/0.09844, allocations: 16.38 kB / 362.6 MB, free: 8.434 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.725e-05/0.09848, allocations: 20.12 kB / 362.6 MB, free: 8.414 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.0988, allocations: 161.6 kB / 362.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.399e-05/0.09882, allocations: 0 / 362.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.226e-05/0.09885, allocations: 8 kB / 362.8 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.09886, allocations: 4 kB / 362.8 MB, free: 8.238 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.09911, allocations: 123.6 kB / 362.9 MB, free: 8.117 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008006/0.09992, allocations: 0.5663 MB / 363.4 MB, free: 7.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003104/0.1002, allocations: 162.5 kB / 363.6 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001482/0.1004, allocations: 84.83 kB / 363.7 MB, free: 7.246 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.641e-05/0.1004, allocations: 4 kB / 363.7 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002236/0.1007, allocations: 111.4 kB / 363.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.483e-06/0.1007, allocations: 0 / 363.8 MB, free: 7.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004836/0.1012, allocations: 236.2 kB / 364 MB, free: 6.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.785e-05/0.1012, allocations: 55.34 kB / 364.1 MB, free: 6.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.1015, allocations: 268.9 kB / 364.3 MB, free: 6.547 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.835e-05/0.1015, allocations: 25.7 kB / 364.4 MB, free: 6.516 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.93e-05/0.1016, allocations: 148.3 kB / 364.5 MB, free: 6.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.327e-05/0.1016, allocations: 75.02 kB / 364.6 MB, free: 6.293 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.59e-05/0.1017, allocations: 41.72 kB / 364.6 MB, free: 6.246 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1018, allocations: 334.8 kB / 365 MB, free: 5.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001161/0.102, allocations: 51.97 kB / 365 MB, free: 5.859 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001346/0.1021, allocations: 88.5 kB / 365.1 MB, free: 5.762 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.1024, allocations: 151.3 kB / 365.2 MB, free: 5.602 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1024, allocations: 3.938 kB / 365.2 MB, free: 5.598 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003399/0.1027, allocations: 201.2 kB / 365.4 MB, free: 5.395 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.404e-05/0.1027, allocations: 8 kB / 365.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1027, allocations: 0 / 365.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.057e-05/0.1028, allocations: 0 / 365.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002145/0.103, allocations: 52.02 kB / 365.5 MB, free: 5.336 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.865e-06/0.103, allocations: 3.938 kB / 365.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000123/0.1031, allocations: 27.73 kB / 365.5 MB, free: 5.305 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.619e-05/0.1031, allocations: 11.98 kB / 365.5 MB, free: 5.293 MB / 302.1 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.0001246/0.1033, allocations: 153.3 kB / 365.7 MB, free: 5.137 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.482e-05/0.1033, allocations: 19.72 kB / 365.7 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.945e-05/0.1034, allocations: 30.17 kB / 365.7 MB, free: 5.086 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.1034, allocations: 4 kB / 365.7 MB, free: 5.082 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.1034, allocations: 11.94 kB / 365.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1034, allocations: 0 / 365.8 MB, free: 5.07 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002534/0.1037, allocations: 277.5 kB / 366 MB, free: 4.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.1037, allocations: 4 kB / 366 MB, free: 4.746 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001826/0.1039, allocations: 39.91 kB / 366.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.234e-06/0.1039, allocations: 0 / 366.1 MB, free: 4.707 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.835e-05/0.1039, allocations: 4 kB / 366.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1039, allocations: 4 kB / 366.1 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1039, allocations: 3.938 kB / 366.1 MB, free: 4.695 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004798/0.1044, allocations: 284.1 kB / 366.4 MB, free: 4.402 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.161e-05/0.1045, allocations: 108.8 kB / 366.5 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.635e-05/0.1045, allocations: 4 kB / 366.5 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.268e-05/0.1046, allocations: 7.938 kB / 366.5 MB, free: 4.266 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.043e-05/0.1047, allocations: 15.94 kB / 366.5 MB, free: 4.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.967e-05/0.1047, allocations: 11.98 kB / 366.5 MB, free: 4.238 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001644/0.1049, allocations: 192.5 kB / 366.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.1049, allocations: 4.062 kB / 366.7 MB, free: 4.047 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002741/0.1052, allocations: 59.83 kB / 366.8 MB, free: 3.988 MB / 302.1 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.nextTimeEventScaled,lossTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (20): * Single equations (assignments): 18 * 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.0008903/0.1061, allocations: 411.5 kB / 367.2 MB, free: 3.715 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003034/0.1064, allocations: 135.9 kB / 367.3 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.453e-06/0.1064, allocations: 0 / 367.3 MB, free: 3.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001358/0.1065, allocations: 81.95 kB / 367.4 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003443/0.1069, allocations: 48.09 kB / 367.4 MB, free: 3.461 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009601/0.1079, allocations: 0.6163 MB / 368 MB, free: 2.812 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002708/0.1081, allocations: 0.7443 MB / 368.8 MB, free: 2.043 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001105/0.1083, allocations: 33.88 kB / 368.8 MB, free: 2.012 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.387e-05/0.1083, allocations: 19.44 kB / 368.8 MB, free: 1.992 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1083, allocations: 4 kB / 368.8 MB, free: 1.988 MB / 302.1 MB Notification: Performance of Templates: time 0.1582/0.2666, allocations: 2.554 MB / 371.4 MB, free: 19.66 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches