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) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001869/0.001869, allocations: 103.3 kB / 19.61 MB, free: 2.707 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002227/0.002227, allocations: 194.7 kB / 22.76 MB, free: 5.477 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.52/1.52, allocations: 225.6 MB / 251.4 MB, free: 13.44 MB / 206.1 MB [Timeout remaining time 88] 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=500,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=500,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") [Timeout 660] Notification: Performance of FrontEnd - loaded program: time 0.001574/0.001574, allocations: 51.92 kB / 369.2 MB, free: 10.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3037/0.3053, allocations: 52.13 MB / 421.3 MB, free: 15.19 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004835/0.3101, allocations: 2.831 MB / 424.1 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001919/0.312, allocations: 0.8959 MB / 425 MB, free: 11.44 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001832/0.3122, allocations: 8 kB / 425 MB, free: 11.43 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003178/0.3125, allocations: 59.38 kB / 425.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002868/0.3128, allocations: 107.1 kB / 425.2 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005377/0.3134, allocations: 215.6 kB / 425.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007292/0.3141, allocations: 0.5657 MB / 426 MB, free: 10.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003203/0.3144, allocations: 82.7 kB / 426 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000352/0.3148, allocations: 247.2 kB / 426.3 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003961/0.3152, allocations: 286.9 kB / 426.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.178e-05/0.3152, allocations: 44 kB / 426.6 MB, free: 9.84 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003344/0.3156, allocations: 95.94 kB / 426.7 MB, free: 9.746 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001563/0.3157, allocations: 111.7 kB / 426.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002788/0.316, allocations: 215 kB / 427 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007613/0.3168, allocations: 0.546 MB / 427.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.3168, allocations: 0 / 427.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3168, allocations: 0 / 427.6 MB, free: 8.883 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.414e-05/0.3168, allocations: 0 / 427.6 MB, free: 8.883 MB / 334.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.001596/0.3184, allocations: 0.7443 MB / 428.3 MB, free: 8.086 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.875e-05/0.3184, allocations: 8.031 kB / 428.3 MB, free: 8.078 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000181/0.3186, allocations: 40.7 kB / 428.4 MB, free: 8.039 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005418/0.3192, allocations: 318.6 kB / 428.7 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.58e-05/0.3192, allocations: 29.38 kB / 428.7 MB, free: 7.656 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.3193, allocations: 36.38 kB / 428.7 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.3204, allocations: 442.6 kB / 429.2 MB, free: 7.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.105e-05/0.3204, allocations: 7.891 kB / 429.2 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.059e-05/0.3205, allocations: 16 kB / 429.2 MB, free: 7.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.411e-05/0.3205, allocations: 8 kB / 429.2 MB, free: 7.148 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.3215, allocations: 455.7 kB / 429.6 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002682/0.3242, allocations: 1.254 MB / 430.9 MB, free: 5.379 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.3253, allocations: 360.3 kB / 431.2 MB, free: 5.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006068/0.3259, allocations: 233.4 kB / 431.5 MB, free: 4.789 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.941e-05/0.3259, allocations: 4.375 kB / 431.5 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.699e-05/0.3259, allocations: 38.88 kB / 431.5 MB, free: 4.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.895e-06/0.3259, allocations: 4 kB / 431.5 MB, free: 4.734 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.00601/0.3319, allocations: 2.258 MB / 433.8 MB, free: 2.34 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.15e-05/0.332, allocations: 55.84 kB / 433.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003244/0.3323, allocations: 246.6 kB / 434.1 MB, free: 2.031 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.045e-05/0.3324, allocations: 45.69 kB / 434.1 MB, free: 1.98 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002018/0.3326, allocations: 164.9 kB / 434.3 MB, free: 1.812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002999/0.3329, allocations: 174.6 kB / 434.4 MB, free: 1.641 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001997/0.3331, allocations: 102.2 kB / 434.5 MB, free: 1.531 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002947/0.3334, allocations: 350.7 kB / 434.9 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005027/0.3339, allocations: 229 kB / 435.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005897/0.3345, allocations: 303.2 kB / 435.4 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008532/0.3353, allocations: 415.7 kB / 435.8 MB, free: 228 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.3353, allocations: 0 / 435.8 MB, free: 228 kB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001973/0.3373, allocations: 0.7433 MB / 436.6 MB, free: 15.46 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/0.3373, allocations: 11.98 kB / 436.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.106e-06/0.3373, allocations: 0 / 436.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001347/0.3387, allocations: 0.5525 MB / 437.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000289/0.339, allocations: 71.89 kB / 437.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004077/0.3431, allocations: 3.653 MB / 440.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005838/0.3436, allocations: 76.06 kB / 440.9 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.847e-05/0.3437, allocations: 23.98 kB / 440.9 MB, free: 10.76 MB / 350.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.0003362/0.344, allocations: 162.3 kB / 441.1 MB, free: 10.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.513e-05/0.3441, allocations: 39.77 kB / 441.1 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001726/0.3458, allocations: 0.7169 MB / 441.9 MB, free: 9.828 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.661e-06/0.3458, allocations: 8 kB / 441.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.3459, allocations: 0 / 441.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3459, allocations: 0 / 441.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002547/0.3484, allocations: 1.254 MB / 443.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3484, allocations: 0 / 443.1 MB, free: 8.5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000283/0.3487, allocations: 63.89 kB / 443.2 MB, free: 8.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001124/0.3498, allocations: 0.5294 MB / 443.7 MB, free: 7.898 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.7e-05/0.3499, allocations: 15.98 kB / 443.7 MB, free: 7.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003736/0.3536, allocations: 3.618 MB / 447.3 MB, free: 3.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.857e-06/0.3536, allocations: 4 kB / 447.3 MB, free: 3.957 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002026/0.3556, allocations: 1.029 MB / 448.4 MB, free: 2.902 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003011/0.3559, allocations: 156.9 kB / 448.5 MB, free: 2.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.445e-05/0.356, allocations: 16 kB / 448.5 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004758/0.3565, allocations: 71.84 kB / 448.6 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002217/0.3567, allocations: 96.22 kB / 448.7 MB, free: 2.551 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001387/0.3568, allocations: 23.92 kB / 448.7 MB, free: 2.527 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.357, allocations: 178 kB / 448.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.357, allocations: 0 / 448.9 MB, free: 2.348 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000591/0.3576, allocations: 131.9 kB / 449 MB, free: 2.219 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.0002764/0.3579, allocations: 135.8 kB / 449.2 MB, free: 2.074 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.3596, allocations: 0.7744 MB / 449.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3596, allocations: 0 / 449.9 MB, free: 1.277 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009732/0.3606, allocations: 0.5177 MB / 450.5 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006277/0.3612, allocations: 55.66 kB / 450.5 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.3635, allocations: 1.011 MB / 451.5 MB, free: 15.64 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004481/0.3639, allocations: 0.7996 MB / 452.3 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.96e-05/0.364, allocations: 35.42 kB / 452.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of SimCode: time 1.232e-06/0.364, allocations: 0 / 452.4 MB, free: 14.78 MB / 366.1 MB Notification: Performance of Templates: time 0.0142/0.3782, allocations: 8.954 MB / 461.3 MB, free: 5.824 MB / 366.1 MB [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (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) [Timeout 480] 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) [Timeout 660] [Timeout remaining time 660] Reference file matches