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.001242/0.001242, allocations: 107 kB / 21.18 MB, free: 0.6484 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.001412/0.001412, allocations: 215.4 kB / 24.48 MB, free: 3.941 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.461/1.461, allocations: 230.6 MB / 258.2 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.00157/0.00157, allocations: 55.91 kB / 379 MB, free: 2.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2128/0.2144, allocations: 53.36 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004485/0.2189, allocations: 2.775 MB / 435.1 MB, free: 3.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00175/0.2206, allocations: 1.009 MB / 436.1 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001376/0.2208, allocations: 8 kB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000269/0.221, allocations: 83.23 kB / 436.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003526/0.2214, allocations: 154.9 kB / 436.3 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003557/0.2217, allocations: 203.7 kB / 436.5 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006071/0.2223, allocations: 0.5891 MB / 437.1 MB, free: 1.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.2225, allocations: 86.95 kB / 437.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003179/0.2228, allocations: 275.1 kB / 437.5 MB, free: 1.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003733/0.2232, allocations: 295 kB / 437.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.361e-05/0.2233, allocations: 48 kB / 437.8 MB, free: 1.203 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001876/0.2235, allocations: 95.98 kB / 437.9 MB, free: 1.109 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001772/0.2237, allocations: 131.6 kB / 438 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002084/0.2239, allocations: 203.1 kB / 438.2 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006556/0.2245, allocations: 0.5892 MB / 438.8 MB, free: 200 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.491e-06/0.2245, allocations: 7.984 kB / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.2245, allocations: 0 / 438.8 MB, free: 192 kB / 334.1 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.2245, allocations: 0 / 438.8 MB, free: 192 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.001552/0.2261, allocations: 0.7078 MB / 439.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.2261, allocations: 8.031 kB / 439.6 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001167/0.2262, allocations: 48.66 kB / 439.6 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004939/0.2267, allocations: 272.7 kB / 439.9 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.482e-05/0.2268, allocations: 29.38 kB / 439.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.183e-05/0.2269, allocations: 40.31 kB / 439.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009691/0.2278, allocations: 442.6 kB / 440.4 MB, free: 14.6 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.425e-05/0.2279, allocations: 7.953 kB / 440.4 MB, free: 14.59 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.945e-05/0.2279, allocations: 12 kB / 440.4 MB, free: 14.58 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.345e-05/0.2279, allocations: 12 kB / 440.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001046/0.229, allocations: 435.7 kB / 440.8 MB, free: 14.14 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002414/0.2314, allocations: 1.062 MB / 441.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009488/0.2323, allocations: 373.5 kB / 442.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005142/0.2328, allocations: 237.7 kB / 442.5 MB, free: 12.43 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.619e-05/0.2329, allocations: 16.38 kB / 442.5 MB, free: 12.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.867e-05/0.2329, allocations: 35 kB / 442.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 1.774e-06/0.2329, allocations: 7.938 kB / 442.5 MB, free: 12.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.005634/0.2385, allocations: 1.94 MB / 444.5 MB, free: 10.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.647e-05/0.2386, allocations: 59.84 kB / 444.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003012/0.2389, allocations: 269.8 kB / 444.8 MB, free: 10.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.702e-05/0.239, allocations: 45.7 kB / 444.9 MB, free: 9.965 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001207/0.2391, allocations: 168.9 kB / 445 MB, free: 9.793 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.2393, allocations: 194.4 kB / 445.2 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002037/0.2395, allocations: 94.33 kB / 445.3 MB, free: 9.504 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2396, allocations: 342.8 kB / 445.6 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005246/0.2401, allocations: 225.2 kB / 445.9 MB, free: 8.941 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005681/0.2407, allocations: 296 kB / 446.1 MB, free: 8.637 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008608/0.2416, allocations: 394.8 kB / 446.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2416, allocations: 0 / 446.5 MB, free: 8.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001681/0.2433, allocations: 0.722 MB / 447.3 MB, free: 7.492 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.2433, allocations: 8 kB / 447.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.2433, allocations: 0 / 447.3 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00113/0.2444, allocations: 430.5 kB / 447.7 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002835/0.2447, allocations: 59.91 kB / 447.7 MB, free: 6.996 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003197/0.2479, allocations: 3.406 MB / 451.1 MB, free: 3.359 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005121/0.2484, allocations: 80.16 kB / 451.2 MB, free: 3.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.358e-05/0.2485, allocations: 27.92 kB / 451.2 MB, free: 3.254 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.0002222/0.2487, allocations: 158.4 kB / 451.4 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001075/0.2488, allocations: 47.73 kB / 451.5 MB, free: 3.043 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/0.2505, allocations: 0.703 MB / 452.2 MB, free: 2.328 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.2505, allocations: 8 kB / 452.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.554e-06/0.2505, allocations: 0 / 452.2 MB, free: 2.32 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.707e-06/0.2505, allocations: 11.86 kB / 452.2 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002371/0.2529, allocations: 1.116 MB / 453.3 MB, free: 1.145 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.661e-06/0.2529, allocations: 3.984 kB / 453.3 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003029/0.2532, allocations: 55.91 kB / 453.3 MB, free: 1.086 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001045/0.2543, allocations: 398.3 kB / 453.7 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.274e-05/0.2543, allocations: 27.91 kB / 453.8 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003086/0.2574, allocations: 3.365 MB / 457.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.2574, allocations: 3.938 kB / 457.1 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002162/0.2596, allocations: 1.008 MB / 458.1 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002302/0.2598, allocations: 91.66 kB / 458.2 MB, free: 11.95 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.329e-05/0.2599, allocations: 16 kB / 458.2 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005358/0.2604, allocations: 71.97 kB / 458.3 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000222/0.2607, allocations: 100.3 kB / 458.4 MB, free: 11.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.789e-05/0.2607, allocations: 19.98 kB / 458.4 MB, free: 11.74 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002031/0.2609, allocations: 193.1 kB / 458.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2609, allocations: 0 / 458.6 MB, free: 11.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005042/0.2614, allocations: 116 kB / 458.7 MB, free: 11.44 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.001465/0.2629, allocations: 405.8 kB / 459.1 MB, free: 11.19 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001655/0.2645, allocations: 0.7597 MB / 459.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.2645, allocations: 0 / 459.9 MB, free: 10.41 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009656/0.2655, allocations: 0.5105 MB / 460.4 MB, free: 9.867 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005764/0.2661, allocations: 84.31 kB / 460.5 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.2682, allocations: 1.02 MB / 461.5 MB, free: 8.734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.2684, allocations: 200.2 kB / 461.7 MB, free: 8.512 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.2686, allocations: 35.27 kB / 461.7 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001044/0.2687, allocations: 35.42 kB / 461.8 MB, free: 8.445 MB / 366.1 MB Notification: Performance of SimCode: time 4.6e-07/0.2687, allocations: 4 kB / 461.8 MB, free: 8.441 MB / 366.1 MB Notification: Performance of Templates: time 0.01596/0.2846, allocations: 9.254 MB / 471 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/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.699231563005014]