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.001409/0.001409, allocations: 108.5 kB / 17.06 MB, free: 5.992 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.001767/0.001767, allocations: 188 kB / 18 MB, free: 5.086 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009632/0.0009632, allocations: 48.02 kB / 351.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2525/0.2535, allocations: 49.43 MB / 400.7 MB, free: 8.766 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003873/0.2574, allocations: 2.816 MB / 403.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00166/0.2591, allocations: 0.8921 MB / 404.4 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002112/0.2593, allocations: 7.938 kB / 404.4 MB, free: 5.176 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002494/0.2596, allocations: 55.44 kB / 404.5 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002712/0.2599, allocations: 111 kB / 404.6 MB, free: 5.012 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004962/0.2604, allocations: 215.6 kB / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005172/0.2609, allocations: 0.5774 MB / 405.4 MB, free: 4.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002042/0.2611, allocations: 106.7 kB / 405.5 MB, free: 4.113 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002723/0.2614, allocations: 247.3 kB / 405.7 MB, free: 3.871 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000303/0.2617, allocations: 275 kB / 406 MB, free: 3.602 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.615e-05/0.2618, allocations: 44 kB / 406 MB, free: 3.559 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001649/0.262, allocations: 95.94 kB / 406.1 MB, free: 3.465 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001329/0.2621, allocations: 119.6 kB / 406.2 MB, free: 3.348 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002028/0.2623, allocations: 215 kB / 406.5 MB, free: 3.137 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000567/0.2629, allocations: 0.5307 MB / 407 MB, free: 2.609 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.011e-06/0.2629, allocations: 4 kB / 407 MB, free: 2.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.512e-06/0.2629, allocations: 0 / 407 MB, free: 2.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.185e-06/0.2629, allocations: 7.938 kB / 407 MB, free: 2.598 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.001427/0.2644, allocations: 0.733 MB / 407.7 MB, free: 1.812 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.2644, allocations: 8.031 kB / 407.7 MB, free: 1.805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.2645, allocations: 52.31 kB / 407.8 MB, free: 1.754 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004231/0.265, allocations: 306.6 kB / 408.1 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.757e-05/0.265, allocations: 25.38 kB / 408.1 MB, free: 1.391 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.226e-05/0.2651, allocations: 36.38 kB / 408.2 MB, free: 1.355 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008724/0.266, allocations: 446.6 kB / 408.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.133e-05/0.266, allocations: 7.906 kB / 408.6 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.767e-05/0.2661, allocations: 12 kB / 408.6 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.548e-05/0.2661, allocations: 8 kB / 408.6 MB, free: 0.8828 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009517/0.267, allocations: 459.7 kB / 409.1 MB, free: 444 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002228/0.2693, allocations: 1.254 MB / 410.3 MB, free: 15.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008332/0.2701, allocations: 369.3 kB / 410.7 MB, free: 14.74 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004679/0.2706, allocations: 245.5 kB / 410.9 MB, free: 14.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.056e-05/0.2707, allocations: 8.375 kB / 410.9 MB, free: 14.49 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.176e-05/0.2707, allocations: 34.94 kB / 411 MB, free: 14.45 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 3.156e-06/0.2707, allocations: 0 / 411 MB, free: 14.45 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005383/0.2761, allocations: 2.269 MB / 413.2 MB, free: 12.04 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.844e-05/0.2761, allocations: 55.84 kB / 413.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002537/0.2764, allocations: 250.6 kB / 413.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.497e-05/0.2765, allocations: 45.7 kB / 413.6 MB, free: 11.67 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.2766, allocations: 168.6 kB / 413.7 MB, free: 11.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001326/0.2767, allocations: 169.7 kB / 413.9 MB, free: 11.33 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001685/0.2769, allocations: 102.1 kB / 414 MB, free: 11.22 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001186/0.277, allocations: 338.8 kB / 414.3 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004809/0.2775, allocations: 237 kB / 414.6 MB, free: 10.65 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005166/0.278, allocations: 299.2 kB / 414.9 MB, free: 10.34 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007885/0.2788, allocations: 419.7 kB / 415.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.2788, allocations: 0 / 415.3 MB, free: 9.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.00158/0.2804, allocations: 0.7587 MB / 416 MB, free: 9.141 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.294e-05/0.2805, allocations: 6.656 kB / 416 MB, free: 9.137 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.2805, allocations: 4 kB / 416 MB, free: 9.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001077/0.2816, allocations: 0.5413 MB / 416.6 MB, free: 8.582 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002894/0.2819, allocations: 79.83 kB / 416.7 MB, free: 8.504 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002869/0.2847, allocations: 3.649 MB / 420.3 MB, free: 4.547 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005188/0.2853, allocations: 71.94 kB / 420.4 MB, free: 4.477 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.524e-05/0.2853, allocations: 24.09 kB / 420.4 MB, free: 4.453 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.0002239/0.2856, allocations: 162.4 kB / 420.6 MB, free: 4.285 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.254e-05/0.2857, allocations: 31.62 kB / 420.6 MB, free: 4.254 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001541/0.2872, allocations: 0.7324 MB / 421.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.993e-06/0.2872, allocations: 7.984 kB / 421.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.956e-06/0.2873, allocations: 0 / 421.3 MB, free: 3.504 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.344e-06/0.2873, allocations: 3.984 kB / 421.3 MB, free: 3.5 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002095/0.2894, allocations: 1.27 MB / 422.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.2894, allocations: 0 / 422.6 MB, free: 2.16 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002768/0.2897, allocations: 51.97 kB / 422.7 MB, free: 2.109 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009527/0.2906, allocations: 0.5371 MB / 423.2 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.225e-05/0.2907, allocations: 15.98 kB / 423.2 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002753/0.2934, allocations: 3.624 MB / 426.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.2935, allocations: 0 / 426.8 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001949/0.2954, allocations: 1.037 MB / 427.9 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001861/0.2956, allocations: 152.7 kB / 428 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.259e-05/0.2957, allocations: 12 kB / 428 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004919/0.2962, allocations: 83.83 kB / 428.1 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002027/0.2964, allocations: 84.3 kB / 428.2 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.611e-05/0.2965, allocations: 23.97 kB / 428.2 MB, free: 12.19 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001639/0.2966, allocations: 174 kB / 428.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2966, allocations: 0 / 428.4 MB, free: 12.02 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005164/0.2972, allocations: 132 kB / 428.5 MB, free: 11.89 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.0002666/0.2974, allocations: 146.3 kB / 428.7 MB, free: 11.74 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001594/0.299, allocations: 0.8137 MB / 429.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.2991, allocations: 0 / 429.5 MB, free: 10.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008969/0.3, allocations: 0.5332 MB / 430 MB, free: 10.34 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005236/0.3005, allocations: 60.53 kB / 430.1 MB, free: 10.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001899/0.3024, allocations: 0.9691 MB / 431 MB, free: 9.289 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000321/0.3027, allocations: 0.8035 MB / 431.8 MB, free: 8.461 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001318/0.3029, allocations: 31.28 kB / 431.9 MB, free: 8.434 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.149e-05/0.303, allocations: 31.42 kB / 431.9 MB, free: 8.402 MB / 350.1 MB Notification: Performance of SimCode: time 2.6e-07/0.303, allocations: 4 kB / 431.9 MB, free: 8.398 MB / 350.1 MB Notification: Performance of Templates: time 0.01495/0.3179, allocations: 10.06 MB / 442 MB, free: 14.38 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