Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00166/0.00166, allocations: 103.6 kB / 21.18 MB, free: 472 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001983/0.001983, allocations: 213.4 kB / 24.47 MB, free: 3.793 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.61/1.61, allocations: 207.7 MB / 235.3 MB, free: 9.785 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001922/0.001922, allocations: 62.58 kB / 347.7 MB, free: 9.398 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3092/0.3111, allocations: 49.16 MB / 396.8 MB, free: 9.387 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003757/0.3148, allocations: 2.635 MB / 399.5 MB, free: 7.621 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001611/0.3164, allocations: 0.9022 MB / 400.4 MB, free: 7 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001632/0.3166, allocations: 4.406 kB / 400.4 MB, free: 7 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.3168, allocations: 62.7 kB / 400.4 MB, free: 6.961 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002572/0.3171, allocations: 113.8 kB / 400.6 MB, free: 6.883 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005015/0.3176, allocations: 221.7 kB / 400.8 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000486/0.3181, allocations: 0.569 MB / 401.3 MB, free: 6.504 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.3183, allocations: 79.09 kB / 401.4 MB, free: 6.461 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000295/0.3186, allocations: 255.4 kB / 401.7 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003493/0.3189, allocations: 256 kB / 401.9 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.55e-05/0.319, allocations: 48.09 kB / 402 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001968/0.3192, allocations: 95.23 kB / 402.1 MB, free: 6.238 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.3193, allocations: 114.6 kB / 402.2 MB, free: 6.164 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001784/0.3195, allocations: 190.8 kB / 402.4 MB, free: 6.059 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006658/0.3202, allocations: 0.5359 MB / 402.9 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.3202, allocations: 0 / 402.9 MB, free: 5.852 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.3202, allocations: 1.219 kB / 402.9 MB, free: 5.852 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.847e-06/0.3202, allocations: 0.7969 kB / 402.9 MB, free: 5.852 MB / 318.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.001372/0.3215, allocations: 0.6671 MB / 403.6 MB, free: 5.391 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.796e-05/0.3216, allocations: 13.23 kB / 403.6 MB, free: 5.387 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00011/0.3217, allocations: 46.53 kB / 403.6 MB, free: 5.363 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000454/0.3221, allocations: 262.4 kB / 403.9 MB, free: 5.148 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.28e-05/0.3222, allocations: 28.12 kB / 403.9 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.627e-05/0.3223, allocations: 38.31 kB / 403.9 MB, free: 5.121 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008466/0.3231, allocations: 441.8 kB / 404.4 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.3231, allocations: 5.234 kB / 404.4 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.609e-05/0.3232, allocations: 16.11 kB / 404.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.052e-05/0.3232, allocations: 8.344 kB / 404.4 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009299/0.3241, allocations: 457.8 kB / 404.8 MB, free: 4.801 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.3265, allocations: 1.042 MB / 405.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008939/0.3274, allocations: 349 kB / 406.2 MB, free: 4.074 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005207/0.3279, allocations: 229 kB / 406.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.07e-05/0.328, allocations: 4.969 kB / 406.5 MB, free: 3.988 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.652e-05/0.328, allocations: 38.23 kB / 406.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.328, allocations: 0 / 406.5 MB, free: 3.945 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.004993/0.333, allocations: 1.952 MB / 408.4 MB, free: 3.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/0.333, allocations: 62.41 kB / 408.5 MB, free: 3.02 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000249/0.3333, allocations: 248.7 kB / 408.8 MB, free: 2.848 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.905e-05/0.3333, allocations: 46.47 kB / 408.8 MB, free: 2.801 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.676e-05/0.3334, allocations: 170.8 kB / 409 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001079/0.3335, allocations: 174.2 kB / 409.1 MB, free: 2.488 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001662/0.3337, allocations: 98.62 kB / 409.2 MB, free: 2.426 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.736e-05/0.3338, allocations: 349.8 kB / 409.6 MB, free: 2.082 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004752/0.3343, allocations: 231.8 kB / 409.8 MB, free: 1.973 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000487/0.3348, allocations: 310.4 kB / 410.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007553/0.3355, allocations: 417.1 kB / 410.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.3355, allocations: 0 / 410.5 MB, free: 1.57 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001469/0.337, allocations: 0.7485 MB / 411.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.337, allocations: 6.156 kB / 411.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.054e-06/0.337, allocations: 1.25 kB / 411.3 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001005/0.338, allocations: 0.5446 MB / 411.8 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002852/0.3383, allocations: 70.14 kB / 411.9 MB, free: 0.9141 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003018/0.3413, allocations: 3.406 MB / 415.3 MB, free: 13.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005656/0.3419, allocations: 78.78 kB / 415.4 MB, free: 13.62 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.232e-05/0.3419, allocations: 25.97 kB / 415.4 MB, free: 13.61 MB / 334.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.0002835/0.3422, allocations: 163 kB / 415.5 MB, free: 13.46 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.135e-05/0.3423, allocations: 35.28 kB / 415.6 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001661/0.344, allocations: 0.7124 MB / 416.3 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.696e-06/0.344, allocations: 12.34 kB / 416.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.344, allocations: 1.219 kB / 416.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.763e-06/0.344, allocations: 1.062 kB / 416.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002299/0.3463, allocations: 1.103 MB / 417.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3463, allocations: 0 / 417.4 MB, free: 12.3 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002818/0.3466, allocations: 58.91 kB / 417.5 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.3476, allocations: 0.5314 MB / 418 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.441e-05/0.3477, allocations: 15.98 kB / 418 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003132/0.3508, allocations: 3.372 MB / 421.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.3508, allocations: 0 / 421.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002129/0.3529, allocations: 1.032 MB / 422.4 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002606/0.3532, allocations: 83.14 kB / 422.5 MB, free: 8.129 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.34e-05/0.3533, allocations: 17.28 kB / 422.5 MB, free: 8.117 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005/0.3538, allocations: 77.12 kB / 422.6 MB, free: 8.078 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002066/0.354, allocations: 92 kB / 422.7 MB, free: 8.016 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.574e-05/0.354, allocations: 22.56 kB / 422.7 MB, free: 8.004 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001969/0.3542, allocations: 173.2 kB / 422.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3542, allocations: 0 / 422.9 MB, free: 7.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006607/0.3549, allocations: 127 kB / 423 MB, free: 7.863 MB / 334.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.0002313/0.3551, allocations: 142.8 kB / 423.1 MB, free: 7.742 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.3567, allocations: 0.7632 MB / 423.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.474e-06/0.3567, allocations: 0 / 423.9 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009264/0.3576, allocations: 0.5139 MB / 424.4 MB, free: 6.707 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005183/0.3582, allocations: 60.39 kB / 424.5 MB, free: 6.648 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002125/0.3603, allocations: 0.9843 MB / 425.5 MB, free: 5.637 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002155/0.3605, allocations: 189.8 kB / 425.6 MB, free: 5.434 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001492/0.3607, allocations: 34.95 kB / 425.7 MB, free: 5.398 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.333e-05/0.3607, allocations: 35.42 kB / 425.7 MB, free: 5.363 MB / 334.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3607, allocations: 3.938 kB / 425.7 MB, free: 5.359 MB / 334.1 MB Notification: Performance of Templates: time 0.0169/0.3776, allocations: 8.944 MB / 434.7 MB, free: 12.39 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 5.205560987815261]