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.002031/0.002031, allocations: 97.98 kB / 21.93 MB, free: 5.207 MB / 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.002396/0.002396, allocations: 202.7 kB / 25.22 MB, free: 3.141 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.652/1.652, allocations: 207.7 MB / 236.1 MB, free: 9.781 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.001851/0.001851, allocations: 62.58 kB / 348.4 MB, free: 9.387 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.324/0.3258, allocations: 49.15 MB / 397.6 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003866/0.3297, allocations: 2.635 MB / 400.2 MB, free: 7.637 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.3314, allocations: 0.9078 MB / 401.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001878/0.3316, allocations: 7.25 kB / 401.1 MB, free: 7.008 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002513/0.3318, allocations: 54.83 kB / 401.2 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003289/0.3321, allocations: 117.5 kB / 401.3 MB, free: 6.895 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006813/0.3328, allocations: 217.8 kB / 401.5 MB, free: 6.785 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00062/0.3334, allocations: 0.5723 MB / 402.1 MB, free: 6.516 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001923/0.3336, allocations: 79.77 kB / 402.2 MB, free: 6.473 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003479/0.334, allocations: 250.7 kB / 402.4 MB, free: 6.371 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003427/0.3343, allocations: 257.9 kB / 402.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.508e-05/0.3344, allocations: 43.72 kB / 402.7 MB, free: 6.27 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002237/0.3346, allocations: 96.89 kB / 402.8 MB, free: 6.254 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001255/0.3348, allocations: 113.9 kB / 402.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000172/0.3349, allocations: 190.9 kB / 403.1 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006942/0.3356, allocations: 0.5413 MB / 403.6 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.3356, allocations: 1.078 kB / 403.6 MB, free: 5.863 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.3356, allocations: 0 / 403.6 MB, free: 5.863 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.034e-05/0.3356, allocations: 1.062 kB / 403.6 MB, free: 5.863 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.001467/0.3371, allocations: 0.6673 MB / 404.3 MB, free: 5.402 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.3372, allocations: 13.77 kB / 404.3 MB, free: 5.398 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.3373, allocations: 45.83 kB / 404.4 MB, free: 5.375 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.3378, allocations: 249.1 kB / 404.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.52e-05/0.3378, allocations: 32.41 kB / 404.6 MB, free: 5.156 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.072e-05/0.3379, allocations: 35.44 kB / 404.7 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008833/0.3388, allocations: 449.8 kB / 405.1 MB, free: 4.969 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.287e-05/0.3388, allocations: 6.047 kB / 405.1 MB, free: 4.965 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.332e-05/0.3388, allocations: 14.69 kB / 405.1 MB, free: 4.953 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.3389, allocations: 11.91 kB / 405.2 MB, free: 4.949 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00098/0.3398, allocations: 454.5 kB / 405.6 MB, free: 4.816 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.3421, allocations: 1.05 MB / 406.6 MB, free: 4.219 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008165/0.3429, allocations: 341.3 kB / 407 MB, free: 4.09 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004418/0.3434, allocations: 228.6 kB / 407.2 MB, free: 4.004 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.097e-05/0.3434, allocations: 9.531 kB / 407.2 MB, free: 4 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.001e-05/0.3434, allocations: 37.69 kB / 407.3 MB, free: 3.957 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 2.235e-06/0.3434, allocations: 3.938 kB / 407.3 MB, free: 3.953 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.00507/0.3485, allocations: 1.952 MB / 409.2 MB, free: 3.086 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.3485, allocations: 61.06 kB / 409.3 MB, free: 3.016 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002335/0.3488, allocations: 248.1 kB / 409.5 MB, free: 2.844 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.835e-05/0.3488, allocations: 38.95 kB / 409.5 MB, free: 2.805 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.276e-05/0.3489, allocations: 174.6 kB / 409.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001076/0.349, allocations: 178.5 kB / 409.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00017/0.3492, allocations: 102.5 kB / 410 MB, free: 2.418 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.179e-05/0.3493, allocations: 338.4 kB / 410.3 MB, free: 2.086 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004716/0.3497, allocations: 235 kB / 410.6 MB, free: 1.973 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005348/0.3503, allocations: 306.9 kB / 410.9 MB, free: 1.793 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007847/0.3511, allocations: 424.5 kB / 411.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.3511, allocations: 1.344 kB / 411.3 MB, free: 1.566 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001567/0.3526, allocations: 0.7445 MB / 412 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.3526, allocations: 6.875 kB / 412 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.396e-06/0.3527, allocations: 0 / 412 MB, free: 1.188 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001075/0.3537, allocations: 0.5477 MB / 412.6 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002982/0.354, allocations: 70.59 kB / 412.6 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00307/0.3571, allocations: 3.409 MB / 416 MB, free: 13.65 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005688/0.3577, allocations: 75.06 kB / 416.1 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.838e-05/0.3577, allocations: 19.22 kB / 416.1 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.0002914/0.358, allocations: 169.3 kB / 416.3 MB, free: 13.45 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.409e-05/0.3581, allocations: 33.16 kB / 416.3 MB, free: 13.44 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001672/0.3598, allocations: 0.7074 MB / 417 MB, free: 13.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.3598, allocations: 12.62 kB / 417.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3598, allocations: 1.156 kB / 417.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.368e-06/0.3598, allocations: 5.141 kB / 417.1 MB, free: 13.02 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002352/0.3621, allocations: 1.095 MB / 418.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.608e-06/0.3622, allocations: 3.984 kB / 418.2 MB, free: 12.31 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002876/0.3624, allocations: 58.38 kB / 418.2 MB, free: 12.29 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00105/0.3635, allocations: 0.5277 MB / 418.7 MB, free: 12.04 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.055e-05/0.3635, allocations: 23.81 kB / 418.8 MB, free: 12.02 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003363/0.3669, allocations: 3.376 MB / 422.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.3669, allocations: 0 / 422.1 MB, free: 8.785 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002261/0.3692, allocations: 1.027 MB / 423.2 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002805/0.3695, allocations: 86.98 kB / 423.3 MB, free: 8.125 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.513e-05/0.3695, allocations: 21.3 kB / 423.3 MB, free: 8.109 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004839/0.37, allocations: 66.06 kB / 423.3 MB, free: 8.082 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002227/0.3702, allocations: 91.16 kB / 423.4 MB, free: 8.02 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.549e-05/0.3703, allocations: 22.11 kB / 423.5 MB, free: 8.008 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001945/0.3705, allocations: 178.4 kB / 423.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3705, allocations: 0 / 423.6 MB, free: 7.883 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006403/0.3711, allocations: 125.8 kB / 423.7 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.0002793/0.3714, allocations: 135.5 kB / 423.9 MB, free: 7.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001815/0.3732, allocations: 0.7672 MB / 424.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.067e-06/0.3732, allocations: 0 / 424.6 MB, free: 7.246 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009705/0.3742, allocations: 0.5136 MB / 425.2 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.0005645/0.3748, allocations: 69.09 kB / 425.2 MB, free: 6.641 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002261/0.377, allocations: 1.01 MB / 426.2 MB, free: 5.598 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002205/0.3772, allocations: 189.8 kB / 426.4 MB, free: 5.395 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001046/0.3773, allocations: 39.41 kB / 426.5 MB, free: 5.355 MB / 334.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3773, allocations: 7.938 kB / 426.5 MB, free: 5.348 MB / 334.1 MB Notification: Performance of Templates: time 0.01398/0.3913, allocations: 9.065 MB / 435.5 MB, free: 12.27 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 [Calling sys.exit(0), Time elapsed: 9.559510137885809]