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.001075/0.001075, allocations: 112 kB / 17.68 MB, free: 5.332 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.00109/0.00109, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.314/1.314, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009736/0.0009737, allocations: 46.58 kB / 302 MB, free: 5.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09315/0.09414, allocations: 49.44 MB / 351.5 MB, free: 3.699 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.004065/0.09825, allocations: 2.232 MB / 353.7 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001723/0.1, allocations: 1.079 MB / 354.8 MB, free: 372 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001081/0.1001, allocations: 4 kB / 354.8 MB, free: 368 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003401/0.1005, allocations: 99.48 kB / 354.9 MB, free: 268 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002946/0.1008, allocations: 127.2 kB / 355 MB, free: 140 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004347/0.1013, allocations: 139.6 kB / 355.2 MB, free: 0 / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003631/0.1016, allocations: 282.8 kB / 355.4 MB, free: 15.72 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002174/0.1019, allocations: 92.56 kB / 355.5 MB, free: 15.62 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000162/0.102, allocations: 115.6 kB / 355.6 MB, free: 15.51 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001921/0.1022, allocations: 123.5 kB / 355.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.386e-05/0.1023, allocations: 16 kB / 355.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001652/0.1024, allocations: 51.98 kB / 355.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.898e-05/0.1025, allocations: 55.78 kB / 355.9 MB, free: 15.27 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001162/0.1027, allocations: 115.4 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003222/0.103, allocations: 287 kB / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.656e-06/0.103, allocations: 0 / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.103, allocations: 0 / 356.3 MB, free: 14.87 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.232e-06/0.103, allocations: 0 / 356.3 MB, free: 14.87 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.0007795/0.1038, allocations: 0.5458 MB / 356.8 MB, free: 14.28 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.282e-05/0.1038, allocations: 8.031 kB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001451/0.104, allocations: 36.55 kB / 356.9 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.1044, allocations: 260.6 kB / 357.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.971e-05/0.1044, allocations: 16.38 kB / 357.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.012e-05/0.1044, allocations: 20.12 kB / 357.2 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.1048, allocations: 169.2 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.1048, allocations: 0 / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.819e-05/0.1048, allocations: 4 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.632e-06/0.1048, allocations: 4 kB / 357.3 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.1051, allocations: 115.9 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008535/0.1059, allocations: 0.5661 MB / 358 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002938/0.1062, allocations: 162.5 kB / 358.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001546/0.1064, allocations: 87.83 kB / 358.3 MB, free: 12.74 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.123e-05/0.1064, allocations: 4 kB / 358.3 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002151/0.1067, allocations: 119.3 kB / 358.4 MB, free: 12.61 MB / 302.1 MB Notification: Performance of pre-optimization done (n=20): time 3.085e-06/0.1067, allocations: 7.984 kB / 358.4 MB, free: 12.6 MB / 302.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004846/0.1072, allocations: 228.6 kB / 358.6 MB, free: 12.37 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.783e-05/0.1072, allocations: 55.39 kB / 358.7 MB, free: 12.3 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002282/0.1075, allocations: 249 kB / 358.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.1075, allocations: 33.64 kB / 358.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.606e-05/0.1076, allocations: 148.3 kB / 359.1 MB, free: 11.87 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.266e-05/0.1077, allocations: 63.11 kB / 359.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.926e-05/0.1078, allocations: 45.7 kB / 359.2 MB, free: 11.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001318/0.1079, allocations: 342.7 kB / 359.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.108, allocations: 51.97 kB / 359.6 MB, free: 11.36 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001308/0.1082, allocations: 83.41 kB / 359.6 MB, free: 11.27 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002454/0.1084, allocations: 146.4 kB / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.1084, allocations: 0 / 359.8 MB, free: 11.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003366/0.1088, allocations: 205.2 kB / 360 MB, free: 10.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.1088, allocations: 7.984 kB / 360 MB, free: 10.9 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.1088, allocations: 7.938 kB / 360 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.459e-05/0.1088, allocations: 0 / 360 MB, free: 10.89 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002143/0.1091, allocations: 43.92 kB / 360.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.286e-06/0.1091, allocations: 8.031 kB / 360.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000109/0.1092, allocations: 27.69 kB / 360.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.1092, allocations: 12 kB / 360.1 MB, free: 10.8 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.0001543/0.1094, allocations: 141.8 kB / 360.2 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.259e-05/0.1094, allocations: 15.81 kB / 360.3 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.608e-05/0.1095, allocations: 30.17 kB / 360.3 MB, free: 10.61 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1095, allocations: 4 kB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.1095, allocations: 3.938 kB / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.1095, allocations: 0 / 360.3 MB, free: 10.6 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002791/0.1098, allocations: 289.4 kB / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.643e-06/0.1098, allocations: 0 / 360.6 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002003/0.11, allocations: 31.98 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.355e-06/0.11, allocations: 0 / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.911e-05/0.1101, allocations: 8 kB / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1101, allocations: 0 / 360.6 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.1101, allocations: 7.875 kB / 360.6 MB, free: 10.22 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004823/0.1106, allocations: 284.8 kB / 360.9 MB, free: 9.922 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.598e-05/0.1106, allocations: 96.92 kB / 361 MB, free: 9.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.43e-05/0.1107, allocations: 4 kB / 361 MB, free: 9.805 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.1108, allocations: 7.938 kB / 361 MB, free: 9.797 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.08e-05/0.1108, allocations: 15.98 kB / 361 MB, free: 9.781 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.463e-05/0.1109, allocations: 7.984 kB / 361 MB, free: 9.773 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001571/0.111, allocations: 184.5 kB / 361.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.111, allocations: 0 / 361.2 MB, free: 9.598 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002807/0.1113, allocations: 59.84 kB / 361.3 MB, free: 9.539 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.0009456/0.1123, allocations: 419.5 kB / 361.7 MB, free: 9.281 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003024/0.1126, allocations: 145.1 kB / 361.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.1126, allocations: 0 / 361.8 MB, free: 9.141 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001376/0.1127, allocations: 75 kB / 361.9 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003174/0.1131, allocations: 48.52 kB / 361.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009928/0.1141, allocations: 0.5445 MB / 362.5 MB, free: 8.453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003487/0.1144, allocations: 0.744 MB / 363.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001062/0.1145, allocations: 25.94 kB / 363.3 MB, free: 7.652 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.299e-05/0.1146, allocations: 31.42 kB / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1146, allocations: 0 / 363.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of Templates: time 0.005974/0.1206, allocations: 2.656 MB / 365.9 MB, free: 5 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 gbode -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