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.001594/0.001594, allocations: 114.8 kB / 17.75 MB, free: 5.355 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.001794/0.001794, allocations: 184.5 kB / 18.67 MB, free: 4.441 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.36/1.36, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 43.92 kB / 352 MB, free: 3.285 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3116/0.3133, allocations: 49.43 MB / 401.4 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004229/0.3176, allocations: 2.239 MB / 403.6 MB, free: 6.664 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002076/0.3197, allocations: 1.083 MB / 404.7 MB, free: 5.574 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002139/0.3199, allocations: 7.938 kB / 404.7 MB, free: 5.566 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004437/0.3204, allocations: 95.56 kB / 404.8 MB, free: 5.473 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004514/0.3209, allocations: 119.2 kB / 404.9 MB, free: 5.355 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005249/0.3215, allocations: 154.3 kB / 405.1 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004577/0.3219, allocations: 282.8 kB / 405.3 MB, free: 4.93 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000246/0.3222, allocations: 84.59 kB / 405.4 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002721/0.3225, allocations: 115.6 kB / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002542/0.3227, allocations: 127.5 kB / 405.7 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.632e-05/0.3228, allocations: 16 kB / 405.7 MB, free: 4.59 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000161/0.3229, allocations: 47.98 kB / 405.7 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.453e-05/0.323, allocations: 55.83 kB / 405.8 MB, free: 4.488 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001429/0.3232, allocations: 111.4 kB / 405.9 MB, free: 4.379 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004282/0.3236, allocations: 296.1 kB / 406.2 MB, free: 4.094 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.3236, allocations: 4 kB / 406.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3237, allocations: 0 / 406.2 MB, free: 4.09 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.748e-06/0.3237, allocations: 0 / 406.2 MB, free: 4.09 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.0009606/0.3246, allocations: 0.5342 MB / 406.7 MB, free: 3.508 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.286e-05/0.3247, allocations: 8.031 kB / 406.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002133/0.3249, allocations: 32.66 kB / 406.8 MB, free: 3.469 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004273/0.3253, allocations: 264.6 kB / 407 MB, free: 3.168 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.677e-05/0.3254, allocations: 16.38 kB / 407 MB, free: 3.152 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.258e-05/0.3254, allocations: 16.12 kB / 407.1 MB, free: 3.137 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003666/0.3258, allocations: 173.1 kB / 407.2 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.646e-05/0.3258, allocations: 3.906 kB / 407.2 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.09e-05/0.3259, allocations: 4 kB / 407.2 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.225e-06/0.3259, allocations: 4 kB / 407.2 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002649/0.3261, allocations: 115.9 kB / 407.3 MB, free: 2.836 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009518/0.3271, allocations: 0.5663 MB / 407.9 MB, free: 2.219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003503/0.3275, allocations: 170.4 kB / 408.1 MB, free: 2.043 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001548/0.3276, allocations: 84.83 kB / 408.2 MB, free: 1.957 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.081e-05/0.3277, allocations: 8 kB / 408.2 MB, free: 1.949 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002342/0.3279, allocations: 107.4 kB / 408.3 MB, free: 1.832 MB / 318.1 MB Notification: Performance of pre-optimization done (n=20): time 1.833e-06/0.3279, allocations: 4 kB / 408.3 MB, free: 1.828 MB / 318.1 MB Notification: Performance of matching and sorting (n=20): time 0.0005292/0.3285, allocations: 232.4 kB / 408.5 MB, free: 1.598 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.679e-05/0.3285, allocations: 51.41 kB / 408.6 MB, free: 1.535 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.3288, allocations: 260.9 kB / 408.8 MB, free: 1.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.114e-05/0.3288, allocations: 25.7 kB / 408.8 MB, free: 1.238 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001085/0.3289, allocations: 144.4 kB / 409 MB, free: 1.094 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.451e-05/0.329, allocations: 67.02 kB / 409 MB, free: 1.027 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.157e-05/0.3291, allocations: 41.7 kB / 409.1 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001467/0.3293, allocations: 338.8 kB / 409.4 MB, free: 0.6406 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.3294, allocations: 51.92 kB / 409.5 MB, free: 0.5898 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.3296, allocations: 87.39 kB / 409.5 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00025/0.3298, allocations: 144.3 kB / 409.7 MB, free: 348 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.3298, allocations: 0 / 409.7 MB, free: 348 kB / 318.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003884/0.3302, allocations: 207.4 kB / 409.9 MB, free: 136 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.3303, allocations: 4 kB / 409.9 MB, free: 132 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.086e-05/0.3303, allocations: 12.03 kB / 409.9 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.3303, allocations: 0 / 409.9 MB, free: 120 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002135/0.3305, allocations: 43.97 kB / 410 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.3305, allocations: 7.938 kB / 410 MB, free: 68 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001215/0.3307, allocations: 15.84 kB / 410 MB, free: 52 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.041e-05/0.3307, allocations: 12 kB / 410 MB, free: 40 kB / 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.0001691/0.3309, allocations: 141.8 kB / 410.1 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.031e-05/0.3309, allocations: 19.72 kB / 410.1 MB, free: 15.87 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.151e-05/0.331, allocations: 34.17 kB / 410.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.379e-05/0.331, allocations: 8 kB / 410.2 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.418e-06/0.331, allocations: 3.938 kB / 410.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.429e-06/0.3311, allocations: 0 / 410.2 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002966/0.3314, allocations: 285.4 kB / 410.5 MB, free: 15.5 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.3314, allocations: 4 kB / 410.5 MB, free: 15.49 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000186/0.3316, allocations: 35.92 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3316, allocations: 3.984 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.965e-05/0.3316, allocations: 8 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.405e-06/0.3316, allocations: 0 / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.026e-06/0.3316, allocations: 3.938 kB / 410.5 MB, free: 15.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005061/0.3321, allocations: 280.9 kB / 410.8 MB, free: 15.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.476e-05/0.3322, allocations: 100.8 kB / 410.9 MB, free: 15.03 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.3323, allocations: 7.938 kB / 410.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.301e-05/0.3324, allocations: 7.938 kB / 410.9 MB, free: 15.02 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.012e-05/0.3324, allocations: 15.98 kB / 410.9 MB, free: 15 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.089e-05/0.3325, allocations: 4 kB / 410.9 MB, free: 15 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001893/0.3326, allocations: 188.5 kB / 411.1 MB, free: 14.81 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3327, allocations: 4.062 kB / 411.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003257/0.333, allocations: 59.91 kB / 411.2 MB, free: 14.75 MB / 334.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.0009945/0.334, allocations: 421 kB / 411.6 MB, free: 14.49 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003467/0.3344, allocations: 147.8 kB / 411.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.3344, allocations: 0 / 411.7 MB, free: 14.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001336/0.3345, allocations: 67.92 kB / 411.8 MB, free: 14.28 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000366/0.3349, allocations: 55.62 kB / 411.9 MB, free: 14.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001068/0.336, allocations: 0.556 MB / 412.4 MB, free: 13.64 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.3363, allocations: 0.7557 MB / 413.2 MB, free: 12.86 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.869e-05/0.3364, allocations: 27.38 kB / 413.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3364, allocations: 0 / 413.2 MB, free: 12.83 MB / 334.1 MB Notification: Performance of Templates: time 0.006264/0.3427, allocations: 3.138 MB / 416.3 MB, free: 9.695 MB / 334.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