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.001413/0.001413, allocations: 120.2 kB / 21.94 MB, free: 28 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.001635/0.001635, allocations: 208.8 kB / 25.24 MB, free: 3.562 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.519/1.519, allocations: 207.6 MB / 236 MB, free: 9.977 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.001773/0.001773, allocations: 62.72 kB / 348.4 MB, free: 9.531 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.308/0.3097, allocations: 49.15 MB / 397.6 MB, free: 9.504 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004236/0.314, allocations: 2.829 MB / 400.4 MB, free: 7.527 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001913/0.3159, allocations: 0.9487 MB / 401.4 MB, free: 6.855 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002385/0.3161, allocations: 8.312 kB / 401.4 MB, free: 6.852 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002911/0.3164, allocations: 54.55 kB / 401.4 MB, free: 6.82 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003055/0.3167, allocations: 121.5 kB / 401.6 MB, free: 6.734 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006136/0.3173, allocations: 205 kB / 401.8 MB, free: 6.633 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007113/0.3181, allocations: 0.5745 MB / 402.3 MB, free: 6.363 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002125/0.3183, allocations: 84.27 kB / 402.4 MB, free: 6.312 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000342/0.3186, allocations: 255.2 kB / 402.7 MB, free: 6.203 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004033/0.319, allocations: 282.8 kB / 402.9 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.939e-05/0.3191, allocations: 43.09 kB / 403 MB, free: 6.078 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002172/0.3193, allocations: 105.6 kB / 403.1 MB, free: 6.055 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001615/0.3195, allocations: 112.7 kB / 403.2 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000219/0.3197, allocations: 217.6 kB / 403.4 MB, free: 5.852 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007448/0.3204, allocations: 0.5353 MB / 403.9 MB, free: 5.645 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3204, allocations: 3.938 kB / 404 MB, free: 5.641 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3204, allocations: 0 / 404 MB, free: 5.641 MB / 318.1 MB Notification: Performance of Transformations before backend: time 9.708e-06/0.3204, allocations: 1.219 kB / 404 MB, free: 5.641 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.3219, allocations: 0.6753 MB / 404.6 MB, free: 5.172 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.346e-05/0.322, allocations: 13.08 kB / 404.6 MB, free: 5.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000115/0.3221, allocations: 46.84 kB / 404.7 MB, free: 5.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004348/0.3225, allocations: 252.9 kB / 404.9 MB, free: 4.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.995e-05/0.3225, allocations: 22.72 kB / 405 MB, free: 4.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.391e-05/0.3226, allocations: 35.88 kB / 405 MB, free: 4.922 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009109/0.3235, allocations: 446.1 kB / 405.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.3236, allocations: 1.156 kB / 405.4 MB, free: 4.75 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.804e-05/0.3236, allocations: 11.86 kB / 405.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.408e-05/0.3236, allocations: 7.75 kB / 405.4 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009497/0.3246, allocations: 469.3 kB / 405.9 MB, free: 4.602 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00229/0.3269, allocations: 1.186 MB / 407.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000781/0.3276, allocations: 346.5 kB / 407.4 MB, free: 3.809 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004542/0.3281, allocations: 229.5 kB / 407.7 MB, free: 3.723 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.726e-05/0.3281, allocations: 12.48 kB / 407.7 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.874e-05/0.3282, allocations: 38.48 kB / 407.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.3282, allocations: 0 / 407.7 MB, free: 3.672 MB / 318.1 MB Notification: Performance of matching and sorting (n=49): time 0.005163/0.3333, allocations: 1.962 MB / 409.7 MB, free: 2.758 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.843e-05/0.3334, allocations: 56.09 kB / 409.7 MB, free: 2.695 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000245/0.3336, allocations: 247.8 kB / 410 MB, free: 2.527 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.813e-05/0.3337, allocations: 38.95 kB / 410 MB, free: 2.488 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.588e-05/0.3337, allocations: 171.5 kB / 410.2 MB, free: 2.328 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.3338, allocations: 186.1 kB / 410.3 MB, free: 2.164 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001585/0.334, allocations: 101.2 kB / 410.4 MB, free: 2.098 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.731e-05/0.3341, allocations: 337.8 kB / 410.8 MB, free: 1.766 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004829/0.3346, allocations: 235.5 kB / 411 MB, free: 1.652 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000521/0.3351, allocations: 305.8 kB / 411.3 MB, free: 1.473 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007686/0.3358, allocations: 411.9 kB / 411.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3358, allocations: 4 kB / 411.7 MB, free: 1.25 MB / 318.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.001535/0.3374, allocations: 0.7419 MB / 412.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.3374, allocations: 6.656 kB / 412.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.934e-06/0.3374, allocations: 5 kB / 412.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001016/0.3384, allocations: 0.548 MB / 413 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002878/0.3387, allocations: 73.89 kB / 413.1 MB, free: 0.5859 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003451/0.3422, allocations: 3.459 MB / 416.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005319/0.3427, allocations: 70.53 kB / 416.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-05/0.3428, allocations: 21.17 kB / 416.6 MB, free: 13.21 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.0003036/0.3431, allocations: 170.5 kB / 416.8 MB, free: 13.05 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.3432, allocations: 32.72 kB / 416.8 MB, free: 13.04 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001658/0.3448, allocations: 0.7164 MB / 417.5 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.928e-06/0.3448, allocations: 8.516 kB / 417.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.3448, allocations: 0 / 417.6 MB, free: 12.62 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.505e-06/0.3448, allocations: 5.047 kB / 417.6 MB, free: 12.61 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002393/0.3472, allocations: 1.221 MB / 418.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.968e-06/0.3472, allocations: 0 / 418.8 MB, free: 11.78 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002683/0.3475, allocations: 54.53 kB / 418.8 MB, free: 11.77 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001076/0.3486, allocations: 0.5344 MB / 419.4 MB, free: 11.51 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.004e-05/0.3486, allocations: 20.91 kB / 419.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003275/0.3519, allocations: 3.41 MB / 422.8 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.3519, allocations: 3.984 kB / 422.8 MB, free: 8.188 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002239/0.3541, allocations: 1.034 MB / 423.8 MB, free: 7.586 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.3544, allocations: 81.95 kB / 423.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.815e-05/0.3545, allocations: 21.84 kB / 423.9 MB, free: 7.512 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004576/0.3549, allocations: 72.62 kB / 424 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002163/0.3552, allocations: 91.72 kB / 424.1 MB, free: 7.414 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.29e-05/0.3552, allocations: 22.05 kB / 424.1 MB, free: 7.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002172/0.3554, allocations: 179.3 kB / 424.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3554, allocations: 1.188 kB / 424.3 MB, free: 7.277 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006166/0.356, allocations: 122.2 kB / 424.4 MB, free: 7.262 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.0002963/0.3563, allocations: 142 kB / 424.6 MB, free: 7.141 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.3581, allocations: 0.7648 MB / 425.3 MB, free: 6.672 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.055e-06/0.3581, allocations: 4 kB / 425.3 MB, free: 6.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009278/0.359, allocations: 0.5088 MB / 425.8 MB, free: 6.164 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000542/0.3596, allocations: 64.39 kB / 425.9 MB, free: 6.102 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002191/0.3618, allocations: 1.01 MB / 426.9 MB, free: 5.059 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004585/0.3622, allocations: 0.8035 MB / 427.7 MB, free: 4.227 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001007/0.3623, allocations: 35.42 kB / 427.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of SimCode: time 4.1e-07/0.3623, allocations: 0 / 427.7 MB, free: 4.191 MB / 334.1 MB Notification: Performance of Templates: time 0.01308/0.3754, allocations: 8.951 MB / 436.7 MB, free: 11.22 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.435541533166543]