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.001514/0.001514, allocations: 119.4 kB / 18.46 MB, free: 4.582 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.001604/0.001604, allocations: 192.3 kB / 21.4 MB, free: 1.648 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.472/1.472, allocations: 225.6 MB / 249.8 MB, free: 3.625 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.001452/0.001452, allocations: 55.91 kB / 366.8 MB, free: 364 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09743/0.09889, allocations: 52.14 MB / 418.9 MB, free: 12.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004101/0.103, allocations: 2.826 MB / 421.8 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001564/0.1046, allocations: 0.8921 MB / 422.7 MB, free: 8.387 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.1047, allocations: 4 kB / 422.7 MB, free: 8.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002199/0.1049, allocations: 55.44 kB / 422.7 MB, free: 8.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002421/0.1051, allocations: 115 kB / 422.8 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004616/0.1056, allocations: 223.6 kB / 423.1 MB, free: 7.996 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005743/0.1062, allocations: 0.5696 MB / 423.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000178/0.1064, allocations: 74.72 kB / 423.7 MB, free: 7.348 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002814/0.1066, allocations: 247.2 kB / 423.9 MB, free: 7.105 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003583/0.107, allocations: 283 kB / 424.2 MB, free: 6.828 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.657e-05/0.1071, allocations: 44 kB / 424.3 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001873/0.1073, allocations: 91.95 kB / 424.3 MB, free: 6.695 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001352/0.1074, allocations: 111.7 kB / 424.5 MB, free: 6.586 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002168/0.1076, allocations: 222.9 kB / 424.7 MB, free: 6.367 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006068/0.1082, allocations: 0.537 MB / 425.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.1082, allocations: 0 / 425.2 MB, free: 5.828 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.1082, allocations: 3.938 kB / 425.2 MB, free: 5.824 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.965e-06/0.1082, allocations: 0 / 425.2 MB, free: 5.824 MB / 350.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.001434/0.1097, allocations: 0.7442 MB / 426 MB, free: 5.027 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.326e-05/0.1097, allocations: 8.031 kB / 426 MB, free: 5.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001025/0.1098, allocations: 48.7 kB / 426 MB, free: 4.973 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004274/0.1102, allocations: 306.7 kB / 426.3 MB, free: 4.629 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.739e-05/0.1103, allocations: 29.31 kB / 426.3 MB, free: 4.602 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.096e-05/0.1104, allocations: 44.36 kB / 426.4 MB, free: 4.559 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008737/0.1112, allocations: 442.6 kB / 426.8 MB, free: 4.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.006e-05/0.1112, allocations: 3.953 kB / 426.8 MB, free: 4.113 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.293e-05/0.1113, allocations: 19.94 kB / 426.8 MB, free: 4.094 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.989e-06/0.1113, allocations: 8 kB / 426.8 MB, free: 4.086 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009839/0.1123, allocations: 459.6 kB / 427.3 MB, free: 3.637 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002287/0.1146, allocations: 1.254 MB / 428.6 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008321/0.1154, allocations: 348.4 kB / 428.9 MB, free: 1.961 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004814/0.1159, allocations: 229.5 kB / 429.1 MB, free: 1.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.533e-05/0.1159, allocations: 4.375 kB / 429.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.172e-05/0.116, allocations: 34.94 kB / 429.2 MB, free: 1.688 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.034e-06/0.116, allocations: 4 kB / 429.2 MB, free: 1.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005517/0.1215, allocations: 2.251 MB / 431.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.69e-05/0.1215, allocations: 63.83 kB / 431.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002757/0.1218, allocations: 250.6 kB / 431.7 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.042e-05/0.1219, allocations: 41.7 kB / 431.8 MB, free: 14.93 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.122, allocations: 168.9 kB / 431.9 MB, free: 14.76 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00016/0.1222, allocations: 182.5 kB / 432.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.1223, allocations: 102.2 kB / 432.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.1225, allocations: 338.8 kB / 432.5 MB, free: 14.13 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005021/0.123, allocations: 237 kB / 432.8 MB, free: 13.9 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005522/0.1236, allocations: 299.2 kB / 433.1 MB, free: 13.59 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008435/0.1244, allocations: 427.6 kB / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.1244, allocations: 0 / 433.5 MB, free: 13.16 MB / 366.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001662/0.1261, allocations: 0.7433 MB / 434.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.1261, allocations: 8 kB / 434.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.1261, allocations: 0 / 434.2 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001136/0.1272, allocations: 0.5549 MB / 434.8 MB, free: 11.82 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002799/0.1275, allocations: 67.91 kB / 434.8 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003288/0.1308, allocations: 3.661 MB / 438.5 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005084/0.1313, allocations: 76.06 kB / 438.6 MB, free: 7.715 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.427e-05/0.1313, allocations: 16 kB / 438.6 MB, free: 7.699 MB / 366.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.000247/0.1316, allocations: 162.4 kB / 438.8 MB, free: 7.531 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.794e-05/0.1317, allocations: 35.77 kB / 438.8 MB, free: 7.496 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001633/0.1333, allocations: 0.713 MB / 439.5 MB, free: 6.773 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.002e-06/0.1333, allocations: 4 kB / 439.5 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.326e-06/0.1333, allocations: 0 / 439.5 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.376e-06/0.1333, allocations: 11.98 kB / 439.5 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002268/0.1356, allocations: 1.246 MB / 440.8 MB, free: 5.441 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.1356, allocations: 3.938 kB / 440.8 MB, free: 5.438 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002781/0.1359, allocations: 63.91 kB / 440.8 MB, free: 5.375 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001032/0.1369, allocations: 0.5255 MB / 441.4 MB, free: 4.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.545e-05/0.137, allocations: 15.98 kB / 441.4 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003101/0.1401, allocations: 3.63 MB / 445 MB, free: 0.8945 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.1401, allocations: 4.031 kB / 445 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2255/0.3655, allocations: 1.023 MB / 446 MB, free: 30.77 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002876/0.3658, allocations: 157.9 kB / 446.2 MB, free: 30.68 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.047e-05/0.3659, allocations: 15.5 kB / 446.2 MB, free: 30.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000488/0.3664, allocations: 69.08 kB / 446.3 MB, free: 30.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002119/0.3666, allocations: 91.84 kB / 446.4 MB, free: 30.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.294e-05/0.3666, allocations: 24.91 kB / 446.4 MB, free: 30.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001592/0.3668, allocations: 179.8 kB / 446.6 MB, free: 30.61 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3668, allocations: 0.7812 kB / 446.6 MB, free: 30.61 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000525/0.3673, allocations: 124.5 kB / 446.7 MB, free: 30.61 MB / 366.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.0002393/0.3676, allocations: 146.5 kB / 446.8 MB, free: 30.52 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.369, allocations: 0.7645 MB / 447.6 MB, free: 30.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.015e-06/0.369, allocations: 0 / 447.6 MB, free: 30.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007676/0.3698, allocations: 0.5168 MB / 448.1 MB, free: 30.08 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004937/0.3703, allocations: 58.38 kB / 448.2 MB, free: 30.08 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.3721, allocations: 1.004 MB / 449.2 MB, free: 29.68 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000223/0.3723, allocations: 0.8022 MB / 450 MB, free: 28.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.216e-05/0.3724, allocations: 36.95 kB / 450 MB, free: 28.96 MB / 366.1 MB Notification: Performance of SimCode: time 4.3e-07/0.3724, allocations: 0 / 450 MB, free: 28.96 MB / 366.1 MB Notification: Performance of Templates: time 0.01363/0.386, allocations: 8.964 MB / 459 MB, free: 27.48 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_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.239598446059972]