Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001369/0.001369, allocations: 119.5 kB / 21.17 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001408/0.001408, allocations: 213.5 kB / 24.47 MB, free: 4.191 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.392/1.392, allocations: 230.4 MB / 258.1 MB, free: 8.125 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 71.98 kB / 378.7 MB, free: 2.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2465/0.2484, allocations: 53.31 MB / 432 MB, free: 7.387 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004754/0.2532, allocations: 2.985 MB / 435 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001908/0.2551, allocations: 1.06 MB / 436.1 MB, free: 3.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000156/0.2552, allocations: 7.938 kB / 436.1 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000318/0.2556, allocations: 83.34 kB / 436.2 MB, free: 3.23 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003573/0.2559, allocations: 154.9 kB / 436.3 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.2563, allocations: 203.6 kB / 436.5 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006373/0.2569, allocations: 0.5968 MB / 437.1 MB, free: 2.281 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.2571, allocations: 86.69 kB / 437.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003143/0.2574, allocations: 259.2 kB / 437.5 MB, free: 1.938 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.2578, allocations: 291 kB / 437.7 MB, free: 1.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.836e-05/0.2579, allocations: 48 kB / 437.8 MB, free: 1.605 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00018/0.2581, allocations: 95.98 kB / 437.9 MB, free: 1.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001789/0.2583, allocations: 131.6 kB / 438 MB, free: 1.383 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002334/0.2585, allocations: 230.9 kB / 438.2 MB, free: 1.156 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007098/0.2592, allocations: 0.5929 MB / 438.8 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.146e-06/0.2592, allocations: 4 kB / 438.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2592, allocations: 0 / 438.8 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.155e-06/0.2592, allocations: 0 / 438.8 MB, free: 0.5586 MB / 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.001605/0.2608, allocations: 0.7908 MB / 439.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.2609, allocations: 8.031 kB / 439.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001156/0.261, allocations: 48.66 kB / 439.7 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005413/0.2615, allocations: 322.6 kB / 440 MB, free: 15.31 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.664e-05/0.2616, allocations: 29.38 kB / 440 MB, free: 15.28 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.391e-05/0.2616, allocations: 40.31 kB / 440.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009041/0.2625, allocations: 442.6 kB / 440.5 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.45e-05/0.2626, allocations: 7.953 kB / 440.5 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.082e-05/0.2626, allocations: 12 kB / 440.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.2626, allocations: 12 kB / 440.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.2637, allocations: 439.7 kB / 441 MB, free: 14.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002497/0.2661, allocations: 1.273 MB / 442.2 MB, free: 13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009538/0.2671, allocations: 388.2 kB / 442.6 MB, free: 12.61 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004946/0.2676, allocations: 230.1 kB / 442.8 MB, free: 12.38 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.145e-05/0.2676, allocations: 8.438 kB / 442.8 MB, free: 12.37 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.924e-05/0.2677, allocations: 35 kB / 442.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of pre-optimization done (n=50): time 2.194e-06/0.2677, allocations: 0 / 442.9 MB, free: 12.33 MB / 350.1 MB Notification: Performance of matching and sorting (n=54): time 0.00582/0.2735, allocations: 2.245 MB / 445.1 MB, free: 9.949 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.067e-05/0.2736, allocations: 63.78 kB / 445.2 MB, free: 9.875 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003547/0.2739, allocations: 270.6 kB / 445.4 MB, free: 9.605 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.733e-05/0.274, allocations: 45.69 kB / 445.5 MB, free: 9.555 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001456/0.2741, allocations: 169 kB / 445.7 MB, free: 9.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001734/0.2743, allocations: 194.5 kB / 445.8 MB, free: 9.195 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002044/0.2745, allocations: 102.2 kB / 445.9 MB, free: 9.09 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.2747, allocations: 342.8 kB / 446.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004985/0.2752, allocations: 221 kB / 446.5 MB, free: 8.527 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005737/0.2757, allocations: 295.1 kB / 446.8 MB, free: 8.227 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008314/0.2766, allocations: 391.8 kB / 447.2 MB, free: 7.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.2766, allocations: 4 kB / 447.2 MB, free: 7.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001666/0.2782, allocations: 0.7197 MB / 447.9 MB, free: 7.082 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.909e-05/0.2783, allocations: 6.656 kB / 447.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.206e-06/0.2783, allocations: 4 kB / 447.9 MB, free: 7.074 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001105/0.2794, allocations: 426.3 kB / 448.3 MB, free: 6.648 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002773/0.2797, allocations: 71.89 kB / 448.4 MB, free: 6.578 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00347/0.2831, allocations: 3.653 MB / 452 MB, free: 2.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000588/0.2837, allocations: 80 kB / 452.1 MB, free: 2.547 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.154e-05/0.2838, allocations: 23.98 kB / 452.1 MB, free: 2.523 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.0002914/0.2841, allocations: 174.2 kB / 452.3 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001048/0.2842, allocations: 39.77 kB / 452.3 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001702/0.2859, allocations: 0.7122 MB / 453.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.2859, allocations: 4 kB / 453.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.2859, allocations: 0 / 453.1 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.248e-06/0.2859, allocations: 7.984 kB / 453.1 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.2883, allocations: 1.27 MB / 454.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.2883, allocations: 0 / 454.3 MB, free: 228 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002819/0.2886, allocations: 59.89 kB / 454.4 MB, free: 168 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001003/0.2896, allocations: 406.2 kB / 454.8 MB, free: 15.76 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.814e-05/0.2896, allocations: 19.97 kB / 454.8 MB, free: 15.74 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003286/0.2929, allocations: 3.618 MB / 458.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.497e-06/0.2929, allocations: 4 kB / 458.4 MB, free: 11.81 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002174/0.2951, allocations: 1.01 MB / 459.4 MB, free: 10.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002523/0.2953, allocations: 160.8 kB / 459.6 MB, free: 10.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.051e-05/0.2954, allocations: 19.98 kB / 459.6 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005037/0.2959, allocations: 71.91 kB / 459.7 MB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002314/0.2962, allocations: 100.3 kB / 459.8 MB, free: 10.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.44e-05/0.2962, allocations: 19.98 kB / 459.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002258/0.2964, allocations: 190 kB / 460 MB, free: 10.21 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2964, allocations: 0 / 460 MB, free: 10.21 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000512/0.2969, allocations: 120 kB / 460.1 MB, free: 10.09 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.001371/0.2983, allocations: 384.7 kB / 460.5 MB, free: 9.852 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001692/0.3, allocations: 0.7652 MB / 461.3 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3, allocations: 0 / 461.3 MB, free: 9.059 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009523/0.301, allocations: 0.5113 MB / 461.8 MB, free: 8.523 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000585/0.3016, allocations: 68.44 kB / 461.8 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00218/0.3037, allocations: 1.056 MB / 462.9 MB, free: 7.367 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004553/0.3042, allocations: 0.8085 MB / 463.7 MB, free: 6.527 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000122/0.3043, allocations: 43.42 kB / 463.7 MB, free: 6.484 MB / 366.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3043, allocations: 4 kB / 463.7 MB, free: 6.48 MB / 366.1 MB Notification: Performance of Templates: time 0.01339/0.3177, allocations: 9.507 MB / 473.3 MB, free: 12.98 MB / 382.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 8.151401499751955]