Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.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.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") translateModel(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001099/0.001099, allocations: 197.3 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.227/1.227, allocations: 226.6 MB / 244.3 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007106/0.0007108, allocations: 92.89 kB / 296.4 MB, free: 7.012 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001957/0.0001958, allocations: 8 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1766/0.1768, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.001825/0.1787, allocations: 2.057 MB / 409.5 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.1799, allocations: 0.986 MB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.18, allocations: 5.094 kB / 410.5 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002531/0.1803, allocations: 47.69 kB / 410.6 MB, free: 24.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002713/0.1806, allocations: 136.6 kB / 410.7 MB, free: 24.62 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.1808, allocations: 129.2 kB / 410.8 MB, free: 24.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002497/0.1811, allocations: 406.7 kB / 411.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001079/0.1812, allocations: 49.62 kB / 411.3 MB, free: 24.05 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001311/0.1813, allocations: 183.4 kB / 411.5 MB, free: 23.87 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001878/0.1815, allocations: 211.3 kB / 411.7 MB, free: 23.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.418e-05/0.1816, allocations: 20 kB / 411.7 MB, free: 23.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001457/0.1817, allocations: 95.95 kB / 411.8 MB, free: 23.55 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.218e-05/0.1818, allocations: 87.7 kB / 411.9 MB, free: 23.46 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.358e-05/0.1818, allocations: 69.58 kB / 411.9 MB, free: 23.39 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002451/0.1821, allocations: 372.1 kB / 412.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1821, allocations: 0 / 412.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1821, allocations: 0 / 412.3 MB, free: 23.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.1821, allocations: 0 / 412.3 MB, free: 23.02 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: 67 * Number of variables: 67 Notification: Performance of Generate backend data structure: time 0.0008343/0.183, allocations: 0.608 MB / 412.9 MB, free: 22.37 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.716e-05/0.183, allocations: 8.031 kB / 412.9 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002664/0.1833, allocations: 51.61 kB / 413 MB, free: 22.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002985/0.1836, allocations: 296.2 kB / 413.3 MB, free: 21.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.999e-05/0.1837, allocations: 83.95 kB / 413.3 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.99e-05/0.1837, allocations: 39.95 kB / 413.4 MB, free: 21.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005572/0.1843, allocations: 389.2 kB / 413.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.37e-05/0.1843, allocations: 0 / 413.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.264e-05/0.1844, allocations: 15.94 kB / 413.8 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.1844, allocations: 4 kB / 413.8 MB, free: 21.43 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006785/0.185, allocations: 429.9 kB / 414.2 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001554/0.1866, allocations: 1.276 MB / 415.5 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005505/0.1872, allocations: 340.7 kB / 415.8 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003112/0.1875, allocations: 184.8 kB / 416 MB, free: 19.13 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.765e-05/0.1875, allocations: 16.14 kB / 416 MB, free: 19.12 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.719e-05/0.1876, allocations: 30.56 kB / 416 MB, free: 19.08 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.383e-06/0.1876, allocations: 0 / 416 MB, free: 19.08 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003993/0.1916, allocations: 1.938 MB / 418 MB, free: 17.03 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.676e-05/0.1916, allocations: 88.8 kB / 418.1 MB, free: 16.92 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002248/0.1918, allocations: 255 kB / 418.3 MB, free: 16.66 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.174e-05/0.1919, allocations: 37.7 kB / 418.3 MB, free: 16.62 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.85e-05/0.1919, allocations: 132.7 kB / 418.5 MB, free: 16.48 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.193e-05/0.192, allocations: 153.8 kB / 418.6 MB, free: 16.33 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.231e-05/0.192, allocations: 7.984 kB / 418.6 MB, free: 16.32 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.683e-05/0.1921, allocations: 338.8 kB / 419 MB, free: 15.98 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003129/0.1924, allocations: 168.7 kB / 419.1 MB, free: 15.82 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003269/0.1927, allocations: 229.9 kB / 419.4 MB, free: 15.58 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002981/0.1931, allocations: 156.8 kB / 419.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.1931, allocations: 0 / 419.5 MB, free: 15.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.000907/0.194, allocations: 0.5552 MB / 420.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.194, allocations: 7.953 kB / 420.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.194, allocations: 0 / 420.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000667/0.1947, allocations: 300.6 kB / 420.4 MB, free: 14.56 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002176/0.1949, allocations: 55.89 kB / 420.4 MB, free: 14.5 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002725/0.1976, allocations: 2.656 MB / 423.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002428/0.1979, allocations: 32 kB / 423.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.581e-05/0.1979, allocations: 16 kB / 423.1 MB, free: 11.67 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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 (27): * 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: 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 24} Notification: Performance of prepare postOptimizeDAE: time 0.0001278/0.1981, allocations: 161.2 kB / 423.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.88e-05/0.1981, allocations: 31.62 kB / 423.3 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.558e-05/0.1982, allocations: 47.05 kB / 423.4 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.416e-06/0.1982, allocations: 4 kB / 423.4 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.653e-06/0.1982, allocations: 0 / 423.4 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.1982, allocations: 4 kB / 423.4 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001448/0.1997, allocations: 1.12 MB / 424.5 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.507e-06/0.1997, allocations: 4 kB / 424.5 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002037/0.1999, allocations: 43.97 kB / 424.5 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005879/0.2005, allocations: 288.8 kB / 424.8 MB, free: 9.906 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.856e-05/0.2006, allocations: 11.98 kB / 424.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002486/0.203, allocations: 2.607 MB / 427.4 MB, free: 7.152 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.2031, allocations: 4.062 kB / 427.4 MB, free: 7.148 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001195/0.2043, allocations: 0.8173 MB / 428.3 MB, free: 6.312 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.2044, allocations: 160.8 kB / 428.4 MB, free: 6.137 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.812e-05/0.2044, allocations: 8 kB / 428.4 MB, free: 6.129 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000252/0.2047, allocations: 31.97 kB / 428.4 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.2048, allocations: 75.8 kB / 428.5 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.769e-05/0.2049, allocations: 15.98 kB / 428.5 MB, free: 6.008 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001575/0.205, allocations: 183.3 kB / 428.7 MB, free: 5.828 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.205, allocations: 4 kB / 428.7 MB, free: 5.824 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004799/0.2055, allocations: 136 kB / 428.9 MB, free: 5.691 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (21): * Single equations (assignments): 20 * 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.0006604/0.2062, allocations: 369.1 kB / 429.2 MB, free: 5.445 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009843/0.2072, allocations: 0.6259 MB / 429.8 MB, free: 4.805 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.2072, allocations: 4.062 kB / 429.8 MB, free: 4.801 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005605/0.2078, allocations: 436.8 kB / 430.3 MB, free: 4.359 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003702/0.2081, allocations: 35.98 kB / 430.3 MB, free: 4.324 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001014/0.2092, allocations: 0.8641 MB / 431.2 MB, free: 3.434 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001566/0.2093, allocations: 0.7841 MB / 432 MB, free: 2.625 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001152/0.2095, allocations: 43.39 kB / 432 MB, free: 2.582 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2095, allocations: 4 kB / 432 MB, free: 2.578 MB / 298.7 MB Notification: Performance of Templates: time 0.006777/0.2162, allocations: 5.861 MB / 437.9 MB, free: 12.71 MB / 314.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches