Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001724/0.001724, allocations: 109.1 kB / 21.18 MB, free: 0.7656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001879/0.001879, allocations: 213.7 kB / 24.5 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.591/1.591, allocations: 230.5 MB / 258.1 MB, free: 8 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00199/0.00199, allocations: 63.89 kB / 379 MB, free: 2.516 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2913, allocations: 53.41 MB / 432.4 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005011/0.2963, allocations: 2.98 MB / 435.4 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002345/0.2986, allocations: 1.068 MB / 436.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002285/0.2988, allocations: 11.88 kB / 436.5 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003763/0.2992, allocations: 79.3 kB / 436.6 MB, free: 2.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004283/0.2997, allocations: 158.9 kB / 436.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004156/0.3001, allocations: 191.7 kB / 436.9 MB, free: 2.262 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006949/0.3008, allocations: 0.5969 MB / 437.5 MB, free: 1.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000213/0.301, allocations: 82.97 kB / 437.6 MB, free: 1.578 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004114/0.3014, allocations: 267.2 kB / 437.9 MB, free: 1.316 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004607/0.3018, allocations: 295 kB / 438.1 MB, free: 1.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.756e-05/0.3019, allocations: 48 kB / 438.2 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002373/0.3022, allocations: 108 kB / 438.3 MB, free: 0.875 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002056/0.3024, allocations: 131.6 kB / 438.4 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000259/0.3026, allocations: 230.9 kB / 438.7 MB, free: 0.5195 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007725/0.3034, allocations: 0.5927 MB / 439.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.3034, allocations: 0 / 439.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.3034, allocations: 0 / 439.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.967e-06/0.3034, allocations: 0 / 439.2 MB, free: 15.93 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001566/0.305, allocations: 0.7155 MB / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.126e-05/0.305, allocations: 8.031 kB / 440 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001142/0.3051, allocations: 48.66 kB / 440 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005388/0.3057, allocations: 264.8 kB / 440.3 MB, free: 14.84 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.961e-05/0.3057, allocations: 29.38 kB / 440.3 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.6e-05/0.3058, allocations: 40.36 kB / 440.3 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008583/0.3067, allocations: 434.6 kB / 440.8 MB, free: 14.35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.565e-05/0.3067, allocations: 7.953 kB / 440.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.294e-05/0.3067, allocations: 12 kB / 440.8 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.869e-05/0.3068, allocations: 16 kB / 440.8 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009887/0.3077, allocations: 447.7 kB / 441.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002476/0.3102, allocations: 1.214 MB / 442.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009234/0.3111, allocations: 372.3 kB / 442.8 MB, free: 12.23 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000502/0.3116, allocations: 234 kB / 443 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.512e-05/0.3117, allocations: 4.438 kB / 443 MB, free: 11.99 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.634e-05/0.3118, allocations: 39 kB / 443.1 MB, free: 11.95 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.425e-06/0.3118, allocations: 4 kB / 443.1 MB, free: 11.94 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005552/0.3173, allocations: 1.951 MB / 445 MB, free: 9.926 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.277e-05/0.3174, allocations: 63.78 kB / 445.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003541/0.3177, allocations: 273.8 kB / 445.4 MB, free: 9.578 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.981e-05/0.3178, allocations: 41.7 kB / 445.4 MB, free: 9.531 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001505/0.318, allocations: 172.9 kB / 445.6 MB, free: 9.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001911/0.3181, allocations: 190.5 kB / 445.8 MB, free: 9.168 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001786/0.3183, allocations: 98.28 kB / 445.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002077/0.3185, allocations: 346.8 kB / 446.2 MB, free: 8.719 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000484/0.319, allocations: 217.2 kB / 446.4 MB, free: 8.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005609/0.3196, allocations: 300 kB / 446.7 MB, free: 8.199 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008552/0.3204, allocations: 394.8 kB / 447.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3204, allocations: 0 / 447.1 MB, free: 7.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001667/0.3221, allocations: 0.722 MB / 447.8 MB, free: 7.055 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.198e-05/0.3221, allocations: 6.656 kB / 447.8 MB, free: 7.051 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.3221, allocations: 4.125 kB / 447.8 MB, free: 7.047 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001114/0.3232, allocations: 425.3 kB / 448.2 MB, free: 6.625 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002793/0.3235, allocations: 75.84 kB / 448.3 MB, free: 6.551 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003539/0.3271, allocations: 3.442 MB / 451.8 MB, free: 2.852 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005604/0.3276, allocations: 75.89 kB / 451.8 MB, free: 2.777 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.741e-05/0.3277, allocations: 24.09 kB / 451.9 MB, free: 2.754 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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.0002908/0.328, allocations: 161.8 kB / 452 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001056/0.3281, allocations: 39.77 kB / 452.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001708/0.3298, allocations: 0.7106 MB / 452.8 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.723e-06/0.3298, allocations: 4 kB / 452.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.3298, allocations: 4 kB / 452.8 MB, free: 1.816 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.237e-06/0.3298, allocations: 7.969 kB / 452.8 MB, free: 1.809 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002458/0.3323, allocations: 1.24 MB / 454 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.3323, allocations: 0 / 454 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/0.3325, allocations: 63.89 kB / 454.1 MB, free: 456 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.3335, allocations: 398.3 kB / 454.5 MB, free: 48 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.054e-05/0.3336, allocations: 19.97 kB / 454.5 MB, free: 28 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003406/0.337, allocations: 3.413 MB / 457.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.337, allocations: 0 / 457.9 MB, free: 12.36 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002142/0.3391, allocations: 1.015 MB / 458.9 MB, free: 11.32 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002391/0.3394, allocations: 87.72 kB / 459 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001029/0.3395, allocations: 20 kB / 459 MB, free: 11.22 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000473/0.34, allocations: 67.84 kB / 459.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002309/0.3402, allocations: 100.2 kB / 459.2 MB, free: 11.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.76e-05/0.3402, allocations: 27.97 kB / 459.2 MB, free: 11.03 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002378/0.3405, allocations: 189.2 kB / 459.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3405, allocations: 0 / 459.4 MB, free: 10.84 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005481/0.341, allocations: 127.9 kB / 459.5 MB, free: 10.72 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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001404/0.3424, allocations: 383 kB / 459.9 MB, free: 10.45 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001759/0.3442, allocations: 0.7522 MB / 460.6 MB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3442, allocations: 0 / 460.6 MB, free: 9.672 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009535/0.3451, allocations: 0.5103 MB / 461.2 MB, free: 9.133 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000622/0.3458, allocations: 82.61 kB / 461.2 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002283/0.348, allocations: 1.061 MB / 462.3 MB, free: 7.961 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004956/0.3485, allocations: 0.8085 MB / 463.1 MB, free: 7.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001216/0.3487, allocations: 35.42 kB / 463.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of SimCode: time 9.11e-07/0.3487, allocations: 0 / 463.1 MB, free: 7.086 MB / 366.1 MB Notification: Performance of Templates: time 0.01419/0.3629, allocations: 9.497 MB / 472.6 MB, free: 13.59 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.154763438971713]