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.001315/0.001315, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 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.001374/0.001374, allocations: 161.4 kB / 24.49 MB, free: 3.461 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.393/1.393, allocations: 173.4 MB / 201.1 MB, free: 12.68 MB / 190.1 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 0.001551/0.001551, allocations: 46.52 kB / 319.4 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09341/0.09496, allocations: 52.16 MB / 371.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004603/0.09956, allocations: 2.658 MB / 374.2 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002069/0.1016, allocations: 0.8415 MB / 375.1 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003197/0.102, allocations: 7.938 kB / 375.1 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002952/0.1022, allocations: 63.38 kB / 375.1 MB, free: 3.75 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003834/0.1026, allocations: 111.1 kB / 375.2 MB, free: 3.641 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006409/0.1033, allocations: 227.6 kB / 375.5 MB, free: 3.418 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007722/0.104, allocations: 0.5656 MB / 376 MB, free: 2.852 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.1043, allocations: 71.05 kB / 376.1 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000427/0.1047, allocations: 259.2 kB / 376.3 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004836/0.1052, allocations: 247 kB / 376.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001093/0.1053, allocations: 44 kB / 376.6 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002303/0.1055, allocations: 99.94 kB / 376.7 MB, free: 2.141 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001539/0.1057, allocations: 115.6 kB / 376.8 MB, free: 2.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002255/0.1059, allocations: 187.2 kB / 377 MB, free: 1.844 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006718/0.1066, allocations: 0.5447 MB / 377.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1066, allocations: 0 / 377.6 MB, free: 1.297 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.1066, allocations: 4 kB / 377.6 MB, free: 1.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.403e-06/0.1066, allocations: 0 / 377.6 MB, free: 1.293 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.001441/0.108, allocations: 0.6612 MB / 378.2 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.617e-05/0.108, allocations: 12.92 kB / 378.2 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.944e-05/0.1081, allocations: 44.7 kB / 378.3 MB, free: 0.5469 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004555/0.1086, allocations: 253.3 kB / 378.5 MB, free: 284 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.981e-05/0.1086, allocations: 29.38 kB / 378.6 MB, free: 256 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.378e-05/0.1087, allocations: 32.38 kB / 378.6 MB, free: 224 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008952/0.1096, allocations: 450.6 kB / 379 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.214e-05/0.1096, allocations: 3.953 kB / 379 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.1097, allocations: 16 kB / 379.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.315e-05/0.1097, allocations: 8 kB / 379.1 MB, free: 15.74 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000986/0.1107, allocations: 455.7 kB / 379.5 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002234/0.1129, allocations: 1.047 MB / 380.6 MB, free: 14.21 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008428/0.1138, allocations: 348.2 kB / 380.9 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004833/0.1142, allocations: 229.2 kB / 381.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.028e-05/0.1143, allocations: 8.312 kB / 381.1 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.827e-05/0.1143, allocations: 38.94 kB / 381.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.733e-06/0.1143, allocations: 0 / 381.2 MB, free: 13.57 MB / 350.1 MB Notification: Performance of matching and sorting (n=49): time 0.005546/0.1199, allocations: 1.962 MB / 383.1 MB, free: 11.55 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.233e-05/0.1199, allocations: 63.84 kB / 383.2 MB, free: 11.47 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002878/0.1202, allocations: 241.8 kB / 383.4 MB, free: 11.22 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.201e-05/0.1203, allocations: 45.7 kB / 383.5 MB, free: 11.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001357/0.1204, allocations: 172.9 kB / 383.6 MB, free: 11 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001651/0.1206, allocations: 178.6 kB / 383.8 MB, free: 10.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.1207, allocations: 102.3 kB / 383.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001705/0.1209, allocations: 338.8 kB / 384.2 MB, free: 10.38 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000534/0.1215, allocations: 241.2 kB / 384.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005765/0.122, allocations: 304 kB / 384.8 MB, free: 9.824 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008933/0.1229, allocations: 418.9 kB / 385.2 MB, free: 9.398 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.923e-06/0.1229, allocations: 4 kB / 385.2 MB, free: 9.395 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001759/0.1247, allocations: 0.7495 MB / 385.9 MB, free: 8.633 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.751e-05/0.1247, allocations: 4 kB / 385.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.524e-06/0.1247, allocations: 0 / 385.9 MB, free: 8.629 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001184/0.1259, allocations: 0.5491 MB / 386.5 MB, free: 8.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003015/0.1262, allocations: 71.91 kB / 386.6 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003266/0.1295, allocations: 3.4 MB / 390 MB, free: 4.375 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005231/0.13, allocations: 75.84 kB / 390 MB, free: 4.301 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.986e-05/0.13, allocations: 16.22 kB / 390.1 MB, free: 4.285 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.0002418/0.1303, allocations: 173.6 kB / 390.2 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.837e-05/0.1304, allocations: 35.77 kB / 390.3 MB, free: 4.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001687/0.1321, allocations: 0.7069 MB / 391 MB, free: 3.344 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.778e-06/0.1321, allocations: 11.94 kB / 391 MB, free: 3.332 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.875e-06/0.1321, allocations: 7.938 kB / 391 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.714e-06/0.1321, allocations: 3.984 kB / 391 MB, free: 3.32 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002258/0.1343, allocations: 1.096 MB / 392.1 MB, free: 2.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.046e-06/0.1343, allocations: 4 kB / 392.1 MB, free: 2.176 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002986/0.1346, allocations: 63.89 kB / 392.2 MB, free: 2.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001091/0.1357, allocations: 0.5177 MB / 392.7 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.114e-05/0.1358, allocations: 19.97 kB / 392.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003097/0.1389, allocations: 3.377 MB / 396.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.1389, allocations: 0 / 396.1 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.141, allocations: 1.031 MB / 397.1 MB, free: 12.9 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002212/0.1412, allocations: 79.73 kB / 397.2 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.133e-05/0.1413, allocations: 16 kB / 397.2 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005044/0.1418, allocations: 71.89 kB / 397.3 MB, free: 12.74 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002171/0.142, allocations: 96.27 kB / 397.4 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.041e-05/0.142, allocations: 27.97 kB / 397.4 MB, free: 12.62 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001831/0.1422, allocations: 173.2 kB / 397.6 MB, free: 12.45 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1422, allocations: 3.938 kB / 397.6 MB, free: 12.44 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005337/0.1428, allocations: 127.9 kB / 397.7 MB, free: 12.32 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.0002473/0.143, allocations: 142.7 kB / 397.8 MB, free: 12.17 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.1447, allocations: 0.7675 MB / 398.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1447, allocations: 0 / 398.6 MB, free: 11.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00097/0.1456, allocations: 0.5262 MB / 399.1 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.1462, allocations: 64.2 kB / 399.2 MB, free: 10.77 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002111/0.1483, allocations: 0.969 MB / 400.1 MB, free: 9.766 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002101/0.1485, allocations: 193.8 kB / 400.3 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001316/0.1486, allocations: 26.98 kB / 400.4 MB, free: 9.535 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.614e-05/0.1487, allocations: 36.48 kB / 400.4 MB, free: 9.5 MB / 366.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1487, allocations: 4 kB / 400.4 MB, free: 9.496 MB / 366.1 MB Notification: Performance of Templates: time 0.01611/0.1648, allocations: 8.582 MB / 409 MB, free: 1.004 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 -s ida -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 [Calling sys.exit(0), Time elapsed: 4.5713267519604415]