Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001009/0.001009, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.195/1.195, allocations: 226.6 MB / 244.3 MB, free: 8.32 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0006806/0.0006805, allocations: 96.09 kB / 296.4 MB, free: 7.047 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002183/0.0002184, allocations: 4 kB / 356.2 MB, free: 11.26 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1655/0.1658, allocations: 51.29 MB / 407.5 MB, free: 27.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Thermal.HeatTransfer.Examples.Motor): time 0.001587/0.1674, allocations: 1.9 MB / 409.4 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001109/0.1685, allocations: 1.131 MB / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.012e-05/0.1686, allocations: 9.188 kB / 410.5 MB, free: 24.83 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002323/0.1689, allocations: 83.69 kB / 410.6 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.1691, allocations: 132.4 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002428/0.1694, allocations: 130.8 kB / 410.9 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001827/0.1695, allocations: 258.8 kB / 411.1 MB, free: 24.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001263/0.1697, allocations: 79.53 kB / 411.2 MB, free: 24.16 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.065e-05/0.1698, allocations: 95.62 kB / 411.3 MB, free: 24.07 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001105/0.1699, allocations: 104.8 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.1699, allocations: 8 kB / 411.4 MB, free: 23.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.257e-05/0.17, allocations: 43.92 kB / 411.4 MB, free: 23.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.204e-05/0.1701, allocations: 39.84 kB / 411.5 MB, free: 23.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.015e-05/0.1701, allocations: 66.77 kB / 411.5 MB, free: 23.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001615/0.1703, allocations: 216.5 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1703, allocations: 7.938 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.1703, allocations: 0.8438 kB / 411.8 MB, free: 23.59 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.458e-06/0.1703, allocations: 0 / 411.8 MB, free: 23.59 MB / 298.7 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.0005135/0.1708, allocations: 0.5065 MB / 412.3 MB, free: 23.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.613e-05/0.1709, allocations: 8.031 kB / 412.3 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001114/0.171, allocations: 31.7 kB / 412.3 MB, free: 23 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001906/0.1712, allocations: 250.5 kB / 412.6 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.642e-05/0.1712, allocations: 15.94 kB / 412.6 MB, free: 22.7 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.005e-05/0.1712, allocations: 23.98 kB / 412.6 MB, free: 22.67 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002478/0.1715, allocations: 165.3 kB / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.051e-05/0.1715, allocations: 0 / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.668e-05/0.1715, allocations: 8 kB / 412.8 MB, free: 22.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.1715, allocations: 4 kB / 412.8 MB, free: 22.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001896/0.1717, allocations: 111.9 kB / 412.9 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006273/0.1724, allocations: 0.5663 MB / 413.4 MB, free: 21.77 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002361/0.1726, allocations: 170.4 kB / 413.6 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001179/0.1728, allocations: 84.83 kB / 413.7 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.1728, allocations: 4 kB / 413.7 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001823/0.173, allocations: 121.5 kB / 413.8 MB, free: 21.37 MB / 298.7 MB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.173, allocations: 0 / 413.8 MB, free: 21.37 MB / 298.7 MB Notification: Performance of matching and sorting (n=20): time 0.0003645/0.1734, allocations: 225.6 kB / 414 MB, free: 21.14 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.025e-05/0.1734, allocations: 59.36 kB / 414.1 MB, free: 21.07 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001658/0.1736, allocations: 257 kB / 414.3 MB, free: 20.81 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.256e-05/0.1736, allocations: 29.7 kB / 414.4 MB, free: 20.78 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.025e-05/0.1736, allocations: 152.3 kB / 414.5 MB, free: 20.62 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.398e-05/0.1737, allocations: 67.02 kB / 414.6 MB, free: 20.56 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.995e-06/0.1737, allocations: 4 kB / 414.6 MB, free: 20.55 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.09e-05/0.1737, allocations: 334.8 kB / 414.9 MB, free: 20.22 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.048e-05/0.1738, allocations: 51.97 kB / 415 MB, free: 20.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.924e-05/0.1739, allocations: 87.47 kB / 415.1 MB, free: 20.07 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001012/0.174, allocations: 63.75 kB / 415.1 MB, free: 20.01 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.174, allocations: 0 / 415.1 MB, free: 20.01 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002558/0.1743, allocations: 202.9 kB / 415.3 MB, free: 19.81 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.02e-05/0.1743, allocations: 7.984 kB / 415.3 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.008e-06/0.1743, allocations: 0 / 415.3 MB, free: 19.8 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.1743, allocations: 11.98 kB / 415.3 MB, free: 19.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001814/0.1745, allocations: 47.92 kB / 415.4 MB, free: 19.74 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.232e-06/0.1745, allocations: 12.05 kB / 415.4 MB, free: 19.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001006/0.1747, allocations: 19.83 kB / 415.4 MB, free: 19.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.17e-05/0.1747, allocations: 8 kB / 415.4 MB, free: 19.7 MB / 298.7 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 8.375e-05/0.1748, allocations: 152.3 kB / 415.6 MB, free: 19.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.1748, allocations: 27.72 kB / 415.6 MB, free: 19.52 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.172e-05/0.1748, allocations: 26.19 kB / 415.6 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1749, allocations: 4 kB / 415.6 MB, free: 19.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.1749, allocations: 7.984 kB / 415.6 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.818e-06/0.1749, allocations: 3.953 kB / 415.6 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/0.175, allocations: 285.4 kB / 415.9 MB, free: 19.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.1751, allocations: 3.938 kB / 415.9 MB, free: 19.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001585/0.1752, allocations: 35.92 kB / 416 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1752, allocations: 4 kB / 416 MB, free: 19.11 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.387e-05/0.1752, allocations: 7.984 kB / 416 MB, free: 19.1 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.312e-06/0.1753, allocations: 3.938 kB / 416 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1753, allocations: 0 / 416 MB, free: 19.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003531/0.1756, allocations: 284 kB / 416.2 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.636e-05/0.1757, allocations: 104.9 kB / 416.3 MB, free: 18.68 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.796e-05/0.1757, allocations: 8 kB / 416.4 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.655e-05/0.1758, allocations: 4 kB / 416.4 MB, free: 18.67 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.22e-05/0.1758, allocations: 15.97 kB / 416.4 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.497e-05/0.1759, allocations: 4 kB / 416.4 MB, free: 18.65 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001152/0.176, allocations: 196.4 kB / 416.6 MB, free: 18.46 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.176, allocations: 4.062 kB / 416.6 MB, free: 18.45 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002433/0.1762, allocations: 59.83 kB / 416.6 MB, free: 18.39 MB / 298.7 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.0006662/0.1769, allocations: 399.2 kB / 417 MB, free: 18.13 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002347/0.1771, allocations: 135.9 kB / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1772, allocations: 0 / 417.2 MB, free: 18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000102/0.1773, allocations: 79.84 kB / 417.2 MB, free: 17.92 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002811/0.1776, allocations: 55.14 kB / 417.3 MB, free: 17.88 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006775/0.1782, allocations: 0.6759 MB / 418 MB, free: 17.16 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001199/0.1784, allocations: 0.7482 MB / 418.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.153e-05/0.1784, allocations: 19.44 kB / 418.7 MB, free: 16.37 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1784, allocations: 4 kB / 418.7 MB, free: 16.37 MB / 298.7 MB Notification: Performance of Templates: time 0.003524/0.182, allocations: 3.161 MB / 421.9 MB, free: 13.21 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.makefile (rm -f Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe >> ../files/Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.sim & ./Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.Thermal.HeatTransfer.Examples.Motor.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches