Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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_4.0.0_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_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001457/0.001457, allocations: 115.8 kB / 17.29 MB, free: 6.219 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001508/0.001508, allocations: 197.3 kB / 18.21 MB, free: 5.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.381/1.381, allocations: 222.9 MB / 241.9 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 43.23 kB / 300.8 MB, free: 6.141 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09821/0.09939, allocations: 49.46 MB / 350.2 MB, free: 4.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00403/0.1035, allocations: 2.277 MB / 352.5 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001941/0.1054, allocations: 1.056 MB / 353.6 MB, free: 1.32 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002046/0.1057, allocations: 7.938 kB / 353.6 MB, free: 1.312 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004466/0.1062, allocations: 87.69 kB / 353.7 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004322/0.1066, allocations: 99.48 kB / 353.8 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004698/0.1071, allocations: 135.4 kB / 353.9 MB, free: 1 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004138/0.1075, allocations: 282.8 kB / 354.2 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002302/0.1078, allocations: 92.58 kB / 354.3 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002245/0.108, allocations: 111.6 kB / 354.4 MB, free: 0.5117 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002439/0.1083, allocations: 123.5 kB / 354.5 MB, free: 400 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.366e-05/0.1083, allocations: 20 kB / 354.5 MB, free: 380 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.1085, allocations: 47.98 kB / 354.6 MB, free: 332 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.661e-05/0.1086, allocations: 51.83 kB / 354.6 MB, free: 280 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001468/0.1087, allocations: 123.3 kB / 354.7 MB, free: 156 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003536/0.1091, allocations: 223.9 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.1091, allocations: 0 / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1091, allocations: 0 / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.314e-05/0.1091, allocations: 0 / 354.9 MB, free: 15.93 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.0009091/0.1101, allocations: 0.5342 MB / 355.5 MB, free: 15.35 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.868e-05/0.1101, allocations: 12.02 kB / 355.5 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.1103, allocations: 36.56 kB / 355.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003268/0.1106, allocations: 264.6 kB / 355.8 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.101e-05/0.1107, allocations: 12.38 kB / 355.8 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.043e-05/0.1107, allocations: 20.12 kB / 355.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003516/0.1111, allocations: 165.4 kB / 356 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.739e-05/0.1111, allocations: 0 / 356 MB, free: 14.81 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.162e-05/0.1111, allocations: 7.938 kB / 356 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1111, allocations: 4 kB / 356 MB, free: 14.8 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002567/0.1114, allocations: 115.9 kB / 356.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009195/0.1123, allocations: 0.5622 MB / 356.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003196/0.1127, allocations: 174.4 kB / 356.8 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.1128, allocations: 92.75 kB / 356.9 MB, free: 13.8 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.448e-05/0.1129, allocations: 7.984 kB / 356.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002917/0.1132, allocations: 111.3 kB / 357 MB, free: 13.67 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.603e-06/0.1132, allocations: 4 kB / 357 MB, free: 13.66 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005062/0.1137, allocations: 228.3 kB / 357.3 MB, free: 13.44 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.022e-05/0.1137, allocations: 55.41 kB / 357.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002483/0.114, allocations: 257 kB / 357.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.114, allocations: 29.7 kB / 357.6 MB, free: 13.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.1141, allocations: 144.3 kB / 357.7 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.151e-05/0.1142, allocations: 63.11 kB / 357.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.666e-05/0.1143, allocations: 41.7 kB / 357.8 MB, free: 12.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.1144, allocations: 334.8 kB / 358.2 MB, free: 12.49 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001268/0.1145, allocations: 47.98 kB / 358.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000129/0.1147, allocations: 95.39 kB / 358.3 MB, free: 12.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002387/0.1149, allocations: 142.5 kB / 358.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1149, allocations: 0 / 358.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003589/0.1153, allocations: 205.2 kB / 358.7 MB, free: 11.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.1153, allocations: 7.938 kB / 358.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.008e-05/0.1153, allocations: 4 kB / 358.7 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.1154, allocations: 7.922 kB / 358.7 MB, free: 11.96 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002112/0.1156, allocations: 39.98 kB / 358.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.045e-05/0.1156, allocations: 7.938 kB / 358.7 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001263/0.1157, allocations: 31.67 kB / 358.8 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.394e-05/0.1158, allocations: 4.094 kB / 358.8 MB, free: 11.88 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.0001438/0.1159, allocations: 145.8 kB / 358.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.645e-05/0.1159, allocations: 23.8 kB / 358.9 MB, free: 11.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.258e-05/0.116, allocations: 26.19 kB / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.116, allocations: 0 / 358.9 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.1161, allocations: 3.938 kB / 359 MB, free: 11.67 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.1161, allocations: 7.984 kB / 359 MB, free: 11.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002853/0.1164, allocations: 281.4 kB / 359.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.675e-06/0.1164, allocations: 0 / 359.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00018/0.1165, allocations: 35.92 kB / 359.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1166, allocations: 4 kB / 359.3 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.1166, allocations: 8 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.037e-06/0.1166, allocations: 4 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/0.1166, allocations: 3.938 kB / 359.3 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004839/0.1171, allocations: 280.7 kB / 359.6 MB, free: 10.99 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.537e-05/0.1172, allocations: 96.89 kB / 359.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.564e-05/0.1172, allocations: 4 kB / 359.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.534e-05/0.1173, allocations: 19.89 kB / 359.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.11e-05/0.1174, allocations: 19.92 kB / 359.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.101e-05/0.1174, allocations: 7.938 kB / 359.7 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000175/0.1176, allocations: 184.5 kB / 359.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1176, allocations: 0 / 359.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002899/0.1179, allocations: 63.92 kB / 360 MB, free: 10.59 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.001081/0.119, allocations: 406.9 kB / 360.3 MB, free: 10.35 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000373/0.1194, allocations: 161.3 kB / 360.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.1194, allocations: 0 / 360.5 MB, free: 10.19 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000139/0.1195, allocations: 74.67 kB / 360.6 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003572/0.1199, allocations: 48.58 kB / 360.6 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00114/0.121, allocations: 0.6516 MB / 361.3 MB, free: 9.391 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003558/0.1214, allocations: 0.748 MB / 362 MB, free: 8.617 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.939e-05/0.1215, allocations: 23.44 kB / 362 MB, free: 8.594 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1215, allocations: 0 / 362 MB, free: 8.594 MB / 302.1 MB Notification: Performance of Templates: time 0.006017/0.1275, allocations: 3.128 MB / 365.2 MB, free: 5.473 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches