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.001593/0.001593, allocations: 114.5 kB / 17.73 MB, free: 5.32 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.001837/0.001837, allocations: 187 kB / 18.66 MB, free: 4.395 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.587/1.587, allocations: 205.1 MB / 224.5 MB, free: 12.26 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.001302/0.001302, allocations: 43.92 kB / 328.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.101/0.1023, allocations: 46.62 MB / 375.1 MB, free: 4.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004547/0.1069, allocations: 2.228 MB / 377.4 MB, free: 2.352 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.109, allocations: 0.9594 MB / 378.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002862/0.1093, allocations: 7.938 kB / 378.3 MB, free: 1.375 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005588/0.11, allocations: 95.56 kB / 378.4 MB, free: 1.281 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005679/0.1105, allocations: 123.2 kB / 378.5 MB, free: 1.16 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006496/0.1112, allocations: 127.6 kB / 378.7 MB, free: 1.035 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006951/0.1119, allocations: 286.8 kB / 378.9 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003025/0.1122, allocations: 88.56 kB / 379 MB, free: 0.668 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003446/0.1126, allocations: 111.6 kB / 379.1 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003606/0.113, allocations: 127.5 kB / 379.3 MB, free: 444 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.464e-05/0.113, allocations: 16 kB / 379.3 MB, free: 428 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002647/0.1133, allocations: 51.97 kB / 379.3 MB, free: 376 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001315/0.1135, allocations: 55.78 kB / 379.4 MB, free: 320 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002097/0.1137, allocations: 127.3 kB / 379.5 MB, free: 192 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2426/0.3563, allocations: 273.6 kB / 379.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.3564, allocations: 0 / 379.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.3564, allocations: 0 / 379.8 MB, free: 10.27 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.906e-05/0.3564, allocations: 0 / 379.8 MB, free: 10.27 MB / 318.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.001017/0.3575, allocations: 0.5474 MB / 380.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.124e-05/0.3575, allocations: 9.344 kB / 380.3 MB, free: 9.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001853/0.3577, allocations: 29.03 kB / 380.4 MB, free: 9.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004402/0.3582, allocations: 254.6 kB / 380.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.973e-05/0.3582, allocations: 10.69 kB / 380.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.374e-05/0.3582, allocations: 25.7 kB / 380.6 MB, free: 9.621 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003654/0.3586, allocations: 165.7 kB / 380.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.699e-05/0.3586, allocations: 0 / 380.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.138e-05/0.3587, allocations: 10.02 kB / 380.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.3587, allocations: 3.094 kB / 380.8 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000264/0.359, allocations: 119.9 kB / 380.9 MB, free: 9.578 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009655/0.3599, allocations: 0.5539 MB / 381.5 MB, free: 9.289 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002988/0.3602, allocations: 166.8 kB / 381.6 MB, free: 9.266 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001488/0.3604, allocations: 84.83 kB / 381.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.24e-05/0.3604, allocations: 6.25 kB / 381.7 MB, free: 9.258 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002147/0.3607, allocations: 128.5 kB / 381.9 MB, free: 9.199 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.673e-06/0.3607, allocations: 0 / 381.9 MB, free: 9.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005394/0.3612, allocations: 228.6 kB / 382.1 MB, free: 9.156 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.696e-05/0.3613, allocations: 54.41 kB / 382.1 MB, free: 9.094 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003284/0.3616, allocations: 255.5 kB / 382.4 MB, free: 8.988 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.781e-05/0.3616, allocations: 30.89 kB / 382.4 MB, free: 8.957 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.398e-05/0.3617, allocations: 144 kB / 382.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.89e-05/0.3618, allocations: 67.39 kB / 382.6 MB, free: 8.816 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.252e-05/0.3619, allocations: 42.88 kB / 382.7 MB, free: 8.801 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.908e-05/0.3619, allocations: 335.6 kB / 383 MB, free: 8.484 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001338/0.3621, allocations: 54.78 kB / 383 MB, free: 8.484 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001681/0.3623, allocations: 92.91 kB / 383.1 MB, free: 8.445 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002883/0.3626, allocations: 145.7 kB / 383.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.3626, allocations: 2.531 kB / 383.3 MB, free: 8.414 MB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003798/0.363, allocations: 202.8 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.363, allocations: 6.781 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.363, allocations: 1.797 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.061e-05/0.363, allocations: 2.062 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002411/0.3633, allocations: 56.78 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.838e-06/0.3633, allocations: 1.375 kB / 383.5 MB, free: 8.367 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.57e-05/0.3634, allocations: 21.69 kB / 383.6 MB, free: 8.355 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.3634, allocations: 7.672 kB / 383.6 MB, free: 8.355 MB / 318.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.0001185/0.3635, allocations: 144.8 kB / 383.7 MB, free: 8.238 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.602e-05/0.3636, allocations: 22.22 kB / 383.7 MB, free: 8.227 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.549e-05/0.3637, allocations: 30.86 kB / 383.8 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.719e-06/0.3637, allocations: 1.438 kB / 383.8 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.766e-06/0.3637, allocations: 6.969 kB / 383.8 MB, free: 8.219 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.382e-06/0.3637, allocations: 4.688 kB / 383.8 MB, free: 8.215 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002757/0.364, allocations: 283.6 kB / 384.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.364, allocations: 1.344 kB / 384.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001873/0.3642, allocations: 39.81 kB / 384.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.3642, allocations: 1.75 kB / 384.1 MB, free: 8.023 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.3642, allocations: 6.062 kB / 384.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3642, allocations: 1.188 kB / 384.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3642, allocations: 2.531 kB / 384.1 MB, free: 8.02 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004839/0.3647, allocations: 288 kB / 384.4 MB, free: 7.934 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.649e-05/0.3648, allocations: 100.2 kB / 384.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.767e-05/0.3648, allocations: 5.625 kB / 384.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.836e-05/0.3649, allocations: 3.406 kB / 384.5 MB, free: 7.824 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.697e-05/0.365, allocations: 21.72 kB / 384.5 MB, free: 7.816 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.091e-05/0.365, allocations: 10.11 kB / 384.5 MB, free: 7.816 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001723/0.3652, allocations: 187.2 kB / 384.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3652, allocations: 0 / 384.7 MB, free: 7.738 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.3655, allocations: 52.12 kB / 384.8 MB, free: 7.738 MB / 318.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.0009898/0.3665, allocations: 420.1 kB / 385.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003183/0.3668, allocations: 146.5 kB / 385.3 MB, free: 7.426 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3668, allocations: 4.062 kB / 385.3 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001328/0.367, allocations: 71.88 kB / 385.4 MB, free: 7.422 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003644/0.3674, allocations: 47.95 kB / 385.4 MB, free: 7.414 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009135/0.3683, allocations: 0.5363 MB / 386 MB, free: 7.105 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002013/0.3685, allocations: 0.7427 MB / 386.7 MB, free: 6.41 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0001048/0.3686, allocations: 36.83 kB / 386.8 MB, free: 6.398 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.293e-05/0.3687, allocations: 21.55 kB / 386.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of SimCode: time 2.6e-07/0.3687, allocations: 0 / 386.8 MB, free: 6.395 MB / 318.1 MB Notification: Performance of Templates: time 0.007652/0.3763, allocations: 2.7 MB / 389.5 MB, free: 6.137 MB / 318.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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches