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.001368/0.001368, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.001493/0.001493, allocations: 209.3 kB / 23.73 MB, free: 4.379 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.487/1.487, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001602/0.001602, allocations: 51.91 kB / 378.2 MB, free: 2.551 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2431, allocations: 53.37 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004562/0.2477, allocations: 2.771 MB / 434.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.2494, allocations: 1.013 MB / 435.4 MB, free: 2.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001296/0.2496, allocations: 4 kB / 435.4 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002679/0.2498, allocations: 83.3 kB / 435.4 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003606/0.2502, allocations: 158.9 kB / 435.6 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003498/0.2505, allocations: 191.7 kB / 435.8 MB, free: 2.496 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006249/0.2512, allocations: 0.6086 MB / 436.4 MB, free: 1.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002001/0.2514, allocations: 78.98 kB / 436.5 MB, free: 1.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003349/0.2517, allocations: 275.2 kB / 436.7 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003814/0.2521, allocations: 291 kB / 437 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.274e-05/0.2522, allocations: 48 kB / 437.1 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000188/0.2524, allocations: 95.98 kB / 437.2 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001764/0.2525, allocations: 131.6 kB / 437.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002126/0.2528, allocations: 203.1 kB / 437.5 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006679/0.2534, allocations: 0.5927 MB / 438.1 MB, free: 196 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.2534, allocations: 4 kB / 438.1 MB, free: 192 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.2534, allocations: 4 kB / 438.1 MB, free: 188 kB / 334.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.2534, allocations: 0 / 438.1 MB, free: 188 kB / 334.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.001516/0.255, allocations: 0.7038 MB / 438.8 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.255, allocations: 12.03 kB / 438.8 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001135/0.2551, allocations: 48.66 kB / 438.9 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005102/0.2556, allocations: 272.8 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.2556, allocations: 33.25 kB / 439.2 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.48e-05/0.2557, allocations: 36.38 kB / 439.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008955/0.2566, allocations: 442.6 kB / 439.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.311e-05/0.2566, allocations: 7.953 kB / 439.6 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.615e-05/0.2567, allocations: 16 kB / 439.6 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.2567, allocations: 8 kB / 439.7 MB, free: 14.56 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001016/0.2577, allocations: 439.7 kB / 440.1 MB, free: 14.13 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002385/0.2601, allocations: 1.058 MB / 441.1 MB, free: 13.03 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009076/0.261, allocations: 373.5 kB / 441.5 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004865/0.2615, allocations: 234 kB / 441.7 MB, free: 12.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.373e-05/0.2616, allocations: 8.375 kB / 441.7 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/0.2616, allocations: 43 kB / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.834e-06/0.2616, allocations: 0 / 441.8 MB, free: 12.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005508/0.2671, allocations: 1.947 MB / 443.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.942e-05/0.2671, allocations: 55.84 kB / 443.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003289/0.2675, allocations: 273.8 kB / 444.1 MB, free: 10.01 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.33e-05/0.2675, allocations: 41.7 kB / 444.1 MB, free: 9.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001515/0.2677, allocations: 172.9 kB / 444.3 MB, free: 9.789 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001887/0.2679, allocations: 190.4 kB / 444.5 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001853/0.2681, allocations: 98.33 kB / 444.5 MB, free: 9.5 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002049/0.2683, allocations: 346.8 kB / 444.9 MB, free: 9.152 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005024/0.2688, allocations: 213.2 kB / 445.1 MB, free: 8.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005608/0.2693, allocations: 296 kB / 445.4 MB, free: 8.641 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008484/0.2702, allocations: 398.8 kB / 445.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.124e-06/0.2702, allocations: 0 / 445.8 MB, free: 8.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001664/0.2718, allocations: 0.726 MB / 446.5 MB, free: 7.488 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.2719, allocations: 4 kB / 446.5 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.2719, allocations: 4 kB / 446.5 MB, free: 7.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001109/0.273, allocations: 428.1 kB / 446.9 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002725/0.2733, allocations: 63.91 kB / 447 MB, free: 6.992 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003381/0.2766, allocations: 3.4 MB / 450.4 MB, free: 3.363 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005337/0.2772, allocations: 83.86 kB / 450.5 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.418e-05/0.2772, allocations: 20.22 kB / 450.5 MB, free: 3.262 MB / 350.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.0002609/0.2775, allocations: 174.3 kB / 450.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.452e-05/0.2776, allocations: 35.77 kB / 450.7 MB, free: 3.047 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001657/0.2792, allocations: 0.7068 MB / 451.4 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.961e-06/0.2792, allocations: 4 kB / 451.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.846e-06/0.2792, allocations: 0 / 451.4 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.078e-06/0.2793, allocations: 7.922 kB / 451.4 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002261/0.2815, allocations: 1.124 MB / 452.5 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.2815, allocations: 4 kB / 452.5 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002756/0.2818, allocations: 51.91 kB / 452.6 MB, free: 1.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009723/0.2828, allocations: 398.2 kB / 453 MB, free: 0.6914 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.651e-05/0.2828, allocations: 27.97 kB / 453 MB, free: 0.6641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003303/0.2861, allocations: 3.358 MB / 456.4 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.2861, allocations: 12.03 kB / 456.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002165/0.2883, allocations: 1.004 MB / 457.4 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002612/0.2886, allocations: 91.66 kB / 457.5 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.256e-05/0.2886, allocations: 12 kB / 457.5 MB, free: 11.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000485/0.2891, allocations: 75.91 kB / 457.6 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002147/0.2893, allocations: 96.3 kB / 457.7 MB, free: 11.77 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.484e-05/0.2894, allocations: 23.98 kB / 457.7 MB, free: 11.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.2896, allocations: 185.2 kB / 457.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2896, allocations: 0 / 457.9 MB, free: 11.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000501/0.2901, allocations: 123.9 kB / 458 MB, free: 11.45 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.001496/0.2916, allocations: 415 kB / 458.4 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001687/0.2933, allocations: 0.752 MB / 459.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.487e-06/0.2933, allocations: 0 / 459.1 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009565/0.2942, allocations: 0.5181 MB / 459.7 MB, free: 9.863 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005632/0.2948, allocations: 72.58 kB / 459.7 MB, free: 9.793 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00214/0.2969, allocations: 1.035 MB / 460.8 MB, free: 8.73 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002165/0.2971, allocations: 200.2 kB / 461 MB, free: 8.508 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001332/0.2973, allocations: 31.28 kB / 461 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001034/0.2974, allocations: 35.42 kB / 461 MB, free: 8.445 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.2974, allocations: 0 / 461 MB, free: 8.445 MB / 366.1 MB Notification: Performance of Templates: time 0.01687/0.3143, allocations: 9.259 MB / 470.3 MB, free: 15.27 MB / 382.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: 4.822772860061377]