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.0007561/0.0007562, allocations: 92.52 kB / 16.65 MB, free: 7.059 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.0008017/0.0008017, allocations: 178.7 kB / 17.57 MB, free: 6.316 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.31/1.31, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002492/0.0002493, allocations: 8 kB / 301.4 MB, free: 5.91 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09518/0.09545, allocations: 50.43 MB / 351.8 MB, free: 3.473 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002434/0.09792, allocations: 1.918 MB / 353.8 MB, free: 1.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001753/0.0997, allocations: 1.037 MB / 354.8 MB, free: 0.4961 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002012/0.09992, allocations: 4 kB / 354.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003504/0.1003, allocations: 87.69 kB / 354.9 MB, free: 416 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003389/0.1006, allocations: 103.4 kB / 355 MB, free: 312 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004018/0.1011, allocations: 127.7 kB / 355.1 MB, free: 184 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003516/0.1014, allocations: 270.8 kB / 355.4 MB, free: 15.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.1016, allocations: 80.94 kB / 355.5 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001589/0.1018, allocations: 99.62 kB / 355.6 MB, free: 15.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001701/0.102, allocations: 103.5 kB / 355.7 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.972e-05/0.102, allocations: 12 kB / 355.7 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001349/0.1022, allocations: 43.98 kB / 355.7 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.475e-05/0.1022, allocations: 51.77 kB / 355.8 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.1024, allocations: 133 kB / 355.9 MB, free: 15.38 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003144/0.1027, allocations: 267.3 kB / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1027, allocations: 0 / 356.1 MB, free: 15.12 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.815e-06/0.1027, allocations: 3.984 kB / 356.2 MB, free: 15.12 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.272e-06/0.1027, allocations: 0 / 356.2 MB, free: 15.12 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.0007123/0.1034, allocations: 0.4992 MB / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.467e-05/0.1035, allocations: 8.031 kB / 356.7 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001481/0.1036, allocations: 28.66 kB / 356.7 MB, free: 14.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003044/0.104, allocations: 260.6 kB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.625e-05/0.104, allocations: 12.38 kB / 357 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.175e-05/0.104, allocations: 24.11 kB / 357 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003122/0.1044, allocations: 157.4 kB / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.1044, allocations: 0 / 357.1 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.148e-05/0.1044, allocations: 11.94 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.334e-06/0.1044, allocations: 4 kB / 357.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.1047, allocations: 119.9 kB / 357.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009127/0.1056, allocations: 0.5621 MB / 357.8 MB, free: 13.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003356/0.106, allocations: 174.5 kB / 358 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001645/0.1061, allocations: 84.83 kB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.958e-05/0.1062, allocations: 4 kB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002638/0.1064, allocations: 125.9 kB / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.713e-06/0.1065, allocations: 0 / 358.2 MB, free: 12.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004877/0.1069, allocations: 229.7 kB / 358.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.634e-05/0.107, allocations: 59.39 kB / 358.5 MB, free: 12.59 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002424/0.1072, allocations: 249 kB / 358.7 MB, free: 12.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.475e-05/0.1073, allocations: 33.7 kB / 358.8 MB, free: 12.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.921e-05/0.1074, allocations: 140.3 kB / 358.9 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.143e-05/0.1074, allocations: 67.02 kB / 359 MB, free: 12.1 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.846e-05/0.1075, allocations: 25.7 kB / 359 MB, free: 12.07 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001103/0.1076, allocations: 338.8 kB / 359.3 MB, free: 11.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001144/0.1077, allocations: 51.98 kB / 359.4 MB, free: 11.68 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001471/0.1079, allocations: 91.33 kB / 359.5 MB, free: 11.57 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002481/0.1081, allocations: 138.4 kB / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.1082, allocations: 0 / 359.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003521/0.1085, allocations: 209.2 kB / 359.8 MB, free: 11.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.1085, allocations: 11.94 kB / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.63e-06/0.1086, allocations: 0 / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.242e-05/0.1086, allocations: 0 / 359.8 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000209/0.1088, allocations: 51.91 kB / 359.9 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.215e-06/0.1088, allocations: 3.938 kB / 359.9 MB, free: 11.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001196/0.1089, allocations: 23.88 kB / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.554e-05/0.1089, allocations: 15.98 kB / 359.9 MB, free: 11.11 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.000129/0.1091, allocations: 144.9 kB / 360 MB, free: 10.96 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.165e-05/0.1091, allocations: 23.66 kB / 360.1 MB, free: 10.94 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.445e-05/0.1092, allocations: 34.16 kB / 360.1 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.348e-06/0.1092, allocations: 4 kB / 360.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.151e-06/0.1092, allocations: 3.938 kB / 360.1 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.159e-06/0.1092, allocations: 3.984 kB / 360.1 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002641/0.1095, allocations: 277.5 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1095, allocations: 0 / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001781/0.1097, allocations: 35.98 kB / 360.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.899e-06/0.1097, allocations: 4 kB / 360.4 MB, free: 10.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.646e-05/0.1097, allocations: 4 kB / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.1097, allocations: 0 / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.993e-06/0.1098, allocations: 3.938 kB / 360.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004802/0.1102, allocations: 291.2 kB / 360.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.447e-05/0.1103, allocations: 96.8 kB / 360.8 MB, free: 10.11 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.662e-05/0.1104, allocations: 12.06 kB / 360.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.678e-05/0.1105, allocations: 15.92 kB / 360.8 MB, free: 10.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.1105, allocations: 7.984 kB / 360.8 MB, free: 10.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.992e-05/0.1105, allocations: 8 kB / 360.9 MB, free: 10.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000169/0.1107, allocations: 188.5 kB / 361 MB, free: 9.891 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1107, allocations: 0 / 361 MB, free: 9.891 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.111, allocations: 63.84 kB / 361.1 MB, free: 9.828 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.001029/0.1121, allocations: 414.2 kB / 361.5 MB, free: 9.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003188/0.1124, allocations: 141.2 kB / 361.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.1124, allocations: 0 / 361.6 MB, free: 9.434 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000142/0.1126, allocations: 71.91 kB / 361.7 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003706/0.1129, allocations: 51.64 kB / 361.8 MB, free: 9.316 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001034/0.114, allocations: 0.6628 MB / 362.4 MB, free: 8.625 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002845/0.1143, allocations: 0.7443 MB / 363.2 MB, free: 7.855 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.1144, allocations: 29.94 kB / 363.2 MB, free: 7.828 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.401e-05/0.1145, allocations: 27.44 kB / 363.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1145, allocations: 0 / 363.2 MB, free: 7.805 MB / 302.1 MB Notification: Performance of Templates: time 0.006144/0.1206, allocations: 2.516 MB / 365.7 MB, free: 5.32 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/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_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches