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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001712/0.001712, allocations: 105.8 kB / 20.32 MB, free: 1.996 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002024/0.002024, allocations: 193.8 kB / 23.47 MB, free: 5.297 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.543/1.543, allocations: 207.6 MB / 234 MB, free: 11.05 MB / 190.1 MB [Timeout remaining time 88] 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.002055/0.002055, allocations: 62.72 kB / 345.8 MB, free: 10.62 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3453/0.3473, allocations: 49.12 MB / 394.9 MB, free: 9.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004536/0.3519, allocations: 2.813 MB / 397.7 MB, free: 7.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001839/0.3537, allocations: 0.9487 MB / 398.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001956/0.3539, allocations: 4.781 kB / 398.7 MB, free: 6.773 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002587/0.3541, allocations: 62.33 kB / 398.8 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00028/0.3544, allocations: 112.3 kB / 398.9 MB, free: 6.656 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000575/0.355, allocations: 209.4 kB / 399.1 MB, free: 6.555 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006465/0.3556, allocations: 0.5718 MB / 399.6 MB, free: 6.289 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000208/0.3559, allocations: 80.28 kB / 399.7 MB, free: 6.246 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000328/0.3562, allocations: 255.4 kB / 400 MB, free: 6.137 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003766/0.3566, allocations: 277.2 kB / 400.2 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.128e-05/0.3566, allocations: 44.22 kB / 400.3 MB, free: 6.02 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000223/0.3569, allocations: 98.06 kB / 400.4 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001492/0.357, allocations: 113.9 kB / 400.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002164/0.3572, allocations: 220.2 kB / 400.7 MB, free: 5.801 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007371/0.358, allocations: 0.5373 MB / 401.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.641e-06/0.358, allocations: 1.344 kB / 401.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.464e-06/0.358, allocations: 0 / 401.2 MB, free: 5.594 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.022e-05/0.358, allocations: 0 / 401.2 MB, free: 5.594 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.001412/0.3594, allocations: 0.7388 MB / 402 MB, free: 5.047 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3594, allocations: 13.62 kB / 402 MB, free: 5.043 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001113/0.3596, allocations: 45.91 kB / 402 MB, free: 5.02 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004433/0.36, allocations: 311.8 kB / 402.3 MB, free: 4.746 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.455e-05/0.36, allocations: 27.19 kB / 402.4 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.743e-05/0.3601, allocations: 40.34 kB / 402.4 MB, free: 4.719 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008742/0.361, allocations: 445.3 kB / 402.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.204e-05/0.361, allocations: 1.156 kB / 402.8 MB, free: 4.547 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.985e-05/0.3611, allocations: 19.45 kB / 402.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.602e-05/0.3611, allocations: 7.969 kB / 402.9 MB, free: 4.531 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001051/0.3622, allocations: 456.3 kB / 403.3 MB, free: 4.398 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.3645, allocations: 1.248 MB / 404.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008508/0.3654, allocations: 343.4 kB / 404.9 MB, free: 3.547 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004524/0.3658, allocations: 239.9 kB / 405.1 MB, free: 3.449 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.73e-05/0.3659, allocations: 13.53 kB / 405.1 MB, free: 3.441 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.781e-05/0.3659, allocations: 37.97 kB / 405.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.653e-06/0.3659, allocations: 0 / 405.2 MB, free: 3.398 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005063/0.3709, allocations: 2.254 MB / 407.4 MB, free: 2.168 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.776e-05/0.371, allocations: 57.22 kB / 407.5 MB, free: 2.105 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002882/0.3713, allocations: 249.8 kB / 407.7 MB, free: 1.961 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.666e-05/0.3713, allocations: 39.66 kB / 407.8 MB, free: 1.922 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.3714, allocations: 181.4 kB / 408 MB, free: 1.762 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001302/0.3716, allocations: 173.9 kB / 408.1 MB, free: 1.629 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001836/0.3718, allocations: 101.6 kB / 408.2 MB, free: 1.574 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.415e-05/0.3718, allocations: 339.7 kB / 408.6 MB, free: 1.25 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004843/0.3723, allocations: 240.5 kB / 408.8 MB, free: 1.152 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004893/0.3728, allocations: 304.9 kB / 409.1 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008067/0.3736, allocations: 421.5 kB / 409.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.904e-06/0.3736, allocations: 0 / 409.5 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001586/0.3752, allocations: 0.7479 MB / 410.2 MB, free: 368 kB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.028e-05/0.3752, allocations: 5.75 kB / 410.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.3752, allocations: 1.188 kB / 410.3 MB, free: 368 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001097/0.3763, allocations: 0.5412 MB / 410.8 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003003/0.3766, allocations: 73.48 kB / 410.9 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003654/0.3803, allocations: 3.668 MB / 414.5 MB, free: 12.48 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005473/0.3808, allocations: 69.41 kB / 414.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.008e-05/0.3809, allocations: 22.92 kB / 414.6 MB, free: 12.45 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.0003019/0.3812, allocations: 172.8 kB / 414.8 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.544e-05/0.3813, allocations: 31.94 kB / 414.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001733/0.383, allocations: 0.7157 MB / 415.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.383, allocations: 4.469 kB / 415.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.383, allocations: 1.094 kB / 415.5 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.937e-06/0.383, allocations: 5.266 kB / 415.6 MB, free: 11.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.3855, allocations: 1.249 MB / 416.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.967e-06/0.3855, allocations: 0 / 416.8 MB, free: 10.98 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002799/0.3858, allocations: 58.75 kB / 416.9 MB, free: 10.96 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001059/0.3868, allocations: 0.5315 MB / 417.4 MB, free: 10.71 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.242e-05/0.3869, allocations: 20.31 kB / 417.4 MB, free: 10.7 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003603/0.3905, allocations: 3.618 MB / 421 MB, free: 7.133 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.294e-06/0.3905, allocations: 3.938 kB / 421 MB, free: 7.129 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002107/0.3926, allocations: 1.026 MB / 422.1 MB, free: 6.535 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002879/0.3929, allocations: 158.5 kB / 422.2 MB, free: 6.383 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.528e-05/0.3929, allocations: 19.69 kB / 422.2 MB, free: 6.371 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004779/0.3934, allocations: 76.55 kB / 422.3 MB, free: 6.332 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002288/0.3937, allocations: 89.48 kB / 422.4 MB, free: 6.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.786e-05/0.3937, allocations: 25.44 kB / 422.4 MB, free: 6.262 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000203/0.3939, allocations: 181.4 kB / 422.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3939, allocations: 0 / 422.6 MB, free: 6.141 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006166/0.3945, allocations: 127.1 kB / 422.7 MB, free: 6.121 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.0002872/0.3948, allocations: 155 kB / 422.9 MB, free: 5.988 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.3965, allocations: 0.7753 MB / 423.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.3965, allocations: 1.344 kB / 423.6 MB, free: 5.508 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3975, allocations: 0.5089 MB / 424.2 MB, free: 5.148 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005669/0.3981, allocations: 63.47 kB / 424.2 MB, free: 5.105 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002405/0.4005, allocations: 1.011 MB / 425.2 MB, free: 4.379 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004711/0.401, allocations: 0.7957 MB / 426 MB, free: 3.559 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.752e-05/0.4011, allocations: 35.44 kB / 426.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4011, allocations: 0 / 426.1 MB, free: 3.523 MB / 334.1 MB Notification: Performance of Templates: time 0.01317/0.4143, allocations: 8.935 MB / 435 MB, free: 10.57 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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