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.0009092/0.0009093, allocations: 94.55 kB / 16.3 MB, free: 5.992 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.0009134/0.0009135, allocations: 181.3 kB / 17.19 MB, free: 5.906 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.285/1.285, allocations: 223.2 MB / 241.1 MB, free: 5.465 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003486/0.0003487, allocations: 6.109 kB / 300.7 MB, free: 6.008 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0877/0.08807, allocations: 50.43 MB / 351.1 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.002079/0.09019, allocations: 1.773 MB / 352.9 MB, free: 9.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001298/0.0915, allocations: 0.9983 MB / 353.9 MB, free: 8.988 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.748e-05/0.0916, allocations: 7.938 kB / 353.9 MB, free: 8.98 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002671/0.09188, allocations: 75.75 kB / 354 MB, free: 8.906 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002402/0.09213, allocations: 119.6 kB / 354.1 MB, free: 8.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000299/0.09244, allocations: 119.7 kB / 354.2 MB, free: 8.672 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002441/0.09269, allocations: 199.6 kB / 354.4 MB, free: 8.477 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001512/0.09285, allocations: 69.06 kB / 354.5 MB, free: 8.402 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001204/0.09298, allocations: 95.69 kB / 354.6 MB, free: 8.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001375/0.09312, allocations: 99.53 kB / 354.7 MB, free: 8.211 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.096e-05/0.09315, allocations: 8 kB / 354.7 MB, free: 8.203 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001029/0.09326, allocations: 31.94 kB / 354.7 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 5.62e-05/0.09332, allocations: 43.83 kB / 354.8 MB, free: 8.129 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.321e-05/0.0934, allocations: 69.58 kB / 354.8 MB, free: 8.055 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002241/0.09363, allocations: 211.4 kB / 355 MB, free: 7.848 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.043e-06/0.09364, allocations: 0 / 355 MB, free: 7.848 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.09365, allocations: 4 kB / 355 MB, free: 7.844 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.659e-06/0.09366, allocations: 0 / 355 MB, free: 7.844 MB / 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.000669/0.09434, allocations: 0.5067 MB / 355.5 MB, free: 7.289 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.09437, allocations: 12.03 kB / 355.6 MB, free: 7.277 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00013/0.09451, allocations: 35.64 kB / 355.6 MB, free: 7.242 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002583/0.09478, allocations: 247.5 kB / 355.8 MB, free: 6.957 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.073e-05/0.09481, allocations: 16 kB / 355.8 MB, free: 6.941 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.584e-05/0.09485, allocations: 16 kB / 355.9 MB, free: 6.926 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000276/0.09513, allocations: 161.3 kB / 356 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.09515, allocations: 0 / 356 MB, free: 6.762 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.064e-05/0.09518, allocations: 8 kB / 356 MB, free: 6.754 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.171e-06/0.09519, allocations: 4 kB / 356 MB, free: 6.75 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002246/0.09542, allocations: 115.9 kB / 356.1 MB, free: 6.637 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007602/0.09619, allocations: 0.5625 MB / 356.7 MB, free: 6.023 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002857/0.09649, allocations: 158.5 kB / 356.9 MB, free: 5.859 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.942e-05/0.09653, allocations: 11.92 kB / 356.9 MB, free: 5.848 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.09679, allocations: 119.7 kB / 357 MB, free: 5.719 MB / 286.1 MB Notification: Performance of pre-optimization done (n=20): time 1.764e-06/0.0968, allocations: 0 / 357 MB, free: 5.719 MB / 286.1 MB Notification: Performance of matching and sorting (n=20): time 0.0004733/0.09728, allocations: 236.3 kB / 357.2 MB, free: 5.484 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.822e-05/0.09733, allocations: 51.41 kB / 357.3 MB, free: 5.422 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002393/0.09757, allocations: 249 kB / 357.5 MB, free: 5.172 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.0976, allocations: 33.69 kB / 357.6 MB, free: 5.133 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.983e-05/0.0977, allocations: 144.4 kB / 357.7 MB, free: 4.988 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.468e-05/0.09776, allocations: 71.02 kB / 357.8 MB, free: 4.918 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.158e-06/0.09778, allocations: 4 kB / 357.8 MB, free: 4.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.09789, allocations: 330.8 kB / 358.1 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.098, allocations: 47.98 kB / 358.1 MB, free: 4.535 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001193/0.09812, allocations: 83.58 kB / 358.2 MB, free: 4.441 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001263/0.09826, allocations: 70.39 kB / 358.3 MB, free: 4.375 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.09827, allocations: 3.938 kB / 358.3 MB, free: 4.371 MB / 286.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003137/0.09859, allocations: 204.9 kB / 358.5 MB, free: 4.168 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.411e-05/0.09861, allocations: 4 kB / 358.5 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/0.09862, allocations: 0 / 358.5 MB, free: 4.164 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.09864, allocations: 7.984 kB / 358.5 MB, free: 4.156 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.09885, allocations: 47.92 kB / 358.5 MB, free: 4.109 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.446e-06/0.09887, allocations: 4 kB / 358.6 MB, free: 4.105 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001101/0.09899, allocations: 27.92 kB / 358.6 MB, free: 4.078 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.396e-05/0.09901, allocations: 4 kB / 358.6 MB, free: 4.074 MB / 286.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 ($whenCondition1,$PRE.lossTable.nextTimeEvent,lossTable.nextTimeEvent,$PRE.lossTable.nextTimeEventScaled,lossTable.nextTimeEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001203/0.09913, allocations: 149.5 kB / 358.7 MB, free: 3.918 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.994e-05/0.09917, allocations: 27.7 kB / 358.8 MB, free: 3.891 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.5e-05/0.09924, allocations: 26.19 kB / 358.8 MB, free: 3.863 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.516e-06/0.09925, allocations: 3.984 kB / 358.8 MB, free: 3.859 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.09926, allocations: 4 kB / 358.8 MB, free: 3.855 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.09927, allocations: 7.984 kB / 358.8 MB, free: 3.848 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002489/0.09952, allocations: 293.3 kB / 359.1 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.09953, allocations: 0 / 359.1 MB, free: 3.512 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001755/0.09971, allocations: 31.98 kB / 359.1 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.244e-06/0.09972, allocations: 0 / 359.1 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.564e-05/0.09974, allocations: 0 / 359.1 MB, free: 3.48 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.09975, allocations: 4 kB / 359.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.09976, allocations: 0 / 359.1 MB, free: 3.477 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004771/0.1002, allocations: 284.8 kB / 359.4 MB, free: 3.18 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.568e-05/0.1003, allocations: 100.8 kB / 359.5 MB, free: 3.062 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.469e-05/0.1004, allocations: 7.984 kB / 359.5 MB, free: 3.055 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.857e-05/0.1005, allocations: 11.94 kB / 359.5 MB, free: 3.043 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.578e-05/0.1005, allocations: 7.984 kB / 359.5 MB, free: 3.035 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.925e-05/0.1005, allocations: 12 kB / 359.5 MB, free: 3.023 MB / 286.1 MB Notification: Performance of sorting global known variables: time 0.0001586/0.1007, allocations: 192.4 kB / 359.7 MB, free: 2.84 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1007, allocations: 0 / 359.7 MB, free: 2.84 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002598/0.101, allocations: 55.97 kB / 359.8 MB, free: 2.785 MB / 286.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008703/0.1018, allocations: 413.3 kB / 360.2 MB, free: 2.535 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002792/0.1021, allocations: 145.2 kB / 360.3 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1021, allocations: 0 / 360.3 MB, free: 2.395 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000129/0.1023, allocations: 71.92 kB / 360.4 MB, free: 2.324 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002824/0.1026, allocations: 48.77 kB / 360.4 MB, free: 2.27 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008918/0.1035, allocations: 0.6352 MB / 361.1 MB, free: 1.605 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002714/0.1038, allocations: 0.7521 MB / 361.8 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 9.835e-05/0.1039, allocations: 37.91 kB / 361.9 MB, free: 0.793 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.884e-05/0.1039, allocations: 19.44 kB / 361.9 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1039, allocations: 0 / 361.9 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of Templates: time 0.005191/0.1091, allocations: 2.438 MB / 364.3 MB, free: 14.36 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","../files/Modelica_4.0.0_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches