Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.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.Mechanics.Translational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|heatCapacitor.T|eddyCurrentForce.lossPower",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake") translateModel(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|mass.s|heatCapacitor.T|eddyCurrentForce.lossPower",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009566/0.0009566, 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.286/1.286, allocations: 226.6 MB / 244.3 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000746/0.0007461, allocations: 101.1 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001867/0.0001868, allocations: 4 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1767, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Translational.Examples.EddyCurrentBrake): time 0.001273/0.178, allocations: 1.468 MB / 409 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006124/0.1786, allocations: 0.6198 MB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.331e-05/0.1787, allocations: 4 kB / 409.6 MB, free: 25.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.849e-05/0.1788, allocations: 15.84 kB / 409.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.925e-05/0.1788, allocations: 36.83 kB / 409.6 MB, free: 25.7 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001498/0.179, allocations: 35.88 kB / 409.7 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001108/0.1791, allocations: 118 kB / 409.8 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.057e-05/0.1792, allocations: 21.39 kB / 409.8 MB, free: 25.52 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.824e-05/0.1792, allocations: 39.86 kB / 409.8 MB, free: 25.48 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.688e-05/0.1793, allocations: 47.77 kB / 409.9 MB, free: 25.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.1793, allocations: 4 kB / 409.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.151e-05/0.1794, allocations: 29.08 kB / 409.9 MB, free: 25.41 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.23e-05/0.1794, allocations: 15.92 kB / 409.9 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.197e-05/0.1795, allocations: 37.7 kB / 410 MB, free: 25.35 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.788e-05/0.1796, allocations: 91.89 kB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.399e-06/0.1796, allocations: 0 / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1796, allocations: 3.938 kB / 410.1 MB, free: 25.26 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.1796, allocations: 0 / 410.1 MB, free: 25.26 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003661/0.18, allocations: 391.2 kB / 410.5 MB, free: 24.83 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.818e-05/0.18, allocations: 14.41 kB / 410.5 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001587/0.1802, allocations: 27.88 kB / 410.5 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001195/0.1803, allocations: 190.8 kB / 410.7 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.153e-05/0.1803, allocations: 8.188 kB / 410.7 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.1803, allocations: 8 kB / 410.7 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001517/0.1805, allocations: 105.9 kB / 410.8 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.157e-05/0.1805, allocations: 3.984 kB / 410.8 MB, free: 24.44 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.1805, allocations: 4 kB / 410.8 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.1805, allocations: 4 kB / 410.8 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001065/0.1806, allocations: 60.53 kB / 410.9 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004842/0.1811, allocations: 444.4 kB / 411.3 MB, free: 23.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002132/0.1814, allocations: 102.6 kB / 411.4 MB, free: 23.77 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.42e-05/0.1814, allocations: 24.86 kB / 411.4 MB, free: 23.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.203e-05/0.1814, allocations: 11.94 kB / 411.4 MB, free: 23.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.061e-05/0.1814, allocations: 30.56 kB / 411.5 MB, free: 23.7 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.202e-06/0.1815, allocations: 4 kB / 411.5 MB, free: 23.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=12): time 0.001061/0.1825, allocations: 0.5321 MB / 412 MB, free: 23.09 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.119e-05/0.1826, allocations: 59.36 kB / 412.1 MB, free: 23.02 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.264e-05/0.1826, allocations: 114.1 kB / 412.2 MB, free: 22.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.065e-06/0.1826, allocations: 29.7 kB / 412.2 MB, free: 22.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.789e-05/0.1827, allocations: 111.9 kB / 412.3 MB, free: 22.75 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.985e-05/0.1827, allocations: 39.39 kB / 412.4 MB, free: 22.71 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.53e-06/0.1827, allocations: 4 kB / 412.4 MB, free: 22.7 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 3.48e-05/0.1827, allocations: 322.8 kB / 412.7 MB, free: 22.38 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.216e-05/0.1828, allocations: 39.86 kB / 412.7 MB, free: 22.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.313e-05/0.1828, allocations: 55.33 kB / 412.8 MB, free: 22.27 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.451e-05/0.1829, allocations: 43.98 kB / 412.8 MB, free: 22.23 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.1829, allocations: 0 / 412.8 MB, free: 22.23 MB / 298.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001451/0.1831, allocations: 125.5 kB / 412.9 MB, free: 22.1 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.102e-05/0.1831, allocations: 10.72 kB / 412.9 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.298e-06/0.1831, allocations: 4 kB / 412.9 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.1831, allocations: 0 / 412.9 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001241/0.1832, allocations: 35.92 kB / 413 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.1832, allocations: 0 / 413 MB, free: 22.05 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.408e-05/0.1833, allocations: 15.94 kB / 413 MB, free: 22.04 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.725e-06/0.1833, allocations: 4 kB / 413 MB, free: 22.04 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 5.357e-05/0.1834, allocations: 121.8 kB / 413.1 MB, free: 21.91 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.1834, allocations: 7.906 kB / 413.1 MB, free: 21.9 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.284e-05/0.1835, allocations: 20.38 kB / 413.1 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1835, allocations: 0 / 413.1 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.1835, allocations: 0 / 413.1 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1835, allocations: 0 / 413.1 MB, free: 21.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003634/0.1838, allocations: 428.1 kB / 413.6 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.1839, allocations: 0 / 413.6 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001371/0.184, allocations: 35.98 kB / 413.6 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.184, allocations: 0 / 413.6 MB, free: 21.36 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.879e-06/0.184, allocations: 8 kB / 413.6 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.184, allocations: 3.953 kB / 413.6 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.184, allocations: 0 / 413.6 MB, free: 21.35 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001882/0.1842, allocations: 249 kB / 413.9 MB, free: 21.08 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.928e-05/0.1843, allocations: 93.02 kB / 413.9 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.726e-05/0.1843, allocations: 4 kB / 413.9 MB, free: 20.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.494e-05/0.1844, allocations: 4 kB / 414 MB, free: 20.96 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.577e-05/0.1844, allocations: 15.88 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.741e-06/0.1844, allocations: 4.141 kB / 414 MB, free: 20.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.828e-05/0.1844, allocations: 95.27 kB / 414.1 MB, free: 20.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1844, allocations: 0 / 414.1 MB, free: 20.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.1847, allocations: 28 kB / 414.1 MB, free: 20.82 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (mass.s,mass.v,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 (12): * Single equations (assignments): 12 * 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 Backend phase and start with SimCode phase: time 6.587e-05/0.1847, allocations: 99.33 kB / 414.2 MB, free: 20.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001303/0.1849, allocations: 83.84 kB / 414.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.1849, allocations: 0 / 414.3 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.355e-05/0.1849, allocations: 39.88 kB / 414.3 MB, free: 20.6 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002943/0.1852, allocations: 19.98 kB / 414.3 MB, free: 20.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005419/0.1858, allocations: 0.5668 MB / 414.9 MB, free: 19.97 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.441e-05/0.1859, allocations: 0.7083 MB / 415.6 MB, free: 19.24 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.1859, allocations: 11.44 kB / 415.6 MB, free: 19.23 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.1859, allocations: 7.938 kB / 415.6 MB, free: 19.22 MB / 298.7 MB Notification: Performance of Templates: time 0.002005/0.1879, allocations: 1.388 MB / 417 MB, free: 17.84 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Translational/Examples/EddyCurrentBrake/EddyCurrentBrake.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Translational.Examples.EddyCurrentBrake.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches