Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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_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_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001367/0.001367, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.296/1.296, allocations: 229.5 MB / 247.7 MB, free: 6.297 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007721/0.000772, allocations: 95.27 kB / 299.8 MB, free: 5.328 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002517/0.000252, allocations: 4 kB / 360.6 MB, free: 8.461 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1936/0.1939, allocations: 51.41 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.LossyGearDemo3): time 0.002231/0.1962, allocations: 2.069 MB / 414.1 MB, free: 23.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001393/0.1976, allocations: 1.307 MB / 415.4 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001179/0.1977, allocations: 4.719 kB / 415.4 MB, free: 22.43 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002662/0.198, allocations: 48.22 kB / 415.5 MB, free: 22.38 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003055/0.1983, allocations: 127.5 kB / 415.6 MB, free: 22.26 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000263/0.1986, allocations: 139.8 kB / 415.7 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002973/0.1989, allocations: 446.7 kB / 416.2 MB, free: 21.68 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001362/0.199, allocations: 64.69 kB / 416.2 MB, free: 21.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.1992, allocations: 175.5 kB / 416.4 MB, free: 21.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002108/0.1994, allocations: 227.2 kB / 416.6 MB, free: 21.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.729e-05/0.1995, allocations: 20 kB / 416.6 MB, free: 21.2 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001674/0.1996, allocations: 91.95 kB / 416.7 MB, free: 21.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001017/0.1998, allocations: 95.69 kB / 416.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001217/0.1999, allocations: 184.8 kB / 417 MB, free: 20.83 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003798/0.2003, allocations: 476 kB / 417.5 MB, free: 20.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.573e-06/0.2003, allocations: 4 kB / 417.5 MB, free: 20.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.965e-06/0.2003, allocations: 0 / 417.5 MB, free: 20.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.2003, allocations: 0 / 417.5 MB, free: 20.36 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.0009631/0.2013, allocations: 0.6005 MB / 418.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.228e-05/0.2013, allocations: 8.031 kB / 418.1 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002522/0.2016, allocations: 48.55 kB / 418.1 MB, free: 19.66 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003256/0.2019, allocations: 304.4 kB / 418.4 MB, free: 19.32 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.756e-05/0.202, allocations: 92.52 kB / 418.5 MB, free: 19.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.268e-05/0.2021, allocations: 24.38 kB / 418.5 MB, free: 19.2 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005755/0.2027, allocations: 397.3 kB / 418.9 MB, free: 18.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.626e-05/0.2027, allocations: 7.984 kB / 418.9 MB, free: 18.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.371e-05/0.2027, allocations: 12 kB / 419 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.073e-06/0.2028, allocations: 4 kB / 419 MB, free: 18.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007007/0.2035, allocations: 425.9 kB / 419.4 MB, free: 18.35 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00167/0.2051, allocations: 1.273 MB / 420.6 MB, free: 17 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005807/0.2057, allocations: 350.5 kB / 421 MB, free: 16.65 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003295/0.2061, allocations: 184.8 kB / 421.2 MB, free: 16.46 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.204e-05/0.2061, allocations: 4 kB / 421.2 MB, free: 16.46 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.2061, allocations: 38.55 kB / 421.2 MB, free: 16.41 MB / 298.7 MB Notification: Performance of pre-optimization done (n=43): time 2.385e-06/0.2062, allocations: 0 / 421.2 MB, free: 16.41 MB / 298.7 MB Notification: Performance of matching and sorting (n=45): time 0.004207/0.2104, allocations: 1.961 MB / 423.2 MB, free: 14.34 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.252e-05/0.2104, allocations: 88.86 kB / 423.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002269/0.2106, allocations: 246.5 kB / 423.5 MB, free: 13.98 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.2107, allocations: 33.7 kB / 423.5 MB, free: 13.94 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.334e-05/0.2108, allocations: 140.7 kB / 423.7 MB, free: 13.8 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.904e-05/0.2108, allocations: 153.8 kB / 423.8 MB, free: 13.65 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.23e-05/0.2109, allocations: 8 kB / 423.8 MB, free: 13.64 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.601e-05/0.2109, allocations: 334.8 kB / 424.2 MB, free: 13.3 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003126/0.2113, allocations: 172.8 kB / 424.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.2116, allocations: 225.8 kB / 424.5 MB, free: 12.9 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005578/0.2122, allocations: 339.2 kB / 424.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.2122, allocations: 4 kB / 424.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009299/0.2131, allocations: 0.5551 MB / 425.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.637e-05/0.2131, allocations: 4 kB / 425.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.2131, allocations: 4 kB / 425.4 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006828/0.2138, allocations: 296.7 kB / 425.7 MB, free: 11.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002311/0.2141, allocations: 55.89 kB / 425.8 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002872/0.217, allocations: 2.653 MB / 428.4 MB, free: 8.848 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000249/0.2172, allocations: 36.03 kB / 428.5 MB, free: 8.812 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.134e-05/0.2173, allocations: 20 kB / 428.5 MB, free: 8.793 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.0001328/0.2174, allocations: 157.6 kB / 428.6 MB, free: 8.629 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.699e-05/0.2175, allocations: 31.56 kB / 428.7 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.705e-05/0.2176, allocations: 50.98 kB / 428.7 MB, free: 8.547 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.2176, allocations: 4 kB / 428.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.2176, allocations: 0 / 428.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.968e-06/0.2176, allocations: 0 / 428.7 MB, free: 8.543 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00148/0.2191, allocations: 1.116 MB / 429.8 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.186e-06/0.2191, allocations: 0 / 429.8 MB, free: 7.367 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002107/0.2193, allocations: 59.84 kB / 429.9 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006078/0.2199, allocations: 283.4 kB / 430.2 MB, free: 7.031 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.109e-05/0.22, allocations: 15.98 kB / 430.2 MB, free: 7.016 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002704/0.2227, allocations: 2.606 MB / 432.8 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2227, allocations: 0 / 432.8 MB, free: 4.277 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00126/0.224, allocations: 0.8295 MB / 433.6 MB, free: 3.43 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000122/0.2241, allocations: 156.6 kB / 433.8 MB, free: 3.258 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.395e-05/0.2242, allocations: 8 kB / 433.8 MB, free: 3.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002556/0.2244, allocations: 36.03 kB / 433.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001644/0.2246, allocations: 59.89 kB / 433.9 MB, free: 3.156 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.051e-05/0.2246, allocations: 19.98 kB / 433.9 MB, free: 3.137 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001665/0.2248, allocations: 176.5 kB / 434.1 MB, free: 2.965 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.2248, allocations: 0 / 434.1 MB, free: 2.965 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004988/0.2253, allocations: 140 kB / 434.2 MB, free: 2.828 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.0007859/0.2261, allocations: 432.4 kB / 434.6 MB, free: 2.504 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001043/0.2272, allocations: 0.6213 MB / 435.3 MB, free: 1.867 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2272, allocations: 0 / 435.3 MB, free: 1.867 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005725/0.2278, allocations: 441.3 kB / 435.7 MB, free: 1.422 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003839/0.2281, allocations: 39.91 kB / 435.7 MB, free: 1.383 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001081/0.2292, allocations: 0.8624 MB / 436.6 MB, free: 0.5 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002382/0.2295, allocations: 0.7841 MB / 437.4 MB, free: 15.69 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002303/0.2297, allocations: 70.92 kB / 437.4 MB, free: 15.62 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001035/0.2298, allocations: 35.41 kB / 437.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2298, allocations: 0 / 437.5 MB, free: 15.59 MB / 314.7 MB Notification: Performance of Templates: time 0.01138/0.2412, allocations: 7.052 MB / 444.5 MB, free: 8.551 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.Mechanics.Rotational.Examples.LossyGearDemo3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches