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.001249/0.001249, allocations: 110.3 kB / 16.51 MB, free: 6.715 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.00118/0.001181, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.307/1.307, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009092/0.0009092, allocations: 43.81 kB / 299.9 MB, free: 6.324 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07755/0.07847, allocations: 49.44 MB / 349.4 MB, free: 4.867 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.003652/0.08215, allocations: 2.285 MB / 351.7 MB, free: 2.562 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001695/0.08388, allocations: 1.064 MB / 352.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001289/0.08402, allocations: 0 / 352.7 MB, free: 1.492 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003298/0.08436, allocations: 83.69 kB / 352.8 MB, free: 1.41 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003015/0.08469, allocations: 103.4 kB / 352.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003894/0.08509, allocations: 134.3 kB / 353 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003351/0.08544, allocations: 274.8 kB / 353.3 MB, free: 0.9102 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.08563, allocations: 77 kB / 353.4 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001413/0.08577, allocations: 103.6 kB / 353.5 MB, free: 0.7227 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001618/0.08594, allocations: 119.5 kB / 353.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.08598, allocations: 15.94 kB / 353.6 MB, free: 0.5898 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001483/0.08614, allocations: 47.97 kB / 353.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.183e-05/0.08622, allocations: 59.77 kB / 353.7 MB, free: 496 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001177/0.08635, allocations: 111.4 kB / 353.8 MB, free: 384 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.08665, allocations: 271.4 kB / 354.1 MB, free: 112 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.08666, allocations: 0 / 354.1 MB, free: 112 kB / 286.1 MB Notification: Performance of FrontEnd: time 8.12e-07/0.08666, allocations: 0 / 354.1 MB, free: 112 kB / 286.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.08668, allocations: 0 / 354.1 MB, free: 112 kB / 286.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.0007969/0.08748, allocations: 0.5459 MB / 354.7 MB, free: 15.52 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.974e-05/0.08753, allocations: 11.97 kB / 354.7 MB, free: 15.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001464/0.08768, allocations: 32.56 kB / 354.7 MB, free: 15.47 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002867/0.08798, allocations: 260.6 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.088, allocations: 8.375 kB / 355 MB, free: 15.17 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.802e-05/0.08805, allocations: 24.12 kB / 355 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003305/0.08838, allocations: 161.4 kB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.44e-05/0.08841, allocations: 3.984 kB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.968e-05/0.08843, allocations: 4 kB / 355.1 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.08845, allocations: 8 kB / 355.2 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002489/0.0887, allocations: 115.9 kB / 355.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007966/0.0895, allocations: 0.566 MB / 355.8 MB, free: 14.24 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002946/0.08981, allocations: 162.5 kB / 356 MB, free: 14.07 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000152/0.08997, allocations: 91.23 kB / 356.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.445e-05/0.09003, allocations: 7.938 kB / 356.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002634/0.0903, allocations: 111.3 kB / 356.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.623e-06/0.09031, allocations: 0 / 356.2 MB, free: 13.85 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004804/0.0908, allocations: 236.4 kB / 356.4 MB, free: 13.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.008e-05/0.09084, allocations: 51.41 kB / 356.5 MB, free: 13.55 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.09107, allocations: 253 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.025e-05/0.0911, allocations: 33.64 kB / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.177e-05/0.0912, allocations: 144.3 kB / 356.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.473e-05/0.09126, allocations: 71.08 kB / 357 MB, free: 13.05 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.517e-05/0.09133, allocations: 41.7 kB / 357 MB, free: 13 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.09146, allocations: 334.8 kB / 357.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.09159, allocations: 51.97 kB / 357.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001322/0.09173, allocations: 91.41 kB / 357.5 MB, free: 12.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002489/0.09198, allocations: 149 kB / 357.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.09199, allocations: 0 / 357.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003359/0.09233, allocations: 201.2 kB / 357.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.471e-05/0.09236, allocations: 10.59 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.09237, allocations: 4 kB / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.163e-05/0.09239, allocations: 0 / 357.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002169/0.09261, allocations: 43.92 kB / 357.9 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.09262, allocations: 7.938 kB / 357.9 MB, free: 12.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.09275, allocations: 35.77 kB / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.09277, allocations: 4 kB / 357.9 MB, free: 12.05 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.0001227/0.0929, allocations: 149.8 kB / 358.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.39e-05/0.09294, allocations: 19.81 kB / 358.1 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.306e-05/0.09301, allocations: 30.17 kB / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.09301, allocations: 0 / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.09302, allocations: 3.938 kB / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.246e-06/0.09303, allocations: 0 / 358.1 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002729/0.09331, allocations: 289.4 kB / 358.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.09333, allocations: 4 kB / 358.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001846/0.09352, allocations: 31.98 kB / 358.4 MB, free: 11.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.09353, allocations: 7.922 kB / 358.4 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.09355, allocations: 8 kB / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.09356, allocations: 0 / 358.5 MB, free: 11.46 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.09357, allocations: 3.938 kB / 358.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000495/0.09407, allocations: 278 kB / 358.7 MB, free: 11.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.929e-05/0.09414, allocations: 104.9 kB / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.439e-05/0.09418, allocations: 4 kB / 358.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.487e-05/0.09428, allocations: 11.84 kB / 358.8 MB, free: 11.03 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.422e-05/0.09433, allocations: 11.98 kB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.936e-05/0.09436, allocations: 8 kB / 358.9 MB, free: 11.01 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001601/0.09452, allocations: 188.5 kB / 359.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09453, allocations: 0 / 359.1 MB, free: 10.83 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002686/0.0948, allocations: 55.94 kB / 359.1 MB, free: 10.77 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.0008911/0.0957, allocations: 414.7 kB / 359.5 MB, free: 10.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003097/0.09602, allocations: 143.8 kB / 359.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.09603, allocations: 0 / 359.7 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001374/0.09618, allocations: 75.91 kB / 359.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003311/0.09652, allocations: 40.64 kB / 359.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009745/0.0975, allocations: 0.6274 MB / 360.4 MB, free: 9.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000332/0.09785, allocations: 0.7482 MB / 361.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001168/0.09797, allocations: 25.94 kB / 361.2 MB, free: 8.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.354e-05/0.09805, allocations: 31.42 kB / 361.2 MB, free: 8.785 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.09806, allocations: 3.938 kB / 361.2 MB, free: 8.781 MB / 302.1 MB Notification: Performance of Templates: time 0.00616/0.1042, allocations: 2.532 MB / 363.7 MB, free: 6.277 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