Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009205/0.0009205, allocations: 80.92 kB / 21.49 MB, free: 2.992 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001003/0.001003, allocations: 166.5 kB / 24.91 MB, free: 9.188 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9417/0.9417, allocations: 177.1 MB / 205.3 MB, free: 5.5 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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.1.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.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 273.4 MB, free: 1.348 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.814e-05/1.941e-05, allocations: 2.312 kB / 273.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002623/0.002642, allocations: 2.28 MB / 275.7 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001526/0.004168, allocations: 1.215 MB / 276.9 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001053/0.004273, allocations: 8 kB / 276.9 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002992/0.004572, allocations: 95.44 kB / 277 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000369/0.004941, allocations: 162.9 kB / 277.2 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002658/0.005207, allocations: 127.5 kB / 277.3 MB, free: 13.44 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002824/0.00549, allocations: 298.7 kB / 277.6 MB, free: 13.15 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001343/0.005624, allocations: 66.73 kB / 277.7 MB, free: 13.09 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001729/0.005797, allocations: 163.6 kB / 277.8 MB, free: 12.93 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001422/0.005939, allocations: 107.7 kB / 277.9 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.436e-05/0.005963, allocations: 20 kB / 277.9 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001009/0.006064, allocations: 55.91 kB / 278 MB, free: 12.75 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.932e-05/0.006123, allocations: 59.77 kB / 278 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.389e-05/0.006187, allocations: 71.83 kB / 278.1 MB, free: 12.62 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000243/0.00643, allocations: 223.1 kB / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.963e-06/0.006432, allocations: 0 / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.42e-07/0.006433, allocations: 0 / 278.3 MB, free: 12.4 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.758e-06/0.006437, allocations: 0 / 278.3 MB, free: 12.4 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.0004648/0.006902, allocations: 472 kB / 278.8 MB, free: 11.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.901e-05/0.006931, allocations: 12.03 kB / 278.8 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.007042, allocations: 44.84 kB / 278.9 MB, free: 11.86 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001753/0.007217, allocations: 173.3 kB / 279 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.785e-05/0.007235, allocations: 16.38 kB / 279 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.595e-05/0.007261, allocations: 16.38 kB / 279.1 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001645/0.007426, allocations: 145.4 kB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.007436, allocations: 3.938 kB / 279.2 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.094e-05/0.007447, allocations: 8 kB / 279.2 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.007451, allocations: 4 kB / 279.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.863e-05/0.00753, allocations: 51.75 kB / 279.3 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004423/0.007972, allocations: 361.2 kB / 279.6 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001397/0.008112, allocations: 141.3 kB / 279.8 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.68e-05/0.008159, allocations: 44.83 kB / 279.8 MB, free: 10.85 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.547e-05/0.008174, allocations: 8 kB / 279.8 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001019/0.008276, allocations: 93.38 kB / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of pre-optimization done (n=20): time 1.333e-06/0.008277, allocations: 0 / 279.9 MB, free: 10.74 MB / 266.7 MB Notification: Performance of matching and sorting (n=20): time 0.0001702/0.008447, allocations: 125.9 kB / 280 MB, free: 10.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.668e-05/0.008474, allocations: 51.41 kB / 280.1 MB, free: 10.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001262/0.0086, allocations: 221.1 kB / 280.3 MB, free: 10.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.757e-05/0.008618, allocations: 29.7 kB / 280.3 MB, free: 10.28 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.49e-05/0.008673, allocations: 136.8 kB / 280.4 MB, free: 10.14 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.668e-05/0.00871, allocations: 71.42 kB / 280.5 MB, free: 10.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.294e-05/0.008752, allocations: 37.69 kB / 280.6 MB, free: 10.02 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.724e-05/0.00883, allocations: 342.8 kB / 280.9 MB, free: 9.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.985e-05/0.00886, allocations: 18.83 kB / 280.9 MB, free: 9.66 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.675e-05/0.008906, allocations: 56.05 kB / 281 MB, free: 9.594 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.708e-05/0.008993, allocations: 103.9 kB / 281.1 MB, free: 9.48 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.008996, allocations: 0 / 281.1 MB, free: 9.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001229/0.009119, allocations: 132.3 kB / 281.2 MB, free: 9.344 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.192e-05/0.009131, allocations: 10.84 kB / 281.2 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.009135, allocations: 4 kB / 281.2 MB, free: 9.332 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.185e-05/0.009147, allocations: 4 kB / 281.2 MB, free: 9.328 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001181/0.009265, allocations: 43.92 kB / 281.3 MB, free: 9.285 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.727e-06/0.009269, allocations: 3.984 kB / 281.3 MB, free: 9.281 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.329e-05/0.009322, allocations: 19.84 kB / 281.3 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.00933, allocations: 8 kB / 281.3 MB, free: 9.254 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 7.552e-05/0.009406, allocations: 128.6 kB / 281.4 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.238e-05/0.009428, allocations: 23.92 kB / 281.4 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.009572, allocations: 122.4 kB / 281.6 MB, free: 8.973 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.009574, allocations: 4 kB / 281.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.342e-06/0.009575, allocations: 0 / 281.6 MB, free: 8.969 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.00958, allocations: 7.922 kB / 281.6 MB, free: 8.961 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.009707, allocations: 145.7 kB / 281.7 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.009709, allocations: 0 / 281.7 MB, free: 8.801 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001018/0.00981, allocations: 39.92 kB / 281.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.009813, allocations: 0 / 281.7 MB, free: 8.762 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.009826, allocations: 12 kB / 281.8 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.255e-06/0.009829, allocations: 0 / 281.8 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.00983, allocations: 0 / 281.8 MB, free: 8.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.01, allocations: 178.5 kB / 281.9 MB, free: 8.555 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.843e-05/0.01002, allocations: 23.89 kB / 282 MB, free: 8.531 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.956e-05/0.01004, allocations: 8 kB / 282 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.448e-05/0.01008, allocations: 0 / 282 MB, free: 8.523 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.775e-05/0.0101, allocations: 19.95 kB / 282 MB, free: 8.504 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.209e-05/0.01012, allocations: 4 kB / 282 MB, free: 8.5 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.722e-05/0.01017, allocations: 77.98 kB / 282.1 MB, free: 8.422 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01017, allocations: 7.938 kB / 282.1 MB, free: 8.414 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001597/0.01033, allocations: 59.88 kB / 282.1 MB, free: 8.355 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.0009916/0.01133, allocations: 0.5038 MB / 282.6 MB, free: 8.078 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001334/0.01146, allocations: 94.64 kB / 282.7 MB, free: 7.984 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.561e-06/0.01146, allocations: 4 kB / 282.7 MB, free: 7.98 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.422e-05/0.01152, allocations: 55.91 kB / 282.8 MB, free: 7.926 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001603/0.01168, allocations: 54.95 kB / 282.8 MB, free: 7.875 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007054/0.01238, allocations: 466.6 kB / 283.3 MB, free: 7.387 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.864e-05/0.01243, allocations: 83.97 kB / 283.4 MB, free: 7.285 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.653e-05/0.0125, allocations: 25.94 kB / 283.4 MB, free: 7.258 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.54e-05/0.01259, allocations: 95.28 kB / 283.5 MB, free: 7.164 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.0126, allocations: 0 / 283.5 MB, free: 7.164 MB / 266.7 MB Notification: Performance of Templates: time 0.004671/0.01727, allocations: 2.91 MB / 286.4 MB, free: 4.301 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 5.571519025135785]