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.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.002241/0.002241, allocations: 107.8 kB / 19.76 MB, free: 2.551 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.002439/0.002439, allocations: 189.4 kB / 22.92 MB, free: 5.582 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.563/1.563, allocations: 207.6 MB / 233.5 MB, free: 10.99 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.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_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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001734/0.001734, allocations: 59.2 kB / 345.4 MB, free: 10.48 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3185/0.3202, allocations: 49.13 MB / 394.5 MB, free: 9.441 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004282/0.3245, allocations: 2.829 MB / 397.3 MB, free: 7.461 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001657/0.3262, allocations: 0.9555 MB / 398.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001704/0.3263, allocations: 4.312 kB / 398.3 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002232/0.3265, allocations: 58.14 kB / 398.4 MB, free: 6.75 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000237/0.3268, allocations: 117 kB / 398.5 MB, free: 6.668 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004682/0.3273, allocations: 217.5 kB / 398.7 MB, free: 6.559 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005464/0.3278, allocations: 0.5644 MB / 399.2 MB, free: 6.301 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001948/0.328, allocations: 79.11 kB / 399.3 MB, free: 6.258 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002875/0.3283, allocations: 252.2 kB / 399.6 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003669/0.3286, allocations: 282.2 kB / 399.8 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.764e-05/0.3287, allocations: 43.19 kB / 399.9 MB, free: 6.031 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002089/0.3289, allocations: 97.81 kB / 400 MB, free: 6.016 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001382/0.3291, allocations: 118.3 kB / 400.1 MB, free: 5.941 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.3293, allocations: 216.6 kB / 400.3 MB, free: 5.812 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007088/0.33, allocations: 0.5368 MB / 400.8 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.33, allocations: 1.188 kB / 400.8 MB, free: 5.605 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.33, allocations: 0 / 400.8 MB, free: 5.605 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.33, allocations: 3.938 kB / 400.9 MB, free: 5.602 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.001394/0.3314, allocations: 0.7389 MB / 401.6 MB, free: 5.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.508e-05/0.3315, allocations: 13.66 kB / 401.6 MB, free: 5.051 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001071/0.3316, allocations: 46.69 kB / 401.7 MB, free: 5.027 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004584/0.332, allocations: 311.5 kB / 402 MB, free: 4.754 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.477e-05/0.3321, allocations: 31.09 kB / 402 MB, free: 4.738 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.879e-05/0.3322, allocations: 34.38 kB / 402 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009186/0.3331, allocations: 447.2 kB / 402.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.595e-05/0.3331, allocations: 1.156 kB / 402.5 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.571e-05/0.3332, allocations: 15.19 kB / 402.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.307e-05/0.3332, allocations: 11.97 kB / 402.5 MB, free: 4.539 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000998/0.3342, allocations: 456.9 kB / 402.9 MB, free: 4.406 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002543/0.3367, allocations: 1.255 MB / 404.2 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008929/0.3376, allocations: 343.4 kB / 404.5 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004699/0.3381, allocations: 236.5 kB / 404.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.241e-05/0.3381, allocations: 5.531 kB / 404.8 MB, free: 3.453 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.674e-05/0.3382, allocations: 40.98 kB / 404.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.335e-06/0.3382, allocations: 1.031 kB / 404.8 MB, free: 3.406 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005103/0.3433, allocations: 2.254 MB / 407.1 MB, free: 2.176 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.314e-05/0.3433, allocations: 57.34 kB / 407.1 MB, free: 2.113 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002585/0.3436, allocations: 249.9 kB / 407.4 MB, free: 1.969 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.633e-05/0.3436, allocations: 48.02 kB / 407.4 MB, free: 1.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.28e-05/0.3437, allocations: 174 kB / 407.6 MB, free: 1.77 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001208/0.3438, allocations: 176 kB / 407.7 MB, free: 1.633 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001817/0.344, allocations: 102.4 kB / 407.8 MB, free: 1.578 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.668e-05/0.3441, allocations: 340.4 kB / 408.2 MB, free: 1.254 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004385/0.3445, allocations: 236.4 kB / 408.4 MB, free: 1.145 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000512/0.345, allocations: 301.1 kB / 408.7 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007388/0.3458, allocations: 424.1 kB / 409.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.684e-06/0.3458, allocations: 0 / 409.1 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001489/0.3472, allocations: 0.74 MB / 409.9 MB, free: 368 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.445e-05/0.3473, allocations: 14.41 kB / 409.9 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.265e-06/0.3473, allocations: 1.375 kB / 409.9 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001118/0.3484, allocations: 0.544 MB / 410.4 MB, free: 96 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002829/0.3487, allocations: 69.84 kB / 410.5 MB, free: 80 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003712/0.3524, allocations: 3.67 MB / 414.1 MB, free: 12.47 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005763/0.353, allocations: 71.09 kB / 414.2 MB, free: 12.44 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.111e-05/0.353, allocations: 18.19 kB / 414.2 MB, free: 12.44 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.0003059/0.3533, allocations: 174.1 kB / 414.4 MB, free: 12.28 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.544e-05/0.3534, allocations: 32.34 kB / 414.4 MB, free: 12.26 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001694/0.3551, allocations: 0.7158 MB / 415.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.3551, allocations: 4.312 kB / 415.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3551, allocations: 0.9688 kB / 415.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.3551, allocations: 5.172 kB / 415.2 MB, free: 11.84 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002626/0.3578, allocations: 1.252 MB / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.907e-06/0.3578, allocations: 0 / 416.4 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003221/0.3581, allocations: 59.38 kB / 416.5 MB, free: 10.95 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001046/0.3591, allocations: 0.535 MB / 417 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.17e-05/0.3592, allocations: 15.77 kB / 417 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003245/0.3624, allocations: 3.619 MB / 420.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3624, allocations: 0 / 420.6 MB, free: 7.121 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.3645, allocations: 1.027 MB / 421.7 MB, free: 6.527 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002748/0.3648, allocations: 157.8 kB / 421.8 MB, free: 6.375 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.364e-05/0.3649, allocations: 25.89 kB / 421.8 MB, free: 6.355 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004575/0.3653, allocations: 73.84 kB / 421.9 MB, free: 6.32 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002367/0.3655, allocations: 86.02 kB / 422 MB, free: 6.27 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.251e-05/0.3656, allocations: 26.06 kB / 422 MB, free: 6.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002132/0.3658, allocations: 180 kB / 422.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3658, allocations: 0 / 422.2 MB, free: 6.133 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006089/0.3664, allocations: 126.7 kB / 422.3 MB, free: 6.113 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.0002756/0.3667, allocations: 139.5 kB / 422.5 MB, free: 5.996 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001757/0.3685, allocations: 0.7756 MB / 423.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.466e-06/0.3685, allocations: 0 / 423.2 MB, free: 5.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009688/0.3694, allocations: 0.5216 MB / 423.8 MB, free: 5.145 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005376/0.37, allocations: 63.48 kB / 423.8 MB, free: 5.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.3723, allocations: 0.9819 MB / 424.8 MB, free: 4.332 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005345/0.3728, allocations: 0.7957 MB / 425.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001512/0.3729, allocations: 31.3 kB / 425.6 MB, free: 3.484 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.992e-05/0.373, allocations: 31.42 kB / 425.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of SimCode: time 8.81e-07/0.373, allocations: 0 / 425.7 MB, free: 3.453 MB / 334.1 MB Notification: Performance of Templates: time 0.01864/0.3917, allocations: 10.41 MB / 436.1 MB, free: 9.02 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.150549257174134]