Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.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.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|clutch.phi_rel|clutch.w_rel|engine.phi|engine.w|load.phi|load.w|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001427/0.001427, 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.357/1.357, allocations: 229.5 MB / 247.7 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007186/0.0007186, allocations: 99.64 kB / 299.8 MB, free: 5.332 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001973/0.0001973, allocations: 4 kB / 360.6 MB, free: 8.469 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2, allocations: 51.42 MB / 412 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002442/0.2025, allocations: 2.512 MB / 414.6 MB, free: 23.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001248/0.2037, allocations: 1.143 MB / 415.7 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001311/0.2039, allocations: 10.72 kB / 415.7 MB, free: 22.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002309/0.2041, allocations: 51.64 kB / 415.8 MB, free: 22.12 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002515/0.2044, allocations: 135.2 kB / 415.9 MB, free: 21.99 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002318/0.2046, allocations: 155.8 kB / 416 MB, free: 21.84 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003527/0.205, allocations: 0.5656 MB / 416.6 MB, free: 21.27 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001649/0.2052, allocations: 98.59 kB / 416.7 MB, free: 21.17 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001881/0.2053, allocations: 223.2 kB / 416.9 MB, free: 20.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002575/0.2056, allocations: 263 kB / 417.2 MB, free: 20.7 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.602e-05/0.2057, allocations: 27.94 kB / 417.2 MB, free: 20.67 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001373/0.2058, allocations: 67.98 kB / 417.3 MB, free: 20.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001236/0.206, allocations: 103.6 kB / 417.4 MB, free: 20.5 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001527/0.2061, allocations: 236.6 kB / 417.6 MB, free: 20.26 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003679/0.2065, allocations: 0.5309 MB / 418.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.087e-06/0.2065, allocations: 0 / 418.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.793e-06/0.2065, allocations: 0 / 418.1 MB, free: 19.73 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.214e-06/0.2065, allocations: 0 / 418.1 MB, free: 19.73 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001079/0.2076, allocations: 0.7253 MB / 418.9 MB, free: 18.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.2076, allocations: 8.031 kB / 418.9 MB, free: 18.95 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.552e-05/0.2077, allocations: 52.36 kB / 418.9 MB, free: 18.9 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003014/0.208, allocations: 318.4 kB / 419.2 MB, free: 18.55 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.66e-05/0.2081, allocations: 29.38 kB / 419.3 MB, free: 18.52 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.373e-05/0.2081, allocations: 36.38 kB / 419.3 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007002/0.2088, allocations: 442.6 kB / 419.7 MB, free: 18.04 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.94e-05/0.2089, allocations: 4 kB / 419.7 MB, free: 18.04 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.884e-05/0.2089, allocations: 12 kB / 419.8 MB, free: 18.03 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.2089, allocations: 8 kB / 419.8 MB, free: 18.02 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008447/0.2098, allocations: 451.6 kB / 420.2 MB, free: 17.58 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002086/0.2119, allocations: 1.304 MB / 421.5 MB, free: 16.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008853/0.2128, allocations: 400.3 kB / 421.9 MB, free: 15.8 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004889/0.2133, allocations: 250.1 kB / 422.1 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.406e-05/0.2133, allocations: 8.438 kB / 422.1 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.496e-05/0.2134, allocations: 35 kB / 422.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of pre-optimization done (n=50): time 2.064e-06/0.2134, allocations: 0 / 422.2 MB, free: 15.5 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.004639/0.218, allocations: 2.33 MB / 424.5 MB, free: 13.04 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.243e-05/0.2181, allocations: 67.72 kB / 424.6 MB, free: 12.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002076/0.2183, allocations: 262.7 kB / 424.8 MB, free: 12.69 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.2183, allocations: 45.7 kB / 424.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.049e-05/0.2184, allocations: 168.7 kB / 425 MB, free: 12.47 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.454e-05/0.2185, allocations: 193.5 kB / 425.2 MB, free: 12.28 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.935e-05/0.2185, allocations: 8 kB / 425.2 MB, free: 12.27 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.268e-05/0.2186, allocations: 342.8 kB / 425.6 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003995/0.219, allocations: 217 kB / 425.8 MB, free: 11.71 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004222/0.2194, allocations: 295.2 kB / 426.1 MB, free: 11.41 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006543/0.2201, allocations: 395.8 kB / 426.5 MB, free: 11 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.2201, allocations: 3.938 kB / 426.5 MB, free: 11 MB / 298.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00127/0.2214, allocations: 0.7272 MB / 427.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.403e-05/0.2214, allocations: 4 kB / 427.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2214, allocations: 0 / 427.2 MB, free: 10.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008623/0.2223, allocations: 386.5 kB / 427.6 MB, free: 9.863 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002498/0.2226, allocations: 71.89 kB / 427.6 MB, free: 9.793 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001853/0.2244, allocations: 3.435 MB / 431.1 MB, free: 6.07 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004411/0.2249, allocations: 104.1 kB / 431.2 MB, free: 5.969 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/0.2249, allocations: 23.98 kB / 431.2 MB, free: 5.945 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 16 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0001533/0.2251, allocations: 167.7 kB / 431.4 MB, free: 5.773 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.399e-05/0.2251, allocations: 39.53 kB / 431.4 MB, free: 5.734 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001313/0.2265, allocations: 0.72 MB / 432.1 MB, free: 5 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.2265, allocations: 11.98 kB / 432.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.514e-06/0.2265, allocations: 0 / 432.1 MB, free: 4.988 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.8e-06/0.2265, allocations: 3.984 kB / 432.1 MB, free: 4.984 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001795/0.2283, allocations: 1.283 MB / 433.4 MB, free: 3.637 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.2283, allocations: 4 kB / 433.4 MB, free: 3.633 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002569/0.2286, allocations: 59.91 kB / 433.5 MB, free: 3.574 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007382/0.2293, allocations: 354.4 kB / 433.8 MB, free: 3.219 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.048e-05/0.2294, allocations: 23.97 kB / 433.9 MB, free: 3.195 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001927/0.2313, allocations: 3.419 MB / 437.3 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.2313, allocations: 4.031 kB / 437.3 MB, free: 15.48 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001891/0.2332, allocations: 1.024 MB / 438.3 MB, free: 14.43 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.2334, allocations: 164.6 kB / 438.5 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.349e-05/0.2335, allocations: 24 kB / 438.5 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004626/0.234, allocations: 99.91 kB / 438.6 MB, free: 14.13 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002253/0.2342, allocations: 92.28 kB / 438.7 MB, free: 14.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.2343, allocations: 27.91 kB / 438.7 MB, free: 14.02 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001893/0.2345, allocations: 194 kB / 438.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2345, allocations: 0 / 438.9 MB, free: 13.82 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004359/0.2349, allocations: 124 kB / 439 MB, free: 13.7 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (load.w,quadraticSpeedDependentTorque.phi,clutch.phi_rel,clutch.w_rel) * Number of discrete variables: 10 (clutch.free,clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode) * Number of discrete states: 6 (clutch.mode,clutch.startBackward,brake.mode,brake.startBackward,brake.startForward,clutch.startForward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008524/0.2358, allocations: 440.5 kB / 439.4 MB, free: 13.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001463/0.2373, allocations: 0.7851 MB / 440.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.2373, allocations: 0 / 440.2 MB, free: 12.55 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009152/0.2382, allocations: 0.5384 MB / 440.8 MB, free: 11.99 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005215/0.2387, allocations: 68.59 kB / 440.8 MB, free: 11.93 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002053/0.2408, allocations: 1.247 MB / 442.1 MB, free: 10.66 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003605/0.2412, allocations: 0.8046 MB / 442.9 MB, free: 9.824 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.000145/0.2413, allocations: 35.27 kB / 442.9 MB, free: 9.789 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.959e-05/0.2414, allocations: 31.42 kB / 442.9 MB, free: 9.758 MB / 314.7 MB Notification: Performance of SimCode: time 4.61e-07/0.2414, allocations: 0 / 442.9 MB, free: 9.758 MB / 314.7 MB Notification: Performance of Templates: time 0.01431/0.2558, allocations: 9.09 MB / 452 MB, free: 0.7109 MB / 314.7 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches