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.001132/0.001132, allocations: 95.73 kB / 17.31 MB, free: 6.391 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.001613/0.001613, allocations: 175.5 kB / 18.21 MB, free: 5.551 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.349/1.349, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000253/0.0002531, allocations: 7.938 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08903/0.0893, allocations: 50.41 MB / 352.5 MB, free: 3.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002391/0.09173, allocations: 1.934 MB / 354.4 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001603/0.09335, allocations: 1.041 MB / 355.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001309/0.0935, allocations: 0 / 355.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.09383, allocations: 87.69 kB / 355.5 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002878/0.09413, allocations: 103.4 kB / 355.6 MB, free: 0.5312 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003504/0.09449, allocations: 135.1 kB / 355.8 MB, free: 412 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002988/0.0948, allocations: 270.8 kB / 356 MB, free: 140 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001684/0.09498, allocations: 69.03 kB / 356.1 MB, free: 60 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000156/0.09514, allocations: 99.62 kB / 356.2 MB, free: 15.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.09532, allocations: 115.5 kB / 356.3 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.849e-05/0.09536, allocations: 8 kB / 356.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000125/0.09549, allocations: 43.98 kB / 356.4 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.018e-05/0.09557, allocations: 51.75 kB / 356.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001157/0.09569, allocations: 121.1 kB / 356.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002387/0.09594, allocations: 219.6 kB / 356.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.09595, allocations: 0 / 356.8 MB, free: 15.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.09596, allocations: 4 kB / 356.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.279e-06/0.09597, allocations: 0 / 356.8 MB, free: 15.4 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.0006689/0.09664, allocations: 0.4992 MB / 357.3 MB, free: 14.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.138e-05/0.09668, allocations: 8.031 kB / 357.3 MB, free: 14.85 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001366/0.09682, allocations: 28.66 kB / 357.3 MB, free: 14.82 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.09711, allocations: 260.7 kB / 357.5 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.984e-05/0.09714, allocations: 12.31 kB / 357.6 MB, free: 14.51 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.385e-05/0.09719, allocations: 28.12 kB / 357.6 MB, free: 14.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000305/0.0975, allocations: 153.4 kB / 357.7 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.516e-05/0.09753, allocations: 8 kB / 357.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.09756, allocations: 4 kB / 357.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.09757, allocations: 4 kB / 357.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.09781, allocations: 123.9 kB / 357.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008025/0.09862, allocations: 0.5583 MB / 358.4 MB, free: 13.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002966/0.09893, allocations: 170.4 kB / 358.6 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001499/0.09909, allocations: 84.83 kB / 358.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.702e-05/0.09913, allocations: 8 kB / 358.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002396/0.09937, allocations: 122 kB / 358.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 1.473e-06/0.09939, allocations: 0 / 358.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004664/0.09986, allocations: 229.7 kB / 359 MB, free: 12.95 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.652e-05/0.0999, allocations: 55.41 kB / 359.1 MB, free: 12.89 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002308/0.1001, allocations: 249 kB / 359.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.1002, allocations: 29.7 kB / 359.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.494e-05/0.1003, allocations: 148.3 kB / 359.5 MB, free: 12.45 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.247e-05/0.1003, allocations: 67 kB / 359.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.1004, allocations: 29.7 kB / 359.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001105/0.1005, allocations: 334.8 kB / 359.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.1006, allocations: 55.97 kB / 360 MB, free: 11.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001303/0.1008, allocations: 83.41 kB / 360.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002503/0.101, allocations: 146.4 kB / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.101, allocations: 0 / 360.2 MB, free: 11.71 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003313/0.1014, allocations: 201.2 kB / 360.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1014, allocations: 4 kB / 360.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.762e-06/0.1014, allocations: 7.984 kB / 360.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.021e-05/0.1014, allocations: 4.094 kB / 360.4 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002062/0.1016, allocations: 43.92 kB / 360.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.797e-06/0.1016, allocations: 15.86 kB / 360.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001166/0.1018, allocations: 27.77 kB / 360.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.432e-05/0.1018, allocations: 11.94 kB / 360.5 MB, free: 11.4 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.0001194/0.1019, allocations: 141.8 kB / 360.7 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.007e-05/0.102, allocations: 23.7 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.602e-05/0.102, allocations: 30.19 kB / 360.7 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.451e-06/0.102, allocations: 4 kB / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.61e-06/0.102, allocations: 3.938 kB / 360.7 MB, free: 11.19 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.811e-06/0.1021, allocations: 3.984 kB / 360.7 MB, free: 11.18 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00025/0.1023, allocations: 277.5 kB / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.853e-06/0.1023, allocations: 0 / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000172/0.1025, allocations: 35.92 kB / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.275e-06/0.1025, allocations: 0 / 361 MB, free: 10.83 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.826e-05/0.1025, allocations: 8 kB / 361 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.1025, allocations: 0 / 361 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.1025, allocations: 3.938 kB / 361 MB, free: 10.82 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004575/0.103, allocations: 292.7 kB / 361.3 MB, free: 10.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.1031, allocations: 96.77 kB / 361.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.524e-05/0.1031, allocations: 11.98 kB / 361.4 MB, free: 10.39 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.162e-05/0.1032, allocations: 11.94 kB / 361.4 MB, free: 10.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.046e-05/0.1033, allocations: 11.97 kB / 361.4 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.106e-05/0.1033, allocations: 4 kB / 361.5 MB, free: 10.36 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001552/0.1035, allocations: 200.5 kB / 361.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1035, allocations: 0 / 361.6 MB, free: 10.17 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002685/0.1037, allocations: 63.84 kB / 361.7 MB, free: 10.11 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.0008825/0.1046, allocations: 412.4 kB / 362.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002851/0.1049, allocations: 143.8 kB / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.1049, allocations: 0 / 362.3 MB, free: 9.719 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000143/0.1051, allocations: 72.11 kB / 362.3 MB, free: 9.648 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003359/0.1054, allocations: 44.64 kB / 362.4 MB, free: 9.602 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009278/0.1064, allocations: 0.6838 MB / 363.1 MB, free: 8.883 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002814/0.1067, allocations: 0.7482 MB / 363.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.139e-05/0.1067, allocations: 23.44 kB / 363.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1067, allocations: 4 kB / 363.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of Templates: time 0.005123/0.1119, allocations: 3.101 MB / 366.9 MB, free: 4.996 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/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