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.LossyGearDemo1.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.LossyGearDemo1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|Inertia2.phi|Inertia2.w|gear.mode",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008377/0.0008378, allocations: 178.6 kB / 16.71 MB, free: 5.09 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.195/1.195, allocations: 225.7 MB / 243.2 MB, free: 8.477 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.0006972/0.0006973, allocations: 92.95 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002378/0.0002378, allocations: 11.94 kB / 354.2 MB, free: 13.65 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1945/0.1948, allocations: 50.41 MB / 404.6 MB, free: 31.34 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo1): time 0.001755/0.1966, allocations: 2.037 MB / 406.6 MB, free: 29.3 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001155/0.1977, allocations: 1.169 MB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001032/0.1978, allocations: 1.125 kB / 407.8 MB, free: 28.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001526/0.198, allocations: 39.7 kB / 407.8 MB, free: 28.03 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000348/0.1984, allocations: 129.4 kB / 407.9 MB, free: 27.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002323/0.1986, allocations: 155.9 kB / 408.1 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002695/0.1989, allocations: 454.5 kB / 408.5 MB, free: 27.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001397/0.199, allocations: 80.16 kB / 408.6 MB, free: 27.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001789/0.1992, allocations: 179.4 kB / 408.8 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002082/0.1994, allocations: 224 kB / 409 MB, free: 26.84 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.386e-05/0.1995, allocations: 24 kB / 409 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001462/0.1996, allocations: 91.88 kB / 409.1 MB, free: 26.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.271e-05/0.1997, allocations: 91.7 kB / 409.2 MB, free: 26.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001207/0.1999, allocations: 196.7 kB / 409.4 MB, free: 26.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003098/0.2002, allocations: 471.9 kB / 409.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.2002, allocations: 0 / 409.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.2002, allocations: 0 / 409.9 MB, free: 25.97 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.079e-06/0.2002, allocations: 0 / 409.9 MB, free: 25.97 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.0008637/0.2011, allocations: 0.6121 MB / 410.5 MB, free: 25.31 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.086e-05/0.2011, allocations: 16.02 kB / 410.5 MB, free: 25.3 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002435/0.2014, allocations: 48.55 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003024/0.2017, allocations: 323.4 kB / 410.9 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.032e-05/0.2018, allocations: 84.62 kB / 410.9 MB, free: 24.8 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.2018, allocations: 36.36 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006319/0.2025, allocations: 421.1 kB / 411.4 MB, free: 24.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.493e-05/0.2025, allocations: 7.844 kB / 411.4 MB, free: 24.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.191e-05/0.2025, allocations: 12 kB / 411.4 MB, free: 24.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.713e-06/0.2026, allocations: 8 kB / 411.4 MB, free: 24.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008673/0.2034, allocations: 486.3 kB / 411.9 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0013/0.2047, allocations: 0.9813 MB / 412.9 MB, free: 22.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006599/0.2054, allocations: 412.5 kB / 413.3 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000383/0.2058, allocations: 242 kB / 413.5 MB, free: 22.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.092e-05/0.2059, allocations: 12.59 kB / 413.5 MB, free: 22.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.536e-05/0.2059, allocations: 42.94 kB / 413.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of pre-optimization done (n=49): time 1.593e-06/0.2059, allocations: 0 / 413.6 MB, free: 22.09 MB / 298.7 MB Notification: Performance of matching and sorting (n=55): time 0.004225/0.2101, allocations: 2.226 MB / 415.8 MB, free: 19.75 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.517e-05/0.2101, allocations: 81.67 kB / 415.9 MB, free: 19.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002132/0.2104, allocations: 263.1 kB / 416.1 MB, free: 19.39 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.86e-05/0.2104, allocations: 33.7 kB / 416.2 MB, free: 19.35 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5e-05/0.2105, allocations: 133.2 kB / 416.3 MB, free: 19.22 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.673e-05/0.2106, allocations: 189.3 kB / 416.5 MB, free: 19.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.336e-05/0.2106, allocations: 11.94 kB / 416.5 MB, free: 19.02 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.82e-05/0.2106, allocations: 342.8 kB / 416.8 MB, free: 18.68 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003623/0.211, allocations: 197 kB / 417 MB, free: 18.48 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003858/0.2114, allocations: 252.6 kB / 417.3 MB, free: 18.23 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006563/0.2121, allocations: 408.3 kB / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.2121, allocations: 0 / 417.7 MB, free: 17.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.0009621/0.213, allocations: 0.6212 MB / 418.3 MB, free: 17.19 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.2131, allocations: 11.92 kB / 418.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.2131, allocations: 0 / 418.3 MB, free: 17.18 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005969/0.2137, allocations: 257.4 kB / 418.5 MB, free: 16.93 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002691/0.214, allocations: 75.89 kB / 418.6 MB, free: 16.86 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002754/0.2167, allocations: 2.69 MB / 421.3 MB, free: 14.04 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.217, allocations: 32.02 kB / 421.3 MB, free: 14 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.652e-05/0.217, allocations: 23.92 kB / 421.4 MB, free: 13.98 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 (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,25)} Notification: Performance of prepare postOptimizeDAE: time 0.0001259/0.2172, allocations: 161.8 kB / 421.5 MB, free: 13.81 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.517e-05/0.2172, allocations: 35.61 kB / 421.6 MB, free: 13.78 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.325e-05/0.2173, allocations: 47.31 kB / 421.6 MB, free: 13.73 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.2173, allocations: 11.94 kB / 421.6 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.2173, allocations: 0 / 421.6 MB, free: 13.72 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.2173, allocations: 3.984 kB / 421.6 MB, free: 13.71 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001667/0.219, allocations: 1.28 MB / 422.9 MB, free: 12.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.219, allocations: 4.031 kB / 422.9 MB, free: 12.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000276/0.2193, allocations: 67.89 kB / 423 MB, free: 12.3 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005466/0.2199, allocations: 240.6 kB / 423.2 MB, free: 12.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.27e-05/0.2199, allocations: 15.98 kB / 423.2 MB, free: 12.05 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002536/0.2225, allocations: 2.593 MB / 425.8 MB, free: 9.324 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2225, allocations: 3.938 kB / 425.8 MB, free: 9.32 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001411/0.2239, allocations: 0.9768 MB / 426.8 MB, free: 8.32 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.224, allocations: 160.6 kB / 426.9 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.339e-05/0.2241, allocations: 12 kB / 427 MB, free: 8.133 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002702/0.2244, allocations: 40.03 kB / 427 MB, free: 8.094 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001346/0.2245, allocations: 68.33 kB / 427.1 MB, free: 8.027 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.957e-05/0.2245, allocations: 19.98 kB / 427.1 MB, free: 8.008 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001545/0.2247, allocations: 188.6 kB / 427.3 MB, free: 7.824 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2247, allocations: 0 / 427.3 MB, free: 7.824 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004724/0.2252, allocations: 160 kB / 427.4 MB, free: 7.668 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 (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.0001705/0.2254, allocations: 140.3 kB / 427.6 MB, free: 7.52 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001086/0.2265, allocations: 0.7151 MB / 428.3 MB, free: 6.793 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.2265, allocations: 3.938 kB / 428.3 MB, free: 6.789 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006317/0.2271, allocations: 479.8 kB / 428.7 MB, free: 6.309 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003924/0.2275, allocations: 45.22 kB / 428.8 MB, free: 6.266 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00118/0.2287, allocations: 0.9761 MB / 429.8 MB, free: 5.258 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001686/0.2289, allocations: 0.7969 MB / 430.6 MB, free: 4.434 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001912/0.2291, allocations: 66.95 kB / 430.6 MB, free: 4.363 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.609e-05/0.2292, allocations: 31.42 kB / 430.7 MB, free: 4.332 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2292, allocations: 0 / 430.7 MB, free: 4.332 MB / 298.7 MB Notification: Performance of Templates: time 0.01036/0.2396, allocations: 7.159 MB / 437.8 MB, free: 13.19 MB / 314.7 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.LossyGearDemo1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches