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 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009494/0.0009494, allocations: 72.08 kB / 21.69 MB, free: 2.859 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008639/0.0008639, allocations: 142.2 kB / 24.97 MB, free: 8.18 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9271/0.9271, allocations: 173.3 MB / 201.5 MB, free: 8.949 MB / 186.7 MB " [Timeout remaining time 179] 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 1.533e-06/1.533e-06, allocations: 0 / 268.1 MB, free: 6.602 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.782e-05/2.936e-05, allocations: 6.25 kB / 268.1 MB, free: 6.594 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.006825/0.006854, allocations: 2.821 MB / 270.9 MB, free: 3.754 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004605/0.01146, allocations: 0.888 MB / 271.8 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002113/0.01167, allocations: 4 kB / 271.8 MB, free: 2.855 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002067/0.01188, allocations: 59.44 kB / 271.8 MB, free: 2.797 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002553/0.01213, allocations: 111 kB / 271.9 MB, free: 2.688 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000563/0.0127, allocations: 231.4 kB / 272.2 MB, free: 2.461 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005641/0.01326, allocations: 0.5849 MB / 272.8 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001891/0.01345, allocations: 75.05 kB / 272.8 MB, free: 1.797 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004108/0.01386, allocations: 339.4 kB / 273.2 MB, free: 1.465 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003004/0.01416, allocations: 235.4 kB / 273.4 MB, free: 1.234 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 7.915e-05/0.01424, allocations: 47.94 kB / 273.4 MB, free: 1.188 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001653/0.0144, allocations: 87.95 kB / 273.5 MB, free: 1.102 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001098/0.01451, allocations: 119.6 kB / 273.6 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001521/0.01467, allocations: 159.6 kB / 273.8 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005232/0.01519, allocations: 426.7 kB / 274.2 MB, free: 420 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.01519, allocations: 0 / 274.2 MB, free: 420 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.543e-06/0.0152, allocations: 0 / 274.2 MB, free: 420 kB / 250.7 MB Notification: Performance of Transformations before backend: time 6.802e-06/0.0152, allocations: 0 / 274.2 MB, free: 420 kB / 250.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.0009916/0.01619, allocations: 0.7493 MB / 275 MB, free: 15.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.659e-05/0.01623, allocations: 8.922 kB / 275 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.01636, allocations: 76.64 kB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003205/0.01668, allocations: 251.4 kB / 275.3 MB, free: 15.27 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.388e-05/0.01671, allocations: 25.38 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.198e-05/0.01677, allocations: 32.38 kB / 275.3 MB, free: 15.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007969/0.01757, allocations: 375.6 kB / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.717e-05/0.01759, allocations: 4.141 kB / 275.7 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.93e-05/0.01763, allocations: 16.38 kB / 275.7 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.254e-05/0.01764, allocations: 11.94 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004175/0.01806, allocations: 297.6 kB / 276 MB, free: 14.52 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00133/0.01939, allocations: 1.038 MB / 277.1 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000472/0.01986, allocations: 268.7 kB / 277.3 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002123/0.02007, allocations: 167.7 kB / 277.5 MB, free: 12.98 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.734e-05/0.02011, allocations: 12.36 kB / 277.5 MB, free: 12.97 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.02013, allocations: 41.7 kB / 277.5 MB, free: 12.92 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 3.015e-06/0.02013, allocations: 4 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of matching and sorting (n=49): time 0.002553/0.02269, allocations: 1.589 MB / 279.1 MB, free: 11.26 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.047e-05/0.02272, allocations: 55.91 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001899/0.02291, allocations: 292.3 kB / 279.5 MB, free: 10.89 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.531e-05/0.02294, allocations: 41.69 kB / 279.5 MB, free: 10.84 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.073e-05/0.02303, allocations: 219.6 kB / 279.7 MB, free: 10.62 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001075/0.02314, allocations: 178.6 kB / 279.9 MB, free: 10.44 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001487/0.02329, allocations: 99.94 kB / 280 MB, free: 10.33 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.02342, allocations: 0.5157 MB / 280.5 MB, free: 9.805 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002277/0.02364, allocations: 153.2 kB / 280.7 MB, free: 9.656 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002419/0.02389, allocations: 237.1 kB / 280.9 MB, free: 9.398 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003579/0.02424, allocations: 315.9 kB / 281.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.02425, allocations: 0 / 281.2 MB, free: 9.066 MB / 266.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0008497/0.0251, allocations: 0.5978 MB / 281.8 MB, free: 8.449 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.02512, allocations: 4 kB / 281.8 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.02513, allocations: 7.984 kB / 281.8 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007002/0.02583, allocations: 490.8 kB / 282.3 MB, free: 7.945 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001584/0.02599, allocations: 71.91 kB / 282.4 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002448/0.02843, allocations: 4.501 MB / 286.9 MB, free: 3.102 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002174/0.02865, allocations: 47.95 kB / 286.9 MB, free: 3.055 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.358e-05/0.02868, allocations: 19.98 kB / 286.9 MB, free: 3.035 MB / 266.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 (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.0001511/0.02884, allocations: 200.1 kB / 287.1 MB, free: 2.828 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.009e-05/0.02891, allocations: 47.81 kB / 287.2 MB, free: 2.781 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008176/0.02972, allocations: 0.5745 MB / 287.8 MB, free: 2.188 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.02973, allocations: 4 kB / 287.8 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.466e-06/0.02973, allocations: 0 / 287.8 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.284e-06/0.02974, allocations: 7.922 kB / 287.8 MB, free: 2.176 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001184/0.03092, allocations: 0.9978 MB / 288.8 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.03093, allocations: 0 / 288.8 MB, free: 1.125 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000151/0.03108, allocations: 55.91 kB / 288.8 MB, free: 1.07 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005773/0.03165, allocations: 489.6 kB / 289.3 MB, free: 0.582 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.363e-05/0.0317, allocations: 19.97 kB / 289.3 MB, free: 0.5625 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.108/0.1397, allocations: 4.489 MB / 293.8 MB, free: 28.39 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1397, allocations: 1 kB / 293.8 MB, free: 28.39 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001086/0.1407, allocations: 0.8278 MB / 294.6 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001413/0.1409, allocations: 84.86 kB / 294.7 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.17e-05/0.1409, allocations: 15.78 kB / 294.7 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001997/0.1411, allocations: 53.64 kB / 294.8 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001829/0.1413, allocations: 95.14 kB / 294.9 MB, free: 28.17 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.892e-05/0.1413, allocations: 22.56 kB / 294.9 MB, free: 28.17 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001044/0.1415, allocations: 207.2 kB / 295.1 MB, free: 28.04 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1415, allocations: 0 / 295.1 MB, free: 28.04 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003843/0.1418, allocations: 130.4 kB / 295.2 MB, free: 28.04 MB / 266.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 (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.0001982/0.142, allocations: 140.2 kB / 295.4 MB, free: 27.95 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0008803/0.1429, allocations: 0.7643 MB / 296.1 MB, free: 27.59 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.1429, allocations: 0.9688 kB / 296.1 MB, free: 27.59 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000458/0.1434, allocations: 0.5897 MB / 296.7 MB, free: 27.23 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/0.1438, allocations: 81.73 kB / 296.8 MB, free: 27.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001528/0.1453, allocations: 0.8503 MB / 297.7 MB, free: 26.86 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.111e-05/0.1454, allocations: 111 kB / 297.8 MB, free: 26.78 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001039/0.1455, allocations: 33.7 kB / 297.8 MB, free: 26.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.909e-05/0.1455, allocations: 32.66 kB / 297.8 MB, free: 26.77 MB / 266.7 MB Notification: Performance of SimCode: time 1.313e-06/0.1455, allocations: 1.156 kB / 297.8 MB, free: 26.77 MB / 266.7 MB Notification: Performance of Templates: time 0.0114/0.1569, allocations: 8.671 MB / 306.5 MB, free: 23.72 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.971852800110355]