Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") translateModel(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|inertia.phi|heatCapacitor.T|eddyCurrentTorque.lossPower",fileNamePrefix="Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001145/0.001145, allocations: 107.1 kB / 17.15 MB, free: 6.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.001176/0.001176, allocations: 198 kB / 18.07 MB, free: 5.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.606/1.606, allocations: 205.1 MB / 223.9 MB, free: 12.39 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001179/0.001179, allocations: 47.94 kB / 280 MB, free: 3.59 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1578, allocations: 46.64 MB / 326.6 MB, free: 4.883 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake): time 0.006438/0.1643, allocations: 1.812 MB / 328.4 MB, free: 3.055 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002078/0.1665, allocations: 0.6787 MB / 329.1 MB, free: 2.367 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.1666, allocations: 4 kB / 329.1 MB, free: 2.363 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001834/0.1669, allocations: 7.922 kB / 329.1 MB, free: 2.355 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000153/0.1671, allocations: 35.7 kB / 329.1 MB, free: 2.32 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003381/0.1674, allocations: 35.89 kB / 329.2 MB, free: 2.285 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002482/0.1677, allocations: 115.4 kB / 329.3 MB, free: 2.172 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000167/0.1679, allocations: 19.98 kB / 329.3 MB, free: 2.152 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001098/0.168, allocations: 47.78 kB / 329.4 MB, free: 2.105 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001361/0.1681, allocations: 47.78 kB / 329.4 MB, free: 2.059 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.732e-05/0.1682, allocations: 4 kB / 329.4 MB, free: 2.055 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001327/0.1683, allocations: 23.98 kB / 329.4 MB, free: 2.031 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.32e-05/0.1684, allocations: 11.94 kB / 329.4 MB, free: 2.02 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 9.614e-05/0.1685, allocations: 47.78 kB / 329.5 MB, free: 1.973 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002839/0.1688, allocations: 127.9 kB / 329.6 MB, free: 1.848 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.312e-06/0.1688, allocations: 3.938 kB / 329.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1688, allocations: 0 / 329.6 MB, free: 1.844 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.245e-05/0.1689, allocations: 0 / 329.6 MB, free: 1.844 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.000797/0.1697, allocations: 411.3 kB / 330 MB, free: 1.395 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.1697, allocations: 8.031 kB / 330 MB, free: 1.387 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003239/0.1701, allocations: 24.83 kB / 330.1 MB, free: 1.363 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.1704, allocations: 196.1 kB / 330.2 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.1704, allocations: 8.562 kB / 330.3 MB, free: 1.125 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.221e-05/0.1705, allocations: 12.38 kB / 330.3 MB, free: 1.113 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002941/0.1708, allocations: 89.59 kB / 330.3 MB, free: 1.02 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.063e-05/0.1708, allocations: 0 / 330.3 MB, free: 1.02 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.439e-05/0.1709, allocations: 12 kB / 330.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1709, allocations: 0 / 330.4 MB, free: 1.008 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000223/0.1711, allocations: 59.95 kB / 330.4 MB, free: 0.9492 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001242/0.1724, allocations: 485.1 kB / 330.9 MB, free: 420 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004297/0.1728, allocations: 98.48 kB / 331 MB, free: 312 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.192e-05/0.1729, allocations: 24.86 kB / 331 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.556e-05/0.173, allocations: 0 / 331 MB, free: 284 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.173, allocations: 34.56 kB / 331 MB, free: 240 kB / 270.1 MB Notification: Performance of pre-optimization done (n=8): time 2.184e-06/0.1731, allocations: 0 / 331 MB, free: 240 kB / 270.1 MB Notification: Performance of matching and sorting (n=8): time 0.000418/0.1735, allocations: 105.7 kB / 331.2 MB, free: 128 kB / 270.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.841e-05/0.1736, allocations: 59.34 kB / 331.2 MB, free: 56 kB / 270.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001662/0.1737, allocations: 113.8 kB / 331.3 MB, free: 15.93 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 2.915e-05/0.1738, allocations: 29.7 kB / 331.3 MB, free: 15.9 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.1739, allocations: 107.9 kB / 331.5 MB, free: 15.79 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.372e-05/0.174, allocations: 35.55 kB / 331.5 MB, free: 15.75 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.459e-05/0.1741, allocations: 21.72 kB / 331.5 MB, free: 15.73 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.1743, allocations: 322.8 kB / 331.8 MB, free: 15.4 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.83e-05/0.1744, allocations: 23.98 kB / 331.8 MB, free: 15.38 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001245/0.1745, allocations: 55.42 kB / 331.9 MB, free: 15.31 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002235/0.1748, allocations: 79.31 kB / 332 MB, free: 15.22 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.447e-06/0.1748, allocations: 0 / 332 MB, free: 15.22 MB / 286.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003242/0.1751, allocations: 113.5 kB / 332.1 MB, free: 15.11 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.657e-05/0.1752, allocations: 11.98 kB / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.1752, allocations: 0 / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.867e-05/0.1752, allocations: 0 / 332.1 MB, free: 15.09 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.1754, allocations: 27.94 kB / 332.1 MB, free: 15.07 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.271e-05/0.1755, allocations: 3.938 kB / 332.1 MB, free: 15.06 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001227/0.1756, allocations: 15.83 kB / 332.1 MB, free: 15.05 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.721e-05/0.1756, allocations: 8 kB / 332.2 MB, free: 15.04 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * 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.0001399/0.1758, allocations: 113.8 kB / 332.3 MB, free: 14.92 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.407e-05/0.1758, allocations: 8.031 kB / 332.3 MB, free: 14.91 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.196e-05/0.1759, allocations: 12.38 kB / 332.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.005e-06/0.1759, allocations: 0 / 332.3 MB, free: 14.9 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.989e-06/0.1759, allocations: 7.938 kB / 332.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.079e-06/0.176, allocations: 0 / 332.3 MB, free: 14.89 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003865/0.1764, allocations: 201.5 kB / 332.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.18e-06/0.1764, allocations: 0 / 332.5 MB, free: 14.64 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000239/0.1766, allocations: 27.86 kB / 332.5 MB, free: 14.62 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.854e-06/0.1767, allocations: 4 kB / 332.5 MB, free: 14.61 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.816e-05/0.1767, allocations: 0 / 332.5 MB, free: 14.61 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.1767, allocations: 4 kB / 332.5 MB, free: 14.61 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.46e-06/0.1767, allocations: 7.938 kB / 332.5 MB, free: 14.6 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003982/0.1771, allocations: 203.4 kB / 332.7 MB, free: 14.39 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.83e-05/0.1772, allocations: 81.02 kB / 332.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.876e-05/0.1773, allocations: 0 / 332.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.1774, allocations: 8 kB / 332.8 MB, free: 14.28 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.516e-05/0.1775, allocations: 7.969 kB / 332.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.179e-05/0.1775, allocations: 4 kB / 332.8 MB, free: 14.27 MB / 286.1 MB Notification: Performance of sorting global known variables: time 9.236e-05/0.1776, allocations: 95.27 kB / 332.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.1776, allocations: 0 / 332.9 MB, free: 14.18 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0004615/0.1781, allocations: 27.94 kB / 333 MB, free: 14.15 MB / 286.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (eddyCurrentTorque.phi,inertia.w,heatCapacitor.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 Backend phase and start with SimCode phase: time 0.0001806/0.1783, allocations: 99.28 kB / 333.1 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0002447/0.1786, allocations: 63.95 kB / 333.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.1786, allocations: 0 / 333.1 MB, free: 13.98 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 6.498e-05/0.1787, allocations: 27.98 kB / 333.1 MB, free: 13.95 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006401/0.1793, allocations: 24.92 kB / 333.2 MB, free: 13.93 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001379/0.1807, allocations: 456.4 kB / 333.6 MB, free: 13.45 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004256/0.1811, allocations: 0.7082 MB / 334.3 MB, free: 12.72 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 0.0001017/0.1813, allocations: 8.422 kB / 334.3 MB, free: 12.71 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.061e-05/0.1813, allocations: 11.44 kB / 334.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1813, allocations: 0 / 334.3 MB, free: 12.7 MB / 286.1 MB Notification: Performance of Templates: time 0.005892/0.1872, allocations: 0.8707 MB / 335.2 MB, free: 11.83 MB / 286.1 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches