Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_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.000912/0.000918, allocations: 96.45 kB / 16.95 MB, free: 6.062 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.001109/0.001109, allocations: 179 kB / 17.84 MB, free: 5.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.582/1.582, allocations: 205.4 MB / 224 MB, free: 13.02 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005026/0.0005028, allocations: 12 kB / 280.8 MB, free: 3.711 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1075/0.108, allocations: 47.58 MB / 328.3 MB, free: 4.059 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002971/0.111, allocations: 1.854 MB / 330.2 MB, free: 2.188 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001702/0.1128, allocations: 0.8902 MB / 331.1 MB, free: 1.289 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002684/0.1131, allocations: 4 kB / 331.1 MB, free: 1.285 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004594/0.1135, allocations: 83.69 kB / 331.2 MB, free: 1.203 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000465/0.114, allocations: 111.4 kB / 331.3 MB, free: 1.094 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004645/0.1145, allocations: 107.8 kB / 331.4 MB, free: 0.9883 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004705/0.115, allocations: 262.8 kB / 331.6 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002583/0.1153, allocations: 72.56 kB / 331.7 MB, free: 0.6602 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002948/0.1156, allocations: 99.62 kB / 331.8 MB, free: 0.5625 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002532/0.1158, allocations: 111.5 kB / 331.9 MB, free: 464 kB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.194e-05/0.1159, allocations: 8 kB / 331.9 MB, free: 456 kB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001993/0.1161, allocations: 32 kB / 332 MB, free: 424 kB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 8.786e-05/0.1162, allocations: 43.83 kB / 332 MB, free: 380 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001017/0.1163, allocations: 65.58 kB / 332.1 MB, free: 308 kB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003677/0.1167, allocations: 207.8 kB / 332.3 MB, free: 100 kB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.205e-06/0.1167, allocations: 0 / 332.3 MB, free: 100 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.865e-06/0.1167, allocations: 0 / 332.3 MB, free: 100 kB / 270.1 MB Notification: Performance of Transformations before backend: time 1.694e-05/0.1167, allocations: 4 kB / 332.3 MB, free: 96 kB / 270.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.001092/0.1178, allocations: 0.5028 MB / 332.8 MB, free: 15.54 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.932e-05/0.1179, allocations: 12.03 kB / 332.8 MB, free: 15.53 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002345/0.1181, allocations: 27.7 kB / 332.8 MB, free: 15.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000402/0.1185, allocations: 251.5 kB / 333.1 MB, free: 15.21 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.683e-05/0.1186, allocations: 23.88 kB / 333.1 MB, free: 15.19 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.05e-05/0.1187, allocations: 20 kB / 333.1 MB, free: 15.17 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003979/0.1191, allocations: 165.2 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.234e-05/0.1191, allocations: 4 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.324e-05/0.1191, allocations: 4 kB / 333.3 MB, free: 15 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.958e-06/0.1191, allocations: 4 kB / 333.3 MB, free: 14.99 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.1194, allocations: 111.9 kB / 333.4 MB, free: 14.88 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009908/0.1204, allocations: 0.5665 MB / 334 MB, free: 14.27 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003322/0.1208, allocations: 158.5 kB / 334.1 MB, free: 14.1 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001606/0.1209, allocations: 88.81 kB / 334.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.402e-05/0.121, allocations: 4 kB / 334.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002888/0.1213, allocations: 119.6 kB / 334.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.1213, allocations: 0 / 334.3 MB, free: 13.88 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005082/0.1218, allocations: 229.2 kB / 334.5 MB, free: 13.65 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.492e-05/0.1219, allocations: 55.41 kB / 334.6 MB, free: 13.58 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002691/0.1221, allocations: 249 kB / 334.8 MB, free: 13.33 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.394e-05/0.1222, allocations: 37.69 kB / 334.9 MB, free: 13.29 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001336/0.1223, allocations: 140.4 kB / 335 MB, free: 13.14 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.543e-05/0.1224, allocations: 67.02 kB / 335.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.1224, allocations: 0 / 335.1 MB, free: 13.08 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.1226, allocations: 342.8 kB / 335.4 MB, free: 12.73 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.1227, allocations: 43.98 kB / 335.5 MB, free: 12.69 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001593/0.1229, allocations: 91.52 kB / 335.5 MB, free: 12.59 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001406/0.1231, allocations: 56.94 kB / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.1231, allocations: 0 / 335.6 MB, free: 12.54 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003797/0.1235, allocations: 202.9 kB / 335.8 MB, free: 12.33 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.411e-05/0.1235, allocations: 11.95 kB / 335.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.367e-06/0.1235, allocations: 3.984 kB / 335.8 MB, free: 12.32 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.652e-05/0.1235, allocations: 3.984 kB / 335.8 MB, free: 12.31 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002232/0.1238, allocations: 48.02 kB / 335.9 MB, free: 12.27 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.095e-06/0.1238, allocations: 4 kB / 335.9 MB, free: 12.26 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001427/0.1239, allocations: 27.77 kB / 335.9 MB, free: 12.23 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.243e-05/0.124, allocations: 12 kB / 335.9 MB, free: 12.22 MB / 286.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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001573/0.1241, allocations: 137.8 kB / 336 MB, free: 12.08 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.959e-05/0.1242, allocations: 23.7 kB / 336.1 MB, free: 12.05 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.141e-05/0.1243, allocations: 34.14 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.387e-05/0.1243, allocations: 4 kB / 336.1 MB, free: 12.02 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.1243, allocations: 4 kB / 336.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.831e-06/0.1243, allocations: 3.984 kB / 336.1 MB, free: 12.01 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003551/0.1247, allocations: 281.4 kB / 336.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.456e-06/0.1247, allocations: 0 / 336.4 MB, free: 11.68 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001793/0.1249, allocations: 35.92 kB / 336.4 MB, free: 11.65 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.967e-06/0.1249, allocations: 3.938 kB / 336.4 MB, free: 11.64 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.108e-05/0.1249, allocations: 11.95 kB / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.445e-06/0.1249, allocations: 0 / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.1249, allocations: 0 / 336.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004936/0.1254, allocations: 280.8 kB / 336.7 MB, free: 11.34 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.256e-05/0.1255, allocations: 100.8 kB / 336.8 MB, free: 11.22 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.672e-05/0.1256, allocations: 7.984 kB / 336.8 MB, free: 11.21 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.064e-05/0.1256, allocations: 11.95 kB / 336.8 MB, free: 11.2 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.1257, allocations: 11.98 kB / 336.8 MB, free: 11.19 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.293e-05/0.1257, allocations: 8 kB / 336.8 MB, free: 11.18 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.000196/0.1259, allocations: 188.5 kB / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1259, allocations: 4.062 kB / 337 MB, free: 11 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0003071/0.1263, allocations: 59.84 kB / 337.1 MB, free: 10.94 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001085/0.1274, allocations: 405 kB / 337.5 MB, free: 10.55 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003547/0.1277, allocations: 135.9 kB / 337.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 3.185e-06/0.1277, allocations: 0 / 337.6 MB, free: 10.41 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001526/0.1279, allocations: 75.88 kB / 337.7 MB, free: 10.34 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003752/0.1283, allocations: 53.31 kB / 337.8 MB, free: 10.29 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001224/0.1295, allocations: 0.6443 MB / 338.4 MB, free: 9.621 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000387/0.1299, allocations: 0.7481 MB / 339.1 MB, free: 8.848 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.000129/0.1301, allocations: 25.95 kB / 339.2 MB, free: 8.824 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.637e-05/0.1301, allocations: 35.36 kB / 339.2 MB, free: 8.789 MB / 286.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1301, allocations: 0 / 339.2 MB, free: 8.789 MB / 286.1 MB Notification: Performance of Templates: time 0.006767/0.1369, allocations: 2.438 MB / 341.6 MB, free: 6.348 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Thermal/HeatTransfer/Examples/Motor/Motor.csv","../files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches