Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.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.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 196.2 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 226.6 MB / 244.3 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007073/0.0007073, allocations: 96.2 kB / 296.4 MB, free: 6.781 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001972/0.0001972, allocations: 4 kB / 356.2 MB, free: 11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1755/0.1757, allocations: 51.29 MB / 407.5 MB, free: 27.81 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.001759/0.1775, allocations: 2.137 MB / 409.6 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001036/0.1786, allocations: 1.036 MB / 410.7 MB, free: 24.63 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.751e-05/0.1787, allocations: 4 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001847/0.1788, allocations: 57.61 kB / 410.7 MB, free: 24.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002559/0.1791, allocations: 148 kB / 410.9 MB, free: 24.43 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000226/0.1793, allocations: 133.4 kB / 411 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.1796, allocations: 452.8 kB / 411.4 MB, free: 23.86 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001117/0.1797, allocations: 76.2 kB / 411.5 MB, free: 23.78 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000196/0.1799, allocations: 207.3 kB / 411.7 MB, free: 23.58 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000189/0.1801, allocations: 239.2 kB / 412 MB, free: 23.34 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.559e-05/0.1802, allocations: 20 kB / 412 MB, free: 23.32 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001544/0.1803, allocations: 107.9 kB / 412.1 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.109e-05/0.1804, allocations: 91.7 kB / 412.2 MB, free: 23.13 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.625e-05/0.1805, allocations: 81.58 kB / 412.2 MB, free: 23.04 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002675/0.1808, allocations: 408 kB / 412.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.1808, allocations: 3.938 kB / 412.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.1808, allocations: 0 / 412.6 MB, free: 22.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.1808, allocations: 0 / 412.6 MB, free: 22.64 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0009155/0.1817, allocations: 0.6392 MB / 413.3 MB, free: 21.95 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.839e-05/0.1817, allocations: 12.03 kB / 413.3 MB, free: 21.94 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003377/0.1821, allocations: 67.59 kB / 413.4 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003056/0.1824, allocations: 310.1 kB / 413.7 MB, free: 21.53 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.817e-05/0.1825, allocations: 92.05 kB / 413.8 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.093e-05/0.1826, allocations: 35.95 kB / 413.8 MB, free: 21.39 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006303/0.1832, allocations: 420.9 kB / 414.2 MB, free: 20.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.1832, allocations: 7.906 kB / 414.2 MB, free: 20.96 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.396e-05/0.1833, allocations: 15.94 kB / 414.2 MB, free: 20.95 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/0.1833, allocations: 8 kB / 414.2 MB, free: 20.94 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007895/0.1841, allocations: 486.2 kB / 414.7 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001263/0.1853, allocations: 0.9931 MB / 415.7 MB, free: 19.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006833/0.186, allocations: 405.8 kB / 416.1 MB, free: 19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003871/0.1864, allocations: 234 kB / 416.3 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.829e-05/0.1865, allocations: 12.42 kB / 416.3 MB, free: 18.76 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.323e-05/0.1865, allocations: 43 kB / 416.4 MB, free: 18.71 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.904e-06/0.1865, allocations: 3.984 kB / 416.4 MB, free: 18.71 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004271/0.1908, allocations: 2.199 MB / 418.6 MB, free: 16.4 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.856e-05/0.1908, allocations: 89.66 kB / 418.7 MB, free: 16.29 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002244/0.191, allocations: 264.2 kB / 418.9 MB, free: 16.02 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.504e-05/0.1911, allocations: 37.7 kB / 419 MB, free: 15.98 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.589e-05/0.1911, allocations: 137.1 kB / 419.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.402e-05/0.1912, allocations: 185.4 kB / 419.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.595e-05/0.1913, allocations: 12 kB / 419.3 MB, free: 15.65 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.457e-05/0.1913, allocations: 338.8 kB / 419.6 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003762/0.1917, allocations: 201 kB / 419.8 MB, free: 15.11 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003848/0.1921, allocations: 248.6 kB / 420.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003561/0.1925, allocations: 182.2 kB / 420.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1925, allocations: 0 / 420.2 MB, free: 14.68 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001001/0.1935, allocations: 0.6251 MB / 420.9 MB, free: 14.05 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.15e-05/0.1935, allocations: 8 kB / 420.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.278e-06/0.1935, allocations: 0 / 420.9 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006626/0.1942, allocations: 298.8 kB / 421.2 MB, free: 13.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002723/0.1945, allocations: 71.89 kB / 421.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002642/0.1971, allocations: 2.702 MB / 423.9 MB, free: 10.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002748/0.1974, allocations: 44.06 kB / 424 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.714e-05/0.1974, allocations: 19.98 kB / 424 MB, free: 10.78 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 7 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,$PRE.gear.mode,gear.mode,gear.ideal) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 32 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 25} Notification: Performance of prepare postOptimizeDAE: time 0.0001319/0.1976, allocations: 153.8 kB / 424.2 MB, free: 10.62 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.223e-05/0.1976, allocations: 35.58 kB / 424.2 MB, free: 10.59 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.9e-05/0.1977, allocations: 51.3 kB / 424.2 MB, free: 10.54 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.1977, allocations: 8 kB / 424.2 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.523e-06/0.1977, allocations: 4 kB / 424.2 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1978, allocations: 3.984 kB / 424.3 MB, free: 10.52 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00169/0.1995, allocations: 1.295 MB / 425.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.184e-06/0.1995, allocations: 0 / 425.5 MB, free: 9.16 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.1998, allocations: 83.88 kB / 425.6 MB, free: 9.078 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005813/0.2004, allocations: 288.6 kB / 425.9 MB, free: 8.793 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.2004, allocations: 15.98 kB / 425.9 MB, free: 8.777 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00248/0.2029, allocations: 2.612 MB / 428.5 MB, free: 6.039 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2029, allocations: 3.938 kB / 428.5 MB, free: 6.035 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.2043, allocations: 0.9689 MB / 429.5 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001275/0.2045, allocations: 168.6 kB / 429.7 MB, free: 4.859 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.323e-05/0.2045, allocations: 12 kB / 429.7 MB, free: 4.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000295/0.2048, allocations: 35.97 kB / 429.7 MB, free: 4.812 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000122/0.205, allocations: 80.28 kB / 429.8 MB, free: 4.734 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.008e-05/0.205, allocations: 19.98 kB / 429.8 MB, free: 4.715 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001708/0.2052, allocations: 205.6 kB / 430 MB, free: 4.516 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2052, allocations: 0 / 430 MB, free: 4.516 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004517/0.2056, allocations: 148 kB / 430.2 MB, free: 4.371 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (Inertia2.phi,Inertia2.w) * Number of discrete variables: 5 (gear.tau_aPos,gear.startForward,gear.startBackward,gear.locked,gear.mode) * Number of discrete states: 1 (gear.mode) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 23} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006517/0.2063, allocations: 382.7 kB / 430.5 MB, free: 4.105 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001061/0.2074, allocations: 0.7034 MB / 431.2 MB, free: 3.391 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2074, allocations: 0 / 431.2 MB, free: 3.391 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006335/0.208, allocations: 479.7 kB / 431.7 MB, free: 2.906 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003813/0.2084, allocations: 60.83 kB / 431.8 MB, free: 2.855 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001122/0.2095, allocations: 0.9894 MB / 432.8 MB, free: 1.828 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001515/0.2097, allocations: 0.7931 MB / 433.6 MB, free: 1.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001323/0.2098, allocations: 47.39 kB / 433.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2099, allocations: 0 / 433.6 MB, free: 0.9609 MB / 298.7 MB Notification: Performance of Templates: time 0.007638/0.2175, allocations: 6.608 MB / 440.2 MB, free: 10.35 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo1/LossyGearDemo1.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches