Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008427/0.0008427, allocations: 183.2 kB / 16.71 MB, free: 4.973 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.216/1.216, allocations: 225.7 MB / 243.2 MB, free: 8.531 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007328/0.0007331, allocations: 102.5 kB / 294.4 MB, free: 9.551 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000223/0.000223, allocations: 11.94 kB / 354.2 MB, free: 13.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1809/0.1812, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.001639/0.1828, allocations: 1.963 MB / 406.5 MB, free: 29.4 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00104/0.1839, allocations: 1.119 MB / 407.7 MB, free: 28.22 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.285e-05/0.184, allocations: 7.938 kB / 407.7 MB, free: 28.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.1842, allocations: 31.77 kB / 407.7 MB, free: 28.18 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003016/0.1845, allocations: 126 kB / 407.8 MB, free: 28.06 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002145/0.1847, allocations: 141.1 kB / 408 MB, free: 27.93 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002382/0.1849, allocations: 399.6 kB / 408.3 MB, free: 27.54 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.1851, allocations: 55.61 kB / 408.4 MB, free: 27.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001214/0.1852, allocations: 167.4 kB / 408.6 MB, free: 27.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000177/0.1854, allocations: 203.3 kB / 408.8 MB, free: 27.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.712e-05/0.1854, allocations: 16.97 kB / 408.8 MB, free: 27.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001371/0.1856, allocations: 87.88 kB / 408.9 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.27e-05/0.1857, allocations: 84.83 kB / 408.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001083/0.1858, allocations: 172.9 kB / 409.1 MB, free: 26.76 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002829/0.1861, allocations: 420.2 kB / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1861, allocations: 4 kB / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1861, allocations: 0 / 409.5 MB, free: 26.34 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.95e-06/0.1861, allocations: 7.875 kB / 409.5 MB, free: 26.34 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.0007981/0.1869, allocations: 0.5732 MB / 410.1 MB, free: 25.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.646e-05/0.1869, allocations: 12.03 kB / 410.1 MB, free: 25.7 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002485/0.1872, allocations: 48.53 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002851/0.1875, allocations: 299.8 kB / 410.5 MB, free: 25.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.489e-05/0.1876, allocations: 92.45 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.423e-05/0.1876, allocations: 32.28 kB / 410.6 MB, free: 25.19 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005238/0.1882, allocations: 381.4 kB / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.461e-05/0.1882, allocations: 0 / 411 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.865e-05/0.1882, allocations: 12 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.122e-06/0.1882, allocations: 4 kB / 411 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006935/0.1889, allocations: 429.9 kB / 411.4 MB, free: 24.37 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.1904, allocations: 1.257 MB / 412.6 MB, free: 23.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000517/0.191, allocations: 363.5 kB / 413 MB, free: 22.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.1913, allocations: 192.8 kB / 413.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.475e-05/0.1913, allocations: 4 kB / 413.2 MB, free: 22.48 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.768e-05/0.1913, allocations: 38.5 kB / 413.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 1.783e-06/0.1913, allocations: 3.984 kB / 413.2 MB, free: 22.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.003778/0.1951, allocations: 1.957 MB / 415.2 MB, free: 20.36 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.1951, allocations: 88.86 kB / 415.3 MB, free: 20.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/0.1953, allocations: 238.3 kB / 415.5 MB, free: 20.01 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.1954, allocations: 37.7 kB / 415.5 MB, free: 19.96 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.609e-05/0.1954, allocations: 132.7 kB / 415.7 MB, free: 19.83 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.001e-05/0.1955, allocations: 150 kB / 415.8 MB, free: 19.68 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.097e-05/0.1955, allocations: 11.98 kB / 415.8 MB, free: 19.67 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.181e-05/0.1956, allocations: 330.8 kB / 416.2 MB, free: 19.34 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002925/0.1959, allocations: 176.8 kB / 416.3 MB, free: 19.17 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003033/0.1962, allocations: 233.8 kB / 416.6 MB, free: 18.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005334/0.1967, allocations: 351.2 kB / 416.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.1967, allocations: 0 / 416.9 MB, free: 18.56 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008499/0.1976, allocations: 0.5629 MB / 417.5 MB, free: 17.99 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.168e-05/0.1976, allocations: 4 kB / 417.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.98e-06/0.1976, allocations: 4 kB / 417.5 MB, free: 17.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006126/0.1983, allocations: 244.8 kB / 417.7 MB, free: 17.74 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00021/0.1985, allocations: 59.91 kB / 417.8 MB, free: 17.68 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002673/0.2012, allocations: 2.645 MB / 420.4 MB, free: 14.91 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002237/0.2014, allocations: 27.98 kB / 420.4 MB, free: 14.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.383e-05/0.2014, allocations: 24.05 kB / 420.5 MB, free: 14.86 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 (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.0001138/0.2016, allocations: 157.7 kB / 420.6 MB, free: 14.69 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.997e-05/0.2016, allocations: 27.66 kB / 420.6 MB, free: 14.66 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.179e-05/0.2017, allocations: 42.98 kB / 420.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.256e-06/0.2017, allocations: 4 kB / 420.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.2017, allocations: 0 / 420.7 MB, free: 14.62 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.2017, allocations: 7.984 kB / 420.7 MB, free: 14.61 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.2031, allocations: 1.104 MB / 421.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.735e-06/0.2031, allocations: 3.984 kB / 421.8 MB, free: 13.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001915/0.2033, allocations: 43.97 kB / 421.9 MB, free: 13.4 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005293/0.2038, allocations: 238.7 kB / 422.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.681e-05/0.2039, allocations: 8 kB / 422.1 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002546/0.2064, allocations: 2.607 MB / 424.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.282e-06/0.2064, allocations: 0 / 424.7 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001128/0.2076, allocations: 0.8219 MB / 425.5 MB, free: 9.574 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00011/0.2077, allocations: 144.7 kB / 425.7 MB, free: 9.414 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.568e-05/0.2077, allocations: 12 kB / 425.7 MB, free: 9.402 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.208, allocations: 32.03 kB / 425.7 MB, free: 9.371 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.2081, allocations: 63.83 kB / 425.8 MB, free: 9.309 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.493e-05/0.2081, allocations: 16 kB / 425.8 MB, free: 9.293 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000139/0.2083, allocations: 177.5 kB / 426 MB, free: 9.121 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2083, allocations: 0 / 426 MB, free: 9.121 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004491/0.2088, allocations: 144 kB / 426.1 MB, free: 8.98 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.0001869/0.2089, allocations: 143.8 kB / 426.2 MB, free: 8.832 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009656/0.2099, allocations: 0.629 MB / 426.9 MB, free: 8.188 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2099, allocations: 8.188 kB / 426.9 MB, free: 8.18 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005465/0.2105, allocations: 433.5 kB / 427.3 MB, free: 7.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003365/0.2108, allocations: 39.86 kB / 427.3 MB, free: 7.707 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009676/0.2118, allocations: 0.8607 MB / 428.2 MB, free: 6.824 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001454/0.212, allocations: 0.7725 MB / 429 MB, free: 6.02 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001658/0.2121, allocations: 62.94 kB / 429 MB, free: 5.957 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.85e-05/0.2122, allocations: 27.42 kB / 429.1 MB, free: 5.93 MB / 298.7 MB Notification: Performance of SimCode: time 2.2e-07/0.2122, allocations: 0 / 429.1 MB, free: 5.93 MB / 298.7 MB Notification: Performance of Templates: time 0.008547/0.2208, allocations: 6.559 MB / 435.6 MB, free: 15.38 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches