Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001092/0.001092, allocations: 175.9 kB / 17.36 MB, free: 4.32 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.467/1.467, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007408/0.000741, allocations: 87.06 kB / 272.1 MB, free: 8.117 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002509/0.000251, allocations: 4 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2234/0.2237, allocations: 47.58 MB / 376.6 MB, free: 45.59 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.002143/0.2259, allocations: 2.389 MB / 379 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001134/0.227, allocations: 0.99 MB / 380 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.2271, allocations: 8.812 kB / 380 MB, free: 42.89 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001574/0.2273, allocations: 52.69 kB / 380 MB, free: 42.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001812/0.2275, allocations: 94.36 kB / 380.1 MB, free: 42.77 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003209/0.2278, allocations: 177.6 kB / 380.3 MB, free: 42.62 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003997/0.2282, allocations: 0.5393 MB / 380.8 MB, free: 42.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001842/0.2284, allocations: 91.94 kB / 380.9 MB, free: 42.26 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002168/0.2287, allocations: 217.5 kB / 381.1 MB, free: 42.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002346/0.2289, allocations: 256.3 kB / 381.4 MB, free: 41.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 5.412e-05/0.229, allocations: 22.59 kB / 381.4 MB, free: 41.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000139/0.2291, allocations: 59.75 kB / 381.5 MB, free: 41.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.269e-05/0.2292, allocations: 94.02 kB / 381.6 MB, free: 41.89 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001518/0.2294, allocations: 215.6 kB / 381.8 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003556/0.2297, allocations: 0.4991 MB / 382.3 MB, free: 41.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.2297, allocations: 7.922 kB / 382.3 MB, free: 41.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.2298, allocations: 0 / 382.3 MB, free: 41.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.141e-06/0.2298, allocations: 0 / 382.3 MB, free: 41.35 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: 84 * Number of variables: 84 Notification: Performance of Generate backend data structure: time 0.001043/0.2308, allocations: 0.6803 MB / 383 MB, free: 40.79 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.153e-05/0.2309, allocations: 9.406 kB / 383 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.558e-05/0.2309, allocations: 46.12 kB / 383 MB, free: 40.76 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002653/0.2312, allocations: 304.8 kB / 383.3 MB, free: 40.46 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.007e-05/0.2313, allocations: 26.88 kB / 383.3 MB, free: 40.44 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.2313, allocations: 34.84 kB / 383.4 MB, free: 40.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007213/0.2321, allocations: 451.5 kB / 383.8 MB, free: 40.16 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.789e-05/0.2321, allocations: 10.02 kB / 383.8 MB, free: 40.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.713e-05/0.2321, allocations: 14.19 kB / 383.8 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.067e-06/0.2321, allocations: 8.781 kB / 383.8 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008322/0.233, allocations: 472.7 kB / 384.3 MB, free: 39.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001873/0.2349, allocations: 1.294 MB / 385.6 MB, free: 38.95 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007275/0.2356, allocations: 377.1 kB / 386 MB, free: 38.76 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004519/0.2361, allocations: 259.3 kB / 386.2 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.783e-05/0.2361, allocations: 4.469 kB / 386.2 MB, free: 38.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.2361, allocations: 36.97 kB / 386.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.2361, allocations: 1 kB / 386.3 MB, free: 38.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=49): time 0.00425/0.2404, allocations: 2.38 MB / 388.6 MB, free: 36.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.139e-05/0.2404, allocations: 55.84 kB / 388.7 MB, free: 36.01 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001637/0.2406, allocations: 246.6 kB / 388.9 MB, free: 35.76 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.691e-05/0.2407, allocations: 45.69 kB / 389 MB, free: 35.71 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.717e-05/0.2407, allocations: 168.6 kB / 389.2 MB, free: 35.54 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.396e-05/0.2408, allocations: 165.7 kB / 389.3 MB, free: 35.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.843e-05/0.2408, allocations: 8 kB / 389.3 MB, free: 35.37 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.172e-05/0.2409, allocations: 350.7 kB / 389.7 MB, free: 35.02 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003827/0.2413, allocations: 241 kB / 389.9 MB, free: 34.78 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004052/0.2417, allocations: 311.1 kB / 390.2 MB, free: 34.46 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006567/0.2424, allocations: 427.7 kB / 390.6 MB, free: 34.03 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.2424, allocations: 0 / 390.6 MB, free: 34.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001241/0.2436, allocations: 0.7664 MB / 391.4 MB, free: 33.24 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.2437, allocations: 15.41 kB / 391.4 MB, free: 33.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.2437, allocations: 0 / 391.4 MB, free: 33.23 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008817/0.2446, allocations: 0.5373 MB / 391.9 MB, free: 32.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.2448, allocations: 75.89 kB / 392 MB, free: 32.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001885/0.2467, allocations: 3.467 MB / 395.5 MB, free: 28.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004415/0.2472, allocations: 100 kB / 395.6 MB, free: 28.75 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.2472, allocations: 20 kB / 395.6 MB, free: 28.73 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 (46): * Single equations (assignments): 43 * 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,16)} Notification: Performance of prepare postOptimizeDAE: time 0.0001716/0.2474, allocations: 177.5 kB / 395.8 MB, free: 28.55 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.035e-05/0.2475, allocations: 35.56 kB / 395.8 MB, free: 28.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001238/0.2487, allocations: 0.7326 MB / 396.5 MB, free: 27.76 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.931e-06/0.2487, allocations: 8 kB / 396.5 MB, free: 27.75 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.2487, allocations: 3.938 kB / 396.5 MB, free: 27.75 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.2487, allocations: 7.922 kB / 396.6 MB, free: 27.74 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001712/0.2504, allocations: 1.271 MB / 397.8 MB, free: 26.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.2505, allocations: 0 / 397.8 MB, free: 26.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002415/0.2507, allocations: 63.91 kB / 397.9 MB, free: 26.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007638/0.2515, allocations: 0.5255 MB / 398.4 MB, free: 25.81 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.919e-05/0.2515, allocations: 15.98 kB / 398.4 MB, free: 25.79 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001785/0.2533, allocations: 3.432 MB / 401.9 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.2533, allocations: 0 / 401.9 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001614/0.255, allocations: 1.047 MB / 402.9 MB, free: 21 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001554/0.2551, allocations: 156.7 kB / 403.1 MB, free: 20.82 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.837e-05/0.2552, allocations: 20 kB / 403.1 MB, free: 20.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004182/0.2556, allocations: 103.8 kB / 403.2 MB, free: 20.7 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000201/0.2558, allocations: 92.27 kB / 403.3 MB, free: 20.61 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.2559, allocations: 15.98 kB / 403.3 MB, free: 20.6 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001247/0.256, allocations: 189.9 kB / 403.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.256, allocations: 0 / 403.5 MB, free: 20.41 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004468/0.2565, allocations: 124 kB / 403.6 MB, free: 20.29 MB / 298.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,16)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002015/0.2567, allocations: 136.9 kB / 403.7 MB, free: 20.15 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001257/0.258, allocations: 0.8141 MB / 404.5 MB, free: 19.31 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.258, allocations: 0 / 404.5 MB, free: 19.31 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007047/0.2587, allocations: 0.5566 MB / 405.1 MB, free: 18.73 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.2592, allocations: 60.69 kB / 405.2 MB, free: 18.67 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001586/0.2608, allocations: 1.203 MB / 406.4 MB, free: 17.45 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001854/0.261, allocations: 0.7957 MB / 407.2 MB, free: 16.62 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0001308/0.2611, allocations: 35.28 kB / 407.2 MB, free: 16.58 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.862e-05/0.2612, allocations: 27.42 kB / 407.2 MB, free: 16.55 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2612, allocations: 7.938 kB / 407.2 MB, free: 16.55 MB / 298.7 MB Notification: Performance of Templates: time 0.01116/0.2723, allocations: 9.268 MB / 416.5 MB, free: 7.297 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches