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.001076/0.001076, allocations: 111.2 kB / 17.74 MB, free: 5.344 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.001214/0.001214, allocations: 188.1 kB / 18.67 MB, free: 4.422 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.37/1.37, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 51.91 kB / 352 MB, free: 3.246 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3267/0.3278, allocations: 49.42 MB / 401.4 MB, free: 8.75 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003993/0.3319, allocations: 2.822 MB / 404.2 MB, free: 6.062 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001518/0.3334, allocations: 0.892 MB / 405.1 MB, free: 5.164 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.3336, allocations: 8 kB / 405.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002179/0.3338, allocations: 55.45 kB / 405.2 MB, free: 5.102 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002138/0.334, allocations: 107 kB / 405.3 MB, free: 4.996 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004551/0.3345, allocations: 211.6 kB / 405.5 MB, free: 4.789 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005101/0.335, allocations: 0.5812 MB / 406.1 MB, free: 4.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002094/0.3352, allocations: 102.7 kB / 406.2 MB, free: 4.102 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002664/0.3355, allocations: 251.3 kB / 406.4 MB, free: 3.855 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003142/0.3358, allocations: 275 kB / 406.7 MB, free: 3.586 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.173e-05/0.3359, allocations: 44 kB / 406.7 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001909/0.3361, allocations: 103.9 kB / 406.8 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001192/0.3362, allocations: 111.6 kB / 406.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001806/0.3364, allocations: 215 kB / 407.1 MB, free: 3.121 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005235/0.3369, allocations: 0.5346 MB / 407.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.337, allocations: 0 / 407.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.337, allocations: 0 / 407.7 MB, free: 2.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.824e-06/0.337, allocations: 0 / 407.7 MB, free: 2.59 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.00135/0.3383, allocations: 0.733 MB / 408.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.3384, allocations: 8.031 kB / 408.4 MB, free: 1.797 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.796e-05/0.3385, allocations: 52.38 kB / 408.5 MB, free: 1.746 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.3389, allocations: 306.6 kB / 408.8 MB, free: 1.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.97e-05/0.3389, allocations: 25.38 kB / 408.8 MB, free: 1.383 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.565e-05/0.339, allocations: 40.36 kB / 408.8 MB, free: 1.344 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008011/0.3398, allocations: 438.6 kB / 409.3 MB, free: 0.9062 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.781e-05/0.3399, allocations: 3.906 kB / 409.3 MB, free: 0.9023 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.582e-05/0.3399, allocations: 16 kB / 409.3 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.383e-05/0.3399, allocations: 8 kB / 409.3 MB, free: 0.8789 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000882/0.3408, allocations: 467.6 kB / 409.7 MB, free: 432 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002142/0.343, allocations: 1.258 MB / 411 MB, free: 15.09 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007797/0.3438, allocations: 364.6 kB / 411.3 MB, free: 14.72 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000453/0.3442, allocations: 245.5 kB / 411.6 MB, free: 14.48 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.596e-05/0.3443, allocations: 8.375 kB / 411.6 MB, free: 14.47 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/0.3443, allocations: 38.94 kB / 411.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.665e-06/0.3443, allocations: 0 / 411.6 MB, free: 14.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005104/0.3494, allocations: 2.265 MB / 413.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.258e-05/0.3495, allocations: 55.84 kB / 414 MB, free: 11.95 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002415/0.3497, allocations: 250.6 kB / 414.2 MB, free: 11.71 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.694e-05/0.3498, allocations: 41.69 kB / 414.2 MB, free: 11.66 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001134/0.3499, allocations: 164.6 kB / 414.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001355/0.35, allocations: 173.7 kB / 414.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001671/0.3502, allocations: 106.1 kB / 414.7 MB, free: 11.21 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3504, allocations: 342.8 kB / 415 MB, free: 10.86 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004641/0.3508, allocations: 233 kB / 415.2 MB, free: 10.64 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005012/0.3513, allocations: 303.2 kB / 415.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000787/0.3521, allocations: 415.7 kB / 415.9 MB, free: 9.902 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.3521, allocations: 4 kB / 415.9 MB, free: 9.898 MB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001528/0.3537, allocations: 0.7586 MB / 416.7 MB, free: 9.121 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.706e-05/0.3537, allocations: 4 kB / 416.7 MB, free: 9.117 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3537, allocations: 12.06 kB / 416.7 MB, free: 9.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.3547, allocations: 0.5412 MB / 417.3 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002765/0.355, allocations: 75.89 kB / 417.3 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002722/0.3578, allocations: 3.651 MB / 421 MB, free: 4.527 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.3583, allocations: 71.94 kB / 421.1 MB, free: 4.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.533e-05/0.3583, allocations: 23.98 kB / 421.1 MB, free: 4.434 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.0002131/0.3586, allocations: 166.5 kB / 421.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.972e-05/0.3586, allocations: 31.62 kB / 421.3 MB, free: 4.23 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001523/0.3602, allocations: 0.7325 MB / 422 MB, free: 3.488 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.3602, allocations: 4 kB / 422 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.3602, allocations: 0 / 422 MB, free: 3.484 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.3602, allocations: 4 kB / 422 MB, free: 3.48 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002085/0.3623, allocations: 1.266 MB / 423.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.955e-06/0.3623, allocations: 0 / 423.3 MB, free: 2.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002696/0.3626, allocations: 55.89 kB / 423.3 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000942/0.3635, allocations: 0.5333 MB / 423.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.159e-05/0.3636, allocations: 19.97 kB / 423.9 MB, free: 1.527 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002634/0.3662, allocations: 3.618 MB / 427.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.453e-06/0.3663, allocations: 0 / 427.5 MB, free: 13.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001833/0.3681, allocations: 1.029 MB / 428.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001812/0.3683, allocations: 156.7 kB / 428.7 MB, free: 12.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.624e-05/0.3684, allocations: 20 kB / 428.7 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004578/0.3688, allocations: 71.84 kB / 428.8 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001913/0.369, allocations: 88.28 kB / 428.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.28e-05/0.3691, allocations: 23.98 kB / 428.9 MB, free: 12.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001454/0.3692, allocations: 178 kB / 429.1 MB, free: 12 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3692, allocations: 0 / 429.1 MB, free: 12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004776/0.3697, allocations: 124 kB / 429.2 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.000239/0.37, allocations: 151.5 kB / 429.3 MB, free: 11.72 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001484/0.3715, allocations: 0.8059 MB / 430.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3715, allocations: 4 kB / 430.1 MB, free: 10.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008392/0.3723, allocations: 0.537 MB / 430.7 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005194/0.3729, allocations: 68.34 kB / 430.7 MB, free: 10.26 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001941/0.3748, allocations: 1 MB / 431.7 MB, free: 9.23 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003488/0.3752, allocations: 0.8035 MB / 432.5 MB, free: 8.402 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.307e-05/0.3753, allocations: 35.42 kB / 432.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of SimCode: time 2.5e-07/0.3753, allocations: 0 / 432.6 MB, free: 8.367 MB / 350.1 MB Notification: Performance of Templates: time 0.0109/0.3862, allocations: 8.911 MB / 441.5 MB, free: 15.46 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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