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.001724/0.001724, allocations: 117 kB / 18.41 MB, free: 4.664 MB / 14.72 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.001746/0.001746, allocations: 190.9 kB / 21.35 MB, free: 1.734 MB / 14.72 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 1.451/1.451, allocations: 222.9 MB / 247 MB, free: 4.352 MB / 190.1 MB " [Timeout remaining time 178] 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.001559/0.001559, allocations: 43.92 kB / 358.7 MB, free: 8.672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1117, allocations: 49.43 MB / 408.1 MB, free: 7.188 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004425/0.1162, allocations: 2.812 MB / 410.9 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001808/0.118, allocations: 0.8842 MB / 411.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001946/0.1182, allocations: 8 kB / 411.8 MB, free: 3.469 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002551/0.1185, allocations: 67.38 kB / 411.9 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002648/0.1188, allocations: 99.11 kB / 412 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005495/0.1194, allocations: 215.6 kB / 412.2 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006467/0.12, allocations: 0.5774 MB / 412.7 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002367/0.1203, allocations: 102.7 kB / 412.8 MB, free: 2.41 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003315/0.1206, allocations: 251.2 kB / 413.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003758/0.121, allocations: 271.1 kB / 413.4 MB, free: 1.898 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.865e-05/0.1211, allocations: 48 kB / 413.4 MB, free: 1.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002018/0.1213, allocations: 99.88 kB / 413.5 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001537/0.1215, allocations: 107.7 kB / 413.6 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002513/0.1217, allocations: 218.9 kB / 413.8 MB, free: 1.434 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006878/0.1224, allocations: 0.537 MB / 414.4 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.1224, allocations: 0 / 414.4 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1224, allocations: 0 / 414.4 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.746e-06/0.1225, allocations: 0 / 414.4 MB, free: 0.8945 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.001525/0.124, allocations: 0.7462 MB / 415.1 MB, free: 100 kB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.342e-05/0.124, allocations: 8.031 kB / 415.1 MB, free: 92 kB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001062/0.1242, allocations: 40.7 kB / 415.1 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005081/0.1247, allocations: 322.6 kB / 415.5 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.419e-05/0.1247, allocations: 29.36 kB / 415.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.055e-05/0.1248, allocations: 36.38 kB / 415.5 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009012/0.1257, allocations: 446.6 kB / 416 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.248e-05/0.1258, allocations: 3.953 kB / 416 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.525e-05/0.1258, allocations: 16 kB / 416 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.1258, allocations: 8 kB / 416 MB, free: 15.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.1268, allocations: 459.7 kB / 416.4 MB, free: 14.71 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002484/0.1293, allocations: 1.266 MB / 417.7 MB, free: 13.37 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008611/0.1302, allocations: 369.7 kB / 418.1 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005/0.1307, allocations: 249.4 kB / 418.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.792e-05/0.1308, allocations: 4.375 kB / 418.3 MB, free: 12.75 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.198e-05/0.1308, allocations: 42.94 kB / 418.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.534e-06/0.1308, allocations: 0 / 418.4 MB, free: 12.7 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005742/0.1366, allocations: 2.262 MB / 420.6 MB, free: 10.3 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.546e-05/0.1367, allocations: 55.84 kB / 420.7 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003114/0.137, allocations: 246.6 kB / 420.9 MB, free: 9.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.749e-05/0.1371, allocations: 45.69 kB / 421 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001488/0.1372, allocations: 176.9 kB / 421.1 MB, free: 9.762 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001574/0.1374, allocations: 166.6 kB / 421.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001998/0.1376, allocations: 106.2 kB / 421.4 MB, free: 9.484 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001817/0.1378, allocations: 342.8 kB / 421.7 MB, free: 9.141 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005134/0.1383, allocations: 229 kB / 422 MB, free: 8.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005609/0.1389, allocations: 307.1 kB / 422.3 MB, free: 8.598 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000843/0.1397, allocations: 419.7 kB / 422.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1397, allocations: 3.938 kB / 422.7 MB, free: 8.172 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001743/0.1415, allocations: 0.7588 MB / 423.4 MB, free: 7.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.351e-05/0.1415, allocations: 4 kB / 423.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.336e-06/0.1415, allocations: 128 / 423.4 MB, free: 7.391 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001189/0.1427, allocations: 0.5511 MB / 424 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002867/0.143, allocations: 71.89 kB / 424.1 MB, free: 6.762 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003475/0.1465, allocations: 3.653 MB / 427.7 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005445/0.1471, allocations: 79.92 kB / 427.8 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5e-05/0.1472, allocations: 16 kB / 427.8 MB, free: 2.707 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.0002634/0.1474, allocations: 170.3 kB / 428 MB, free: 2.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001025/0.1475, allocations: 43.75 kB / 428 MB, free: 2.488 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001667/0.1492, allocations: 0.7209 MB / 428.7 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.1492, allocations: 7.938 kB / 428.7 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.22e-06/0.1492, allocations: 3.984 kB / 428.7 MB, free: 1.742 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.564e-06/0.1493, allocations: 3.984 kB / 428.7 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002321/0.1516, allocations: 1.254 MB / 430 MB, free: 428 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.561e-06/0.1516, allocations: 3.984 kB / 430 MB, free: 424 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002897/0.1519, allocations: 59.91 kB / 430.1 MB, free: 364 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.1943/0.3462, allocations: 0.5189 MB / 430.6 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001108/0.3463, allocations: 20.8 kB / 430.6 MB, free: 23.16 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002238/0.3486, allocations: 3.624 MB / 434.2 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3486, allocations: 0 / 434.2 MB, free: 19.99 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001845/0.3504, allocations: 1.03 MB / 435.3 MB, free: 19.83 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002372/0.3507, allocations: 160.5 kB / 435.4 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.976e-05/0.3508, allocations: 16.62 kB / 435.4 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004529/0.3513, allocations: 77.56 kB / 435.5 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002313/0.3515, allocations: 89.22 kB / 435.6 MB, free: 19.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.64e-05/0.3515, allocations: 20.17 kB / 435.6 MB, free: 19.74 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.3517, allocations: 176.4 kB / 435.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.193e-06/0.3517, allocations: 3.594 kB / 435.8 MB, free: 19.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005291/0.3523, allocations: 127.3 kB / 435.9 MB, free: 19.66 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.0002567/0.3525, allocations: 139.9 kB / 436 MB, free: 19.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001524/0.3541, allocations: 0.8047 MB / 436.9 MB, free: 19.35 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.06e-06/0.3541, allocations: 1.906 kB / 436.9 MB, free: 19.35 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000844/0.3549, allocations: 0.542 MB / 437.4 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005615/0.3555, allocations: 64.05 kB / 437.5 MB, free: 19.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002292/0.3578, allocations: 1.009 MB / 438.5 MB, free: 18.68 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.3582, allocations: 0.7988 MB / 439.3 MB, free: 17.98 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000114/0.3583, allocations: 34.88 kB / 439.3 MB, free: 17.97 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3583, allocations: 0 / 439.3 MB, free: 17.97 MB / 350.1 MB Notification: Performance of Templates: time 0.01582/0.3741, allocations: 8.919 MB / 448.2 MB, free: 15.99 MB / 350.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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 [Calling sys.exit(0), Time elapsed: 9.600701626040973]