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.001175/0.001175, allocations: 113.2 kB / 17.69 MB, free: 5.309 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.001141/0.001141, allocations: 187 kB / 18.63 MB, free: 4.379 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.306/1.306, allocations: 222.9 MB / 242.3 MB, free: 15.22 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001041/0.001042, allocations: 46.55 kB / 302.1 MB, free: 5.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09422/0.09528, allocations: 49.45 MB / 351.5 MB, free: 3.719 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.00353/0.09885, allocations: 2.224 MB / 353.7 MB, free: 1.477 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001762/0.1006, allocations: 1.079 MB / 354.8 MB, free: 400 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.1008, allocations: 4 kB / 354.8 MB, free: 396 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003279/0.1011, allocations: 91.5 kB / 354.9 MB, free: 304 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003508/0.1015, allocations: 123.3 kB / 355 MB, free: 180 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004199/0.1019, allocations: 151.5 kB / 355.2 MB, free: 28 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003507/0.1023, allocations: 278.9 kB / 355.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001932/0.1025, allocations: 88.48 kB / 355.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000169/0.1027, allocations: 115.6 kB / 355.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000188/0.1029, allocations: 123.5 kB / 355.8 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.1029, allocations: 20 kB / 355.8 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001636/0.1031, allocations: 51.98 kB / 355.8 MB, free: 15.35 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.529e-05/0.1032, allocations: 55.77 kB / 355.9 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001199/0.1033, allocations: 119.3 kB / 356 MB, free: 15.18 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003301/0.1036, allocations: 279.1 kB / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1037, allocations: 0 / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.1037, allocations: 0 / 356.3 MB, free: 14.91 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.1037, allocations: 0 / 356.3 MB, free: 14.91 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.0007779/0.1045, allocations: 0.5497 MB / 356.8 MB, free: 14.31 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1045, allocations: 12.03 kB / 356.8 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000142/0.1047, allocations: 28.56 kB / 356.9 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003297/0.105, allocations: 256.7 kB / 357.1 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.105, allocations: 16.38 kB / 357.1 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.274e-05/0.1051, allocations: 32.05 kB / 357.2 MB, free: 13.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.1054, allocations: 161.2 kB / 357.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.189e-05/0.1054, allocations: 3.938 kB / 357.3 MB, free: 13.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.1054, allocations: 8 kB / 357.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.593e-06/0.1055, allocations: 4 kB / 357.3 MB, free: 13.75 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002518/0.1057, allocations: 115.9 kB / 357.4 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000842/0.1066, allocations: 0.5583 MB / 358 MB, free: 13.03 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003032/0.1069, allocations: 171.7 kB / 358.2 MB, free: 12.85 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001694/0.1071, allocations: 88.81 kB / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.069e-05/0.1071, allocations: 4 kB / 358.3 MB, free: 12.76 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002134/0.1073, allocations: 122.3 kB / 358.4 MB, free: 12.63 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 3.297e-06/0.1073, allocations: 7.922 kB / 358.4 MB, free: 12.62 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004792/0.1078, allocations: 229.6 kB / 358.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.1079, allocations: 59.34 kB / 358.7 MB, free: 12.32 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000234/0.1081, allocations: 245 kB / 358.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.252e-05/0.1081, allocations: 33.7 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.408e-05/0.1082, allocations: 140.3 kB / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.976e-05/0.1083, allocations: 71.09 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.246e-05/0.1084, allocations: 37.72 kB / 359.2 MB, free: 11.78 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001145/0.1085, allocations: 338.8 kB / 359.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.1086, allocations: 51.97 kB / 359.6 MB, free: 11.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001319/0.1087, allocations: 83.41 kB / 359.6 MB, free: 11.3 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002343/0.109, allocations: 149 kB / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.109, allocations: 0 / 359.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003304/0.1093, allocations: 209.2 kB / 360 MB, free: 10.93 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.449e-05/0.1094, allocations: 8 kB / 360 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1094, allocations: 0 / 360 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.418e-05/0.1094, allocations: 4 kB / 360 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.1096, allocations: 43.92 kB / 360.1 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.684e-06/0.1096, allocations: 8.031 kB / 360.1 MB, free: 10.87 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001019/0.1097, allocations: 31.67 kB / 360.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.381e-05/0.1098, allocations: 4 kB / 360.1 MB, free: 10.83 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.0001219/0.1099, allocations: 137.8 kB / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.256e-05/0.1099, allocations: 23.8 kB / 360.3 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.522e-05/0.11, allocations: 26.12 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.274e-06/0.11, allocations: 4 kB / 360.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.11, allocations: 3.938 kB / 360.3 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.11, allocations: 3.984 kB / 360.3 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000256/0.1103, allocations: 285.4 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1103, allocations: 4 kB / 360.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001765/0.1105, allocations: 31.98 kB / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.845e-06/0.1105, allocations: 0 / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.696e-05/0.1105, allocations: 4 kB / 360.6 MB, free: 10.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.1105, allocations: 4 kB / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1105, allocations: 7.875 kB / 360.6 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000471/0.111, allocations: 291.6 kB / 360.9 MB, free: 9.945 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.563e-05/0.1111, allocations: 92.89 kB / 361 MB, free: 9.836 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.704e-05/0.1111, allocations: 8 kB / 361 MB, free: 9.828 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.444e-05/0.1112, allocations: 7.922 kB / 361 MB, free: 9.82 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.277e-05/0.1113, allocations: 19.92 kB / 361 MB, free: 9.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.906e-05/0.1113, allocations: 4 kB / 361 MB, free: 9.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001575/0.1114, allocations: 184.5 kB / 361.2 MB, free: 9.621 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.1115, allocations: 4 kB / 361.2 MB, free: 9.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002709/0.1117, allocations: 59.83 kB / 361.3 MB, free: 9.559 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.000922/0.1127, allocations: 421.2 kB / 361.7 MB, free: 9.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003089/0.113, allocations: 149.5 kB / 361.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.113, allocations: 0 / 361.8 MB, free: 9.16 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.1131, allocations: 71.91 kB / 361.9 MB, free: 9.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003418/0.1135, allocations: 40.64 kB / 361.9 MB, free: 9.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009414/0.1144, allocations: 0.5444 MB / 362.5 MB, free: 8.48 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003441/0.1148, allocations: 0.748 MB / 363.2 MB, free: 7.703 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001057/0.1149, allocations: 29.92 kB / 363.3 MB, free: 7.672 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.101e-05/0.115, allocations: 23.44 kB / 363.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of SimCode: time 2.6e-07/0.115, allocations: 0 / 363.3 MB, free: 7.648 MB / 302.1 MB Notification: Performance of Templates: time 0.006371/0.1214, allocations: 2.652 MB / 365.9 MB, free: 5.027 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 -s cvode -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