Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001335/0.001335, allocations: 120.4 kB / 17.79 MB, free: 5.285 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.001371/0.001371, allocations: 199.3 kB / 20.74 MB, free: 2.344 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.499/1.499, allocations: 230.6 MB / 254.1 MB, free: 15.07 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.0_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_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001607/0.001607, allocations: 51.92 kB / 373.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1004/0.102, allocations: 53.34 MB / 426.8 MB, free: 4.293 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.005073/0.1071, allocations: 2.955 MB / 429.8 MB, free: 1.316 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00252/0.1096, allocations: 1.06 MB / 430.8 MB, free: 256 kB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002378/0.1098, allocations: 7.938 kB / 430.8 MB, free: 248 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003201/0.1102, allocations: 79.25 kB / 430.9 MB, free: 168 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004654/0.1106, allocations: 166.9 kB / 431.1 MB, free: 0 / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1857/0.2963, allocations: 175.1 kB / 431.2 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007227/0.2971, allocations: 0.5973 MB / 431.8 MB, free: 8.637 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002117/0.2973, allocations: 82.95 kB / 431.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003102/0.2976, allocations: 268.5 kB / 432.2 MB, free: 8.598 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003672/0.298, allocations: 290.9 kB / 432.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.326e-05/0.298, allocations: 48.34 kB / 432.5 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002183/0.2983, allocations: 109.7 kB / 432.6 MB, free: 8.551 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.2984, allocations: 125.9 kB / 432.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001885/0.2986, allocations: 237.1 kB / 433 MB, free: 8.473 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005885/0.2992, allocations: 0.582 MB / 433.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.2992, allocations: 0 / 433.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.293e-06/0.2992, allocations: 0 / 433.5 MB, free: 8.387 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.865e-06/0.2992, allocations: 2.094 kB / 433.6 MB, free: 8.387 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.001426/0.3006, allocations: 0.7852 MB / 434.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.419e-05/0.3007, allocations: 9.094 kB / 434.3 MB, free: 7.875 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.3008, allocations: 47.41 kB / 434.4 MB, free: 7.852 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003999/0.3012, allocations: 329.8 kB / 434.7 MB, free: 7.613 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.525e-05/0.3012, allocations: 30.31 kB / 434.7 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.453e-05/0.3013, allocations: 35.7 kB / 434.8 MB, free: 7.609 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009007/0.3022, allocations: 443 kB / 435.2 MB, free: 7.566 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.424e-05/0.3022, allocations: 9.781 kB / 435.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.941e-05/0.3023, allocations: 12.56 kB / 435.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.125e-05/0.3023, allocations: 9.625 kB / 435.2 MB, free: 7.559 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001018/0.3033, allocations: 447.2 kB / 435.7 MB, free: 7.551 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002393/0.3057, allocations: 1.277 MB / 437 MB, free: 6.836 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009332/0.3066, allocations: 376.7 kB / 437.3 MB, free: 6.684 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004915/0.3071, allocations: 233.5 kB / 437.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.137e-05/0.3072, allocations: 13.09 kB / 437.6 MB, free: 6.586 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.652e-05/0.3072, allocations: 37.16 kB / 437.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.963e-06/0.3072, allocations: 0 / 437.6 MB, free: 6.543 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005689/0.3129, allocations: 2.247 MB / 439.8 MB, free: 5.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.246e-05/0.3129, allocations: 61.25 kB / 439.9 MB, free: 5.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002883/0.3132, allocations: 278.4 kB / 440.2 MB, free: 5.062 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.038e-05/0.3132, allocations: 43.75 kB / 440.2 MB, free: 5.02 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.72e-05/0.3133, allocations: 169.6 kB / 440.4 MB, free: 4.875 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001296/0.3135, allocations: 186.8 kB / 440.6 MB, free: 4.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001743/0.3136, allocations: 100.2 kB / 440.7 MB, free: 4.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.051e-05/0.3137, allocations: 346.6 kB / 441 MB, free: 4.352 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005033/0.3142, allocations: 223.8 kB / 441.2 MB, free: 4.262 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005539/0.3147, allocations: 288.2 kB / 441.5 MB, free: 4.125 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008757/0.3156, allocations: 400.8 kB / 441.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3156, allocations: 1.094 kB / 441.9 MB, free: 3.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.00168/0.3173, allocations: 0.7225 MB / 442.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.263e-05/0.3173, allocations: 4.719 kB / 442.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.017e-05/0.3173, allocations: 2.25 kB / 442.6 MB, free: 3.613 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001147/0.3185, allocations: 425.7 kB / 443 MB, free: 3.465 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002884/0.3188, allocations: 72.02 kB / 443.1 MB, free: 3.461 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002438/0.3212, allocations: 3.636 MB / 446.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006077/0.3218, allocations: 76.11 kB / 446.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.55e-05/0.3219, allocations: 19.5 kB / 446.8 MB, free: 15.96 MB / 366.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 (44): * Single equations (assignments): 41 * 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,21)} Notification: Performance of prepare postOptimizeDAE: time 0.000369/0.3223, allocations: 175.9 kB / 447 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000122/0.3224, allocations: 43.08 kB / 447.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00184/0.3242, allocations: 0.7046 MB / 447.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3242, allocations: 13.25 kB / 447.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.3242, allocations: 1.312 kB / 447.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3242, allocations: 3.375 kB / 447.8 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002617/0.3269, allocations: 1.272 MB / 449.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.227e-06/0.3269, allocations: 5 kB / 449.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002928/0.3271, allocations: 54.98 kB / 449.1 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001084/0.3282, allocations: 413.5 kB / 449.5 MB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.627e-05/0.3283, allocations: 19.14 kB / 449.5 MB, free: 14.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003489/0.3318, allocations: 3.616 MB / 453.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3318, allocations: 0 / 453.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002338/0.3341, allocations: 1.018 MB / 454.2 MB, free: 10.66 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002592/0.3344, allocations: 160 kB / 454.3 MB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.197e-05/0.3345, allocations: 19.36 kB / 454.3 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005427/0.335, allocations: 73.97 kB / 454.4 MB, free: 10.5 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002482/0.3353, allocations: 94.62 kB / 454.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.118e-05/0.3353, allocations: 25.62 kB / 454.5 MB, free: 10.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002373/0.3355, allocations: 191.7 kB / 454.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3355, allocations: 0 / 454.7 MB, free: 10.37 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005772/0.3361, allocations: 121.8 kB / 454.8 MB, free: 10.36 MB / 366.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,21)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001425/0.3376, allocations: 396.7 kB / 455.2 MB, free: 10.18 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00182/0.3394, allocations: 0.7616 MB / 456 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3394, allocations: 0 / 456 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.3404, allocations: 0.5201 MB / 456.5 MB, free: 9.469 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000589/0.341, allocations: 76.61 kB / 456.6 MB, free: 9.438 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002192/0.3432, allocations: 1.008 MB / 457.6 MB, free: 8.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004695/0.3436, allocations: 0.8071 MB / 458.4 MB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001468/0.3438, allocations: 37.39 kB / 458.4 MB, free: 8.125 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.3439, allocations: 35.02 kB / 458.5 MB, free: 8.113 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3439, allocations: 5.062 kB / 458.5 MB, free: 8.109 MB / 366.1 MB Notification: Performance of Templates: time 0.01975/0.3636, allocations: 10.16 MB / 468.6 MB, free: 3.672 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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.061171971261501]