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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001557/0.001557, allocations: 171 kB / 17.4 MB, free: 4.422 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.341/1.341, allocations: 223.3 MB / 241.4 MB, free: 9.961 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008322/0.0008324, allocations: 95.89 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003503/0.0003504, allocations: 11.94 kB / 352.3 MB, free: 14.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2183/0.2187, allocations: 50.41 MB / 402.7 MB, free: 32.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09163/0.3103, allocations: 81.41 MB / 484.2 MB, free: 14.88 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002566/0.3106, allocations: 75.95 kB / 484.2 MB, free: 14.8 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01911/0.3298, allocations: 6.832 MB / 491.1 MB, free: 7.961 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3298, allocations: 0 / 491.1 MB, free: 7.961 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.667e-05/0.3299, allocations: 8 kB / 491.1 MB, free: 7.953 MB / 362.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.001321/0.3312, allocations: 0.6786 MB / 491.8 MB, free: 7.223 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.3312, allocations: 8.031 kB / 491.8 MB, free: 7.215 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001077/0.3313, allocations: 48.47 kB / 491.8 MB, free: 7.168 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003673/0.3317, allocations: 306.5 kB / 492.1 MB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.401e-05/0.3318, allocations: 25.38 kB / 492.1 MB, free: 6.805 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.673e-05/0.3318, allocations: 40.36 kB / 492.2 MB, free: 6.766 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008156/0.3327, allocations: 422.6 kB / 492.6 MB, free: 6.348 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.487e-05/0.3327, allocations: 7.875 kB / 492.6 MB, free: 6.34 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.195e-05/0.3328, allocations: 20 kB / 492.6 MB, free: 6.32 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.132e-05/0.3328, allocations: 8 kB / 492.6 MB, free: 6.312 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009129/0.3337, allocations: 423.7 kB / 493 MB, free: 5.898 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002386/0.3361, allocations: 1.297 MB / 494.3 MB, free: 4.527 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007344/0.3368, allocations: 378.2 kB / 494.7 MB, free: 4.148 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004675/0.3373, allocations: 242.1 kB / 494.9 MB, free: 3.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.576e-05/0.3374, allocations: 16.38 kB / 495 MB, free: 3.895 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.181e-05/0.3374, allocations: 38.94 kB / 495 MB, free: 3.848 MB / 362.7 MB Notification: Performance of pre-optimization done (n=47): time 2.435e-06/0.3374, allocations: 0 / 495 MB, free: 3.848 MB / 362.7 MB Notification: Performance of matching and sorting (n=51): time 0.004885/0.3423, allocations: 2.295 MB / 497.3 MB, free: 1.418 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.3424, allocations: 63.78 kB / 497.3 MB, free: 1.344 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002159/0.3426, allocations: 230.5 kB / 497.6 MB, free: 1.113 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.386e-05/0.3427, allocations: 45.62 kB / 497.6 MB, free: 1.062 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.872e-05/0.3428, allocations: 160.8 kB / 497.8 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001363/0.3429, allocations: 165.7 kB / 497.9 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.045e-05/0.3429, allocations: 12 kB / 497.9 MB, free: 0.7266 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001253/0.3431, allocations: 346.8 kB / 498.3 MB, free: 388 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004577/0.3435, allocations: 217 kB / 498.5 MB, free: 172 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005/0.344, allocations: 283.3 kB / 498.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007568/0.3448, allocations: 403.7 kB / 499.2 MB, free: 15.46 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.3448, allocations: 0 / 499.2 MB, free: 15.46 MB / 378.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001717/0.3465, allocations: 0.7468 MB / 499.9 MB, free: 14.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.437e-05/0.3466, allocations: 8.125 kB / 499.9 MB, free: 14.69 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.817e-05/0.3466, allocations: 7.984 kB / 499.9 MB, free: 14.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009233/0.3475, allocations: 464.8 kB / 0.4887 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000258/0.3478, allocations: 63.91 kB / 0.4887 GB, free: 14.16 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002634/0.3504, allocations: 3.393 MB / 0.492 GB, free: 10.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004684/0.3509, allocations: 104.1 kB / 0.4921 GB, free: 10.37 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.798e-05/0.351, allocations: 23.98 kB / 0.4922 GB, free: 10.35 MB / 378.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): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of prepare postOptimizeDAE: time 0.0002124/0.3512, allocations: 165.6 kB / 0.4923 GB, free: 10.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.841e-05/0.3513, allocations: 31.62 kB / 0.4923 GB, free: 10.14 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001635/0.3529, allocations: 0.7731 MB / 0.4931 GB, free: 9.348 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.06e-06/0.3529, allocations: 4 kB / 0.4931 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.353, allocations: 0 / 0.4931 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.636e-06/0.353, allocations: 7.984 kB / 0.4931 GB, free: 9.336 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001996/0.355, allocations: 1.217 MB / 0.4943 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/0.355, allocations: 3.984 kB / 0.4943 GB, free: 8.047 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002793/0.3553, allocations: 59.91 kB / 0.4944 GB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008642/0.3562, allocations: 430.2 kB / 0.4948 GB, free: 7.559 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.157e-05/0.3562, allocations: 23.97 kB / 0.4948 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002651/0.3589, allocations: 3.359 MB / 0.4981 GB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3589, allocations: 3.984 kB / 0.4981 GB, free: 3.883 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.3607, allocations: 0.9732 MB / 0.499 GB, free: 2.883 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001962/0.3609, allocations: 152.8 kB / 0.4992 GB, free: 2.715 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.281e-05/0.3609, allocations: 19.98 kB / 0.4992 GB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000469/0.3614, allocations: 99.91 kB / 0.4993 GB, free: 2.598 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002234/0.3617, allocations: 112.1 kB / 0.4994 GB, free: 2.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.299e-05/0.3617, allocations: 23.97 kB / 0.4994 GB, free: 2.465 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001731/0.3619, allocations: 166 kB / 0.4996 GB, free: 2.301 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3619, allocations: 4 kB / 0.4996 GB, free: 2.297 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005912/0.3625, allocations: 127.9 kB / 0.4997 GB, free: 2.172 MB / 378.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 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startBackward,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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 16} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003187/0.3628, allocations: 153.7 kB / 0.4998 GB, free: 2.016 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001626/0.3645, allocations: 0.8211 MB / 0.5006 GB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.915e-06/0.3645, allocations: 0 / 0.5006 GB, free: 1.156 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009259/0.3654, allocations: 0.5331 MB / 0.5012 GB, free: 0.5977 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005672/0.366, allocations: 61.77 kB / 0.5012 GB, free: 0.543 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.154/0.52, allocations: 1.147 MB / 0.5023 GB, free: 100.8 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002606/0.5203, allocations: 0.7978 MB / 0.5031 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000177/0.5205, allocations: 32.31 kB / 0.5032 GB, free: 100.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.298e-05/0.5206, allocations: 26.77 kB / 0.5032 GB, free: 100.1 MB / 378.7 MB Notification: Performance of SimCode: time 6.61e-07/0.5206, allocations: 0.9062 kB / 0.5032 GB, free: 100.1 MB / 378.7 MB Notification: Performance of Templates: time 0.01248/0.5331, allocations: 8.532 MB / 0.5115 GB, free: 98.71 MB / 378.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches