Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001032/0.001032, allocations: 187 kB / 17.92 MB, free: 3.855 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.148/1.148, allocations: 205.1 MB / 223.8 MB, free: 8.469 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008912/0.0008911, allocations: 103.6 kB / 271.2 MB, free: 8.434 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000747/0.0007471, allocations: 35.94 kB / 327.2 MB, free: 332 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1787/0.1795, allocations: 46.62 MB / 373.8 MB, free: 45.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.003069/0.1826, allocations: 2.392 MB / 376.2 MB, free: 43.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00138/0.184, allocations: 0.9663 MB / 377.2 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000167/0.1842, allocations: 4.281 kB / 377.2 MB, free: 43.17 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001632/0.1844, allocations: 35.28 kB / 377.2 MB, free: 43.14 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003604/0.1848, allocations: 112.5 kB / 377.3 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002715/0.185, allocations: 149.5 kB / 377.5 MB, free: 42.96 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003189/0.1854, allocations: 405.7 kB / 377.9 MB, free: 42.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.1855, allocations: 56.39 kB / 377.9 MB, free: 42.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001837/0.1857, allocations: 165.8 kB / 378.1 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002233/0.1859, allocations: 210 kB / 378.3 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.452e-05/0.186, allocations: 19.47 kB / 378.3 MB, free: 42.49 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001786/0.1862, allocations: 102.8 kB / 378.4 MB, free: 42.45 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.588e-05/0.1863, allocations: 81.25 kB / 378.5 MB, free: 42.39 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.1864, allocations: 150.2 kB / 378.6 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003452/0.1868, allocations: 433.6 kB / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.477e-06/0.1868, allocations: 0 / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.1868, allocations: 0 / 379.1 MB, free: 41.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.705e-06/0.1868, allocations: 0 / 379.1 MB, free: 41.98 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.0009677/0.1878, allocations: 0.6263 MB / 379.7 MB, free: 41.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.885e-05/0.1878, allocations: 12.83 kB / 379.7 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002724/0.1881, allocations: 51.48 kB / 379.7 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000325/0.1884, allocations: 299 kB / 380 MB, free: 41.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.395e-05/0.1885, allocations: 96.11 kB / 380.1 MB, free: 41.04 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.329e-05/0.1886, allocations: 29.81 kB / 380.2 MB, free: 41.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005657/0.1891, allocations: 378 kB / 380.5 MB, free: 40.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.534e-05/0.1892, allocations: 0 / 380.5 MB, free: 40.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.91e-05/0.1892, allocations: 14.67 kB / 380.5 MB, free: 40.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.314e-06/0.1892, allocations: 7.781 kB / 380.6 MB, free: 40.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007451/0.19, allocations: 417.8 kB / 381 MB, free: 40.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001654/0.1916, allocations: 1.236 MB / 382.2 MB, free: 39.6 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005663/0.1922, allocations: 362.7 kB / 382.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003175/0.1925, allocations: 184.9 kB / 382.7 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.191e-05/0.1926, allocations: 8.938 kB / 382.7 MB, free: 39.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.859e-05/0.1926, allocations: 37.03 kB / 382.8 MB, free: 39.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.483e-06/0.1926, allocations: 0 / 382.8 MB, free: 39.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004049/0.1967, allocations: 1.918 MB / 384.7 MB, free: 38.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.77e-05/0.1967, allocations: 85.45 kB / 384.8 MB, free: 37.94 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002345/0.197, allocations: 246.6 kB / 385 MB, free: 37.77 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.69e-05/0.197, allocations: 37.17 kB / 385.1 MB, free: 37.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.076e-05/0.197, allocations: 138.2 kB / 385.2 MB, free: 37.61 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.721e-05/0.1971, allocations: 156 kB / 385.3 MB, free: 37.47 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001186/0.1973, allocations: 79.12 kB / 385.4 MB, free: 37.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.595e-05/0.1973, allocations: 336.6 kB / 385.7 MB, free: 37.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003244/0.1976, allocations: 171.2 kB / 385.9 MB, free: 37.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003166/0.198, allocations: 233.6 kB / 386.1 MB, free: 36.77 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005103/0.1985, allocations: 343.1 kB / 386.5 MB, free: 36.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.1985, allocations: 0 / 386.5 MB, free: 36.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008439/0.1993, allocations: 0.5599 MB / 387 MB, free: 35.86 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.336e-05/0.1994, allocations: 4 kB / 387 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.51e-06/0.1994, allocations: 0 / 387 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006067/0.2, allocations: 257.6 kB / 387.3 MB, free: 35.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001978/0.2002, allocations: 55.95 kB / 387.3 MB, free: 35.55 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002656/0.2029, allocations: 2.655 MB / 390 MB, free: 32.76 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002263/0.2031, allocations: 27.97 kB / 390 MB, free: 32.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.325e-05/0.2031, allocations: 16 kB / 390 MB, free: 32.72 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.ideal,gear.mode,$PRE.gear.mode,gear.locked,gear.startBackward,gear.startForward,gear.tau_aPos) * 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,24)} Notification: Performance of prepare postOptimizeDAE: time 0.0001178/0.2033, allocations: 145.8 kB / 390.2 MB, free: 32.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.2033, allocations: 31.64 kB / 390.2 MB, free: 32.54 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.327e-05/0.2034, allocations: 43 kB / 390.3 MB, free: 32.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.2034, allocations: 8.062 kB / 390.3 MB, free: 32.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2034, allocations: 0 / 390.3 MB, free: 32.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.2035, allocations: 3.984 kB / 390.3 MB, free: 32.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001427/0.2049, allocations: 1.1 MB / 391.4 MB, free: 31.32 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.106e-06/0.2049, allocations: 0 / 391.4 MB, free: 31.32 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001842/0.2051, allocations: 43.97 kB / 391.4 MB, free: 31.28 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005339/0.2056, allocations: 240.9 kB / 391.7 MB, free: 31.04 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.111e-05/0.2057, allocations: 15.97 kB / 391.7 MB, free: 31.02 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002524/0.2082, allocations: 2.586 MB / 394.3 MB, free: 28.3 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.493e-06/0.2082, allocations: 0 / 394.3 MB, free: 28.3 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00864/0.2169, allocations: 6.547 MB / 400.8 MB, free: 21.45 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001138/0.217, allocations: 140.8 kB / 400.9 MB, free: 21.29 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.213e-05/0.2171, allocations: 11.98 kB / 400.9 MB, free: 21.28 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002262/0.2173, allocations: 19.98 kB / 401 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001324/0.2174, allocations: 59.89 kB / 401 MB, free: 21.2 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.573e-05/0.2175, allocations: 19.94 kB / 401 MB, free: 21.18 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001426/0.2176, allocations: 184.4 kB / 401.2 MB, free: 21 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.2176, allocations: 0 / 401.2 MB, free: 21 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000688/0.2183, allocations: 208 kB / 401.4 MB, free: 20.8 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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002207/0.2185, allocations: 163.2 kB / 401.6 MB, free: 20.63 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009746/0.2195, allocations: 0.6213 MB / 402.2 MB, free: 20 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2195, allocations: 0 / 402.2 MB, free: 20 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000562/0.2201, allocations: 433 kB / 402.6 MB, free: 19.56 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003419/0.2205, allocations: 39.98 kB / 402.7 MB, free: 19.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.2218, allocations: 1.28 MB / 404 MB, free: 18.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001764/0.222, allocations: 0.7924 MB / 404.7 MB, free: 17.38 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0002031/0.2222, allocations: 66.95 kB / 404.8 MB, free: 17.31 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001051/0.2223, allocations: 39.41 kB / 404.8 MB, free: 17.27 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2223, allocations: 0 / 404.8 MB, free: 17.27 MB / 298.7 MB Notification: Performance of Templates: time 0.01138/0.2337, allocations: 9.495 MB / 414.3 MB, free: 7.793 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/LossyGearDemo3/LossyGearDemo3.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches