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.001358/0.001358, allocations: 108.6 kB / 21.18 MB, free: 0.7617 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.00146/0.00146, allocations: 189.2 kB / 24.48 MB, free: 4.164 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.457/1.457, allocations: 225.6 MB / 253.3 MB, free: 13.03 MB / 206.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.001566/0.001566, allocations: 47.94 kB / 371.7 MB, free: 9.348 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2877/0.2892, allocations: 52.19 MB / 423.9 MB, free: 14.67 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.006446/0.2957, allocations: 2.847 MB / 426.7 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00262/0.2983, allocations: 0.896 MB / 427.6 MB, free: 10.9 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003532/0.2987, allocations: 7.938 kB / 427.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003426/0.299, allocations: 59.44 kB / 427.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005029/0.2995, allocations: 111 kB / 427.8 MB, free: 10.73 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008559/0.3004, allocations: 219.6 kB / 428 MB, free: 10.51 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0011/0.3015, allocations: 0.5733 MB / 428.6 MB, free: 9.938 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000306/0.3018, allocations: 74.98 kB / 428.7 MB, free: 9.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006224/0.3024, allocations: 247.3 kB / 428.9 MB, free: 9.617 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006802/0.3031, allocations: 287 kB / 429.2 MB, free: 9.336 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001629/0.3032, allocations: 47.94 kB / 429.2 MB, free: 9.289 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003236/0.3036, allocations: 95.94 kB / 429.3 MB, free: 9.195 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002161/0.3038, allocations: 115.6 kB / 429.4 MB, free: 9.082 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004147/0.3042, allocations: 223 kB / 429.6 MB, free: 8.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009811/0.3052, allocations: 0.5266 MB / 430.2 MB, free: 8.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.3052, allocations: 4 kB / 430.2 MB, free: 8.336 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.3052, allocations: 4 kB / 430.2 MB, free: 8.332 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.063e-05/0.3052, allocations: 3.938 kB / 430.2 MB, free: 8.328 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.002146/0.3073, allocations: 0.665 MB / 430.9 MB, free: 7.633 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.3074, allocations: 12.03 kB / 430.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001765/0.3076, allocations: 44.69 kB / 430.9 MB, free: 7.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007305/0.3083, allocations: 256.8 kB / 431.2 MB, free: 7.297 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.596e-05/0.3084, allocations: 25.38 kB / 431.2 MB, free: 7.273 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.3085, allocations: 36.38 kB / 431.2 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.3098, allocations: 438.6 kB / 431.6 MB, free: 6.805 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.924e-05/0.3098, allocations: 11.94 kB / 431.7 MB, free: 6.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.086e-05/0.3099, allocations: 15.94 kB / 431.7 MB, free: 6.777 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.476e-05/0.3099, allocations: 8 kB / 431.7 MB, free: 6.77 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001443/0.3113, allocations: 459.6 kB / 432.1 MB, free: 6.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003388/0.3147, allocations: 1.198 MB / 433.3 MB, free: 5.062 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001097/0.3158, allocations: 350.7 kB / 433.7 MB, free: 4.711 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007037/0.3165, allocations: 232 kB / 433.9 MB, free: 4.484 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.339e-05/0.3166, allocations: 16.31 kB / 433.9 MB, free: 4.469 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.109e-05/0.3166, allocations: 34.94 kB / 433.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 1.693e-06/0.3166, allocations: 0 / 433.9 MB, free: 4.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=49): time 0.005319/0.3219, allocations: 1.956 MB / 435.9 MB, free: 2.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.61e-05/0.322, allocations: 55.84 kB / 436 MB, free: 2.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002967/0.3223, allocations: 245.9 kB / 436.2 MB, free: 2.09 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.073e-05/0.3223, allocations: 41.7 kB / 436.2 MB, free: 2.043 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001419/0.3225, allocations: 176.9 kB / 436.4 MB, free: 1.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001605/0.3226, allocations: 178.6 kB / 436.6 MB, free: 1.688 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001891/0.3228, allocations: 102.3 kB / 436.7 MB, free: 1.582 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001711/0.323, allocations: 338.8 kB / 437 MB, free: 1.242 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000514/0.3235, allocations: 233.2 kB / 437.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000589/0.3241, allocations: 308.1 kB / 437.5 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008622/0.3249, allocations: 418.7 kB / 438 MB, free: 280 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.3249, allocations: 4 kB / 438 MB, free: 276 kB / 334.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.0017/0.3266, allocations: 0.734 MB / 438.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.871e-05/0.3267, allocations: 8 kB / 438.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.602e-06/0.3267, allocations: 4.125 kB / 438.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001169/0.3278, allocations: 0.549 MB / 439.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003031/0.3281, allocations: 67.91 kB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003393/0.3315, allocations: 3.451 MB / 442.8 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005251/0.3321, allocations: 71.94 kB / 442.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.645e-05/0.3321, allocations: 16 kB / 442.9 MB, free: 11.09 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.0002449/0.3324, allocations: 169.8 kB / 443 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.772e-05/0.3324, allocations: 39.77 kB / 443.1 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001634/0.3341, allocations: 0.7091 MB / 443.8 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.814e-06/0.3341, allocations: 8 kB / 443.8 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.3341, allocations: 3.938 kB / 443.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3341, allocations: 7.969 kB / 443.8 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002329/0.3364, allocations: 1.222 MB / 445 MB, free: 8.852 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.3364, allocations: 4 kB / 445 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002892/0.3367, allocations: 55.91 kB / 445.1 MB, free: 8.793 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001056/0.3378, allocations: 0.5323 MB / 445.6 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.699e-05/0.3378, allocations: 19.97 kB / 445.6 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003149/0.341, allocations: 3.419 MB / 449 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.341, allocations: 0 / 449 MB, free: 4.559 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002021/0.343, allocations: 1.025 MB / 450.1 MB, free: 3.512 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002187/0.3432, allocations: 91.67 kB / 450.2 MB, free: 3.422 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.563e-05/0.3433, allocations: 23.98 kB / 450.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004817/0.3438, allocations: 75.84 kB / 450.3 MB, free: 3.324 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001988/0.344, allocations: 92.25 kB / 450.3 MB, free: 3.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.344, allocations: 15.98 kB / 450.4 MB, free: 3.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001915/0.3442, allocations: 181.2 kB / 450.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3442, allocations: 0 / 450.5 MB, free: 3.039 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005105/0.3447, allocations: 124 kB / 450.7 MB, free: 2.918 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.0002434/0.345, allocations: 139.1 kB / 450.8 MB, free: 2.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001589/0.3466, allocations: 0.7626 MB / 451.6 MB, free: 1.984 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3466, allocations: 4 kB / 451.6 MB, free: 1.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009507/0.3475, allocations: 0.5213 MB / 452.1 MB, free: 1.43 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005164/0.348, allocations: 59.05 kB / 452.1 MB, free: 1.375 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002092/0.3501, allocations: 1.009 MB / 453.1 MB, free: 340 kB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004855/0.3506, allocations: 0.7996 MB / 453.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001093/0.3507, allocations: 39.42 kB / 454 MB, free: 15.46 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3507, allocations: 0 / 454 MB, free: 15.46 MB / 366.1 MB Notification: Performance of Templates: time 0.01335/0.3641, allocations: 8.953 MB / 462.9 MB, free: 6.512 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/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: 9.06841758498922]