Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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_4.0.0_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_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001678/0.001678, allocations: 110.3 kB / 17.06 MB, free: 6.129 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001968/0.001968, allocations: 191 kB / 18 MB, free: 5.207 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.439/1.439, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009991/0.0009991, allocations: 55.91 kB / 351.3 MB, free: 3.27 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2492/0.2503, allocations: 49.42 MB / 400.7 MB, free: 8.773 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004318/0.2546, allocations: 2.823 MB / 403.5 MB, free: 6.066 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.2565, allocations: 0.892 MB / 404.4 MB, free: 5.168 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002741/0.2568, allocations: 4 kB / 404.4 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002526/0.2571, allocations: 67.38 kB / 404.5 MB, free: 5.098 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003653/0.2575, allocations: 103.1 kB / 404.6 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005642/0.2581, allocations: 219.6 kB / 404.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005951/0.2587, allocations: 0.5696 MB / 405.4 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/0.2589, allocations: 110.7 kB / 405.5 MB, free: 4.098 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003474/0.2593, allocations: 243.3 kB / 405.7 MB, free: 3.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/0.2597, allocations: 279 kB / 406 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.934e-05/0.2597, allocations: 48 kB / 406 MB, free: 3.539 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001774/0.2599, allocations: 91.95 kB / 406.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001373/0.2601, allocations: 115.6 kB / 406.2 MB, free: 3.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000219/0.2603, allocations: 219 kB / 406.5 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005839/0.2609, allocations: 0.5385 MB / 407 MB, free: 2.586 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.2609, allocations: 3.938 kB / 407 MB, free: 2.582 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.333e-06/0.2609, allocations: 0 / 407 MB, free: 2.582 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.252e-05/0.2609, allocations: 0 / 407 MB, free: 2.582 MB / 318.1 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.001413/0.2624, allocations: 0.7252 MB / 407.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.26e-05/0.2624, allocations: 16.03 kB / 407.7 MB, free: 1.789 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000118/0.2625, allocations: 44.38 kB / 407.8 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004751/0.263, allocations: 306.6 kB / 408.1 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.567e-05/0.2631, allocations: 29.38 kB / 408.1 MB, free: 1.379 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.869e-05/0.2632, allocations: 32.38 kB / 408.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008978/0.2641, allocations: 442.6 kB / 408.6 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.419e-05/0.2641, allocations: 7.906 kB / 408.6 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.521e-05/0.2641, allocations: 20 kB / 408.6 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.073e-05/0.2642, allocations: 11.94 kB / 408.6 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009576/0.2651, allocations: 459.6 kB / 409.1 MB, free: 428 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002357/0.2675, allocations: 1.25 MB / 410.3 MB, free: 15.1 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008389/0.2683, allocations: 373.4 kB / 410.7 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005247/0.2689, allocations: 249.5 kB / 410.9 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.983e-05/0.2689, allocations: 4.375 kB / 410.9 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.269, allocations: 38.94 kB / 411 MB, free: 14.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.004e-06/0.269, allocations: 3.938 kB / 411 MB, free: 14.42 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005578/0.2746, allocations: 2.261 MB / 413.2 MB, free: 12.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.68e-05/0.2747, allocations: 59.84 kB / 413.3 MB, free: 11.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000327/0.275, allocations: 242.6 kB / 413.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.211e-05/0.2751, allocations: 41.7 kB / 413.6 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001755/0.2753, allocations: 176.6 kB / 413.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.2755, allocations: 173.7 kB / 413.9 MB, free: 11.31 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002351/0.2757, allocations: 98.14 kB / 414 MB, free: 11.2 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000203/0.2759, allocations: 338.8 kB / 414.3 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005496/0.2765, allocations: 233 kB / 414.6 MB, free: 10.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006024/0.2771, allocations: 303.2 kB / 414.9 MB, free: 10.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009054/0.278, allocations: 423.7 kB / 415.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.278, allocations: 0 / 415.3 MB, free: 9.895 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001681/0.2797, allocations: 0.7509 MB / 416 MB, free: 9.125 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.278e-05/0.2797, allocations: 8 kB / 416 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.708e-06/0.2798, allocations: 4 kB / 416 MB, free: 9.113 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/0.2809, allocations: 0.5515 MB / 416.6 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002727/0.2812, allocations: 67.91 kB / 416.7 MB, free: 8.488 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00348/0.2846, allocations: 3.653 MB / 420.3 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004391/0.2851, allocations: 75.91 kB / 420.4 MB, free: 4.453 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-05/0.2852, allocations: 16.09 kB / 420.4 MB, free: 4.438 MB / 334.1 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 (brake.mode,$PRE.brake.mode,brake.locked,brake.startBackward,$PRE.brake.startBackward,brake.startForward,$PRE.brake.startForward,brake.free,clutch.mode,$PRE.clutch.mode,clutch.locked,clutch.startBackward,$PRE.clutch.startBackward,clutch.startForward,$PRE.clutch.startForward,clutch.free) * 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.0002028/0.2854, allocations: 162.4 kB / 420.6 MB, free: 4.27 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-05/0.2855, allocations: 31.62 kB / 420.6 MB, free: 4.238 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001508/0.287, allocations: 0.7286 MB / 421.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.183e-06/0.287, allocations: 8 kB / 421.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.287, allocations: 0 / 421.3 MB, free: 3.492 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.007e-06/0.287, allocations: 3.984 kB / 421.3 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002136/0.2892, allocations: 1.262 MB / 422.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.2892, allocations: 0 / 422.6 MB, free: 2.156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002759/0.2894, allocations: 63.91 kB / 422.7 MB, free: 2.094 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009897/0.2904, allocations: 0.5333 MB / 423.2 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.431e-05/0.2905, allocations: 15.98 kB / 423.2 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002737/0.2933, allocations: 3.617 MB / 426.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2933, allocations: 3.938 kB / 426.8 MB, free: 13.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001884/0.2952, allocations: 1.037 MB / 427.9 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001852/0.2954, allocations: 152.7 kB / 428 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.899e-05/0.2954, allocations: 16 kB / 428 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004399/0.2959, allocations: 79.83 kB / 428.1 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002013/0.2961, allocations: 88.39 kB / 428.2 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.2962, allocations: 23.95 kB / 428.2 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001658/0.2963, allocations: 182 kB / 428.4 MB, free: 12 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.31e-07/0.2963, allocations: 0 / 428.4 MB, free: 12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004869/0.2968, allocations: 124 kB / 428.5 MB, free: 11.88 MB / 350.1 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.0002236/0.2971, allocations: 147.6 kB / 428.7 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001588/0.2987, allocations: 0.8137 MB / 429.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.2987, allocations: 0 / 429.5 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000887/0.2996, allocations: 0.5409 MB / 430 MB, free: 10.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004991/0.3001, allocations: 62.72 kB / 430.1 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.302, allocations: 0.969 MB / 431 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003344/0.3024, allocations: 0.7957 MB / 431.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001255/0.3025, allocations: 27.3 kB / 431.9 MB, free: 8.422 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.951e-05/0.3026, allocations: 35.42 kB / 431.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3026, allocations: 0 / 431.9 MB, free: 8.387 MB / 350.1 MB Notification: Performance of Templates: time 0.01575/0.3184, allocations: 10.07 MB / 442 MB, free: 14.36 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches