Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 91.61 kB / 22.19 MB, free: 2.379 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001131/0.001131, allocations: 162 kB / 25.45 MB, free: 8.855 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8665/0.8665, allocations: 158.6 MB / 187.2 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.164e-06/2.164e-06, allocations: 0 / 299.7 MB, free: 3.02 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.768e-05/3.985e-05, allocations: 6.219 kB / 299.7 MB, free: 3.012 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004671/0.004711, allocations: 2.636 MB / 302.3 MB, free: 364 kB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.1266/0.1313, allocations: 0.891 MB / 303.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002063/0.1315, allocations: 10.09 kB / 303.2 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000208/0.1317, allocations: 61.44 kB / 303.3 MB, free: 13.74 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002007/0.1319, allocations: 112.6 kB / 303.4 MB, free: 13.72 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004332/0.1324, allocations: 225.8 kB / 303.6 MB, free: 13.71 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004072/0.1328, allocations: 0.584 MB / 304.2 MB, free: 13.6 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001653/0.1329, allocations: 76.66 kB / 304.3 MB, free: 13.59 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003205/0.1333, allocations: 349.6 kB / 304.6 MB, free: 13.56 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002659/0.1335, allocations: 226.9 kB / 304.8 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 6.472e-05/0.1336, allocations: 44.75 kB / 304.9 MB, free: 13.54 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001424/0.1337, allocations: 92.53 kB / 305 MB, free: 13.53 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001019/0.1338, allocations: 118.9 kB / 305.1 MB, free: 13.46 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001193/0.1339, allocations: 157.4 kB / 305.2 MB, free: 13.4 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005988/0.1345, allocations: 0.5798 MB / 305.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1346, allocations: 1.625 kB / 305.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1346, allocations: 0 / 305.8 MB, free: 13.2 MB / 282.7 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1346, allocations: 0.9062 kB / 305.8 MB, free: 13.2 MB / 282.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.000961/0.1355, allocations: 0.6689 MB / 306.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.613e-05/0.1356, allocations: 14.8 kB / 306.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.457e-05/0.1356, allocations: 50.38 kB / 306.6 MB, free: 12.71 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000318/0.136, allocations: 250 kB / 306.8 MB, free: 12.52 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.535e-05/0.136, allocations: 24.62 kB / 306.8 MB, free: 12.51 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.611e-05/0.136, allocations: 38.42 kB / 306.9 MB, free: 12.49 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006062/0.1366, allocations: 438.4 kB / 307.3 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.72e-05/0.1367, allocations: 1.766 kB / 307.3 MB, free: 12.33 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.846e-05/0.1367, allocations: 18.69 kB / 307.3 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.001e-05/0.1367, allocations: 12.84 kB / 307.3 MB, free: 12.31 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006267/0.1373, allocations: 459 kB / 307.8 MB, free: 12.18 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001425/0.1388, allocations: 1.061 MB / 308.8 MB, free: 11.58 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005564/0.1393, allocations: 341.4 kB / 309.2 MB, free: 11.45 MB / 282.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.1396, allocations: 227.8 kB / 309.4 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.115e-05/0.1396, allocations: 5.938 kB / 309.4 MB, free: 11.37 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.497e-05/0.1397, allocations: 41.69 kB / 309.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of pre-optimization done (n=45): time 2.605e-06/0.1397, allocations: 4 kB / 309.4 MB, free: 11.32 MB / 282.7 MB Notification: Performance of matching and sorting (n=49): time 0.003109/0.1428, allocations: 1.947 MB / 311.4 MB, free: 10.47 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.747e-05/0.1428, allocations: 60.81 kB / 311.4 MB, free: 10.41 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001695/0.143, allocations: 245.3 kB / 311.7 MB, free: 10.26 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 3.374e-05/0.143, allocations: 50.39 kB / 311.7 MB, free: 10.21 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.74e-05/0.1431, allocations: 169.4 kB / 311.9 MB, free: 10.07 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.04e-05/0.1431, allocations: 176.1 kB / 312.1 MB, free: 9.938 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001149/0.1433, allocations: 102 kB / 312.2 MB, free: 9.883 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 5.326e-05/0.1433, allocations: 346.9 kB / 312.5 MB, free: 9.555 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003074/0.1436, allocations: 234.5 kB / 312.7 MB, free: 9.477 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003389/0.144, allocations: 299.3 kB / 313 MB, free: 9.336 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005142/0.1445, allocations: 416.3 kB / 313.4 MB, free: 9.148 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.1445, allocations: 1.219 kB / 313.4 MB, free: 9.148 MB / 282.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001006/0.1455, allocations: 0.7487 MB / 314.2 MB, free: 8.844 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.901e-05/0.1455, allocations: 5.5 kB / 314.2 MB, free: 8.844 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.832e-06/0.1455, allocations: 1.375 kB / 314.2 MB, free: 8.844 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007963/0.1463, allocations: 0.5478 MB / 314.7 MB, free: 8.691 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001876/0.1465, allocations: 79.23 kB / 314.8 MB, free: 8.68 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001577/0.1481, allocations: 3.401 MB / 318.2 MB, free: 5.52 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003106/0.1484, allocations: 76.19 kB / 318.3 MB, free: 5.508 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.1484, allocations: 20.12 kB / 318.3 MB, free: 5.504 MB / 282.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.0001945/0.1486, allocations: 172.2 kB / 318.5 MB, free: 5.348 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.983e-05/0.1487, allocations: 36.69 kB / 318.5 MB, free: 5.328 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009851/0.1496, allocations: 0.7095 MB / 319.2 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.55e-06/0.1496, allocations: 5.625 kB / 319.2 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.128e-06/0.1496, allocations: 1.703 kB / 319.2 MB, free: 5.027 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.1497, allocations: 10.05 kB / 319.2 MB, free: 5.02 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001422/0.1511, allocations: 1.104 MB / 320.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.1511, allocations: 1.125 kB / 320.4 MB, free: 4.461 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001605/0.1512, allocations: 55.84 kB / 320.4 MB, free: 4.457 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006812/0.1519, allocations: 0.5302 MB / 320.9 MB, free: 4.305 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.602e-05/0.152, allocations: 18.31 kB / 321 MB, free: 4.297 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001392/0.1534, allocations: 3.373 MB / 324.3 MB, free: 1.168 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1534, allocations: 1.625 kB / 324.3 MB, free: 1.168 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00116/0.1545, allocations: 1.019 MB / 325.3 MB, free: 0.6875 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001451/0.1547, allocations: 82.11 kB / 325.4 MB, free: 0.6484 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.404e-05/0.1547, allocations: 20.5 kB / 325.4 MB, free: 0.6367 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002315/0.1549, allocations: 72.31 kB / 325.5 MB, free: 0.625 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001586/0.1551, allocations: 91.34 kB / 325.6 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.572e-05/0.1551, allocations: 20.09 kB / 325.6 MB, free: 0.6055 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0001137/0.1552, allocations: 175.4 kB / 325.8 MB, free: 0.5 MB / 282.7 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1552, allocations: 1.062 kB / 325.8 MB, free: 0.5 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004407/0.1557, allocations: 121.9 kB / 325.9 MB, free: 496 kB / 282.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.1559, allocations: 148.6 kB / 326.1 MB, free: 380 kB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001004/0.1569, allocations: 0.7688 MB / 326.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.1569, allocations: 0 / 326.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005232/0.1574, allocations: 0.5134 MB / 327.3 MB, free: 15.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003561/0.1578, allocations: 69.44 kB / 327.4 MB, free: 15.53 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.1592, allocations: 0.904 MB / 328.3 MB, free: 14.9 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001703/0.1594, allocations: 196.8 kB / 328.5 MB, free: 14.76 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.187e-05/0.1594, allocations: 35.98 kB / 328.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of SimCode: time 1.333e-06/0.1594, allocations: 1.219 kB / 328.5 MB, free: 14.75 MB / 298.7 MB Notification: Performance of Templates: time 0.008677/0.1681, allocations: 9.071 MB / 337.6 MB, free: 7.359 MB / 298.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.927976677194238]