Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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=1000,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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") translateModel(Modelica.Mechanics.Rotational.Examples.SimpleGearShift,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,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_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001629/0.001629, allocations: 109.9 kB / 18.45 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002038/0.002038, allocations: 213.9 kB / 19.4 MB, free: 3.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.444/1.444, allocations: 227.4 MB / 247.6 MB, free: 10.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001149/0.001149, allocations: 59.91 kB / 359.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2419/0.243, allocations: 50.55 MB / 409.9 MB, free: 1.578 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004065/0.2471, allocations: 2.938 MB / 412.9 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001665/0.2488, allocations: 1.048 MB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001514/0.249, allocations: 8 kB / 413.9 MB, free: 13.56 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003112/0.2493, allocations: 75.31 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003225/0.2497, allocations: 154.9 kB / 414.1 MB, free: 13.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003329/0.25, allocations: 195.6 kB / 414.3 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005572/0.2506, allocations: 0.593 MB / 414.9 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.2508, allocations: 122.7 kB / 415 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002976/0.2511, allocations: 263.2 kB / 415.3 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003418/0.2515, allocations: 290.9 kB / 415.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.204e-05/0.2516, allocations: 52 kB / 415.6 MB, free: 11.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001855/0.2517, allocations: 104 kB / 415.7 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001513/0.2519, allocations: 123.6 kB / 415.9 MB, free: 11.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002032/0.2521, allocations: 234.9 kB / 416.1 MB, free: 11.38 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000589/0.2527, allocations: 0.589 MB / 416.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2527, allocations: 3.938 kB / 416.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.2527, allocations: 0 / 416.7 MB, free: 10.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.983e-06/0.2527, allocations: 0 / 416.7 MB, free: 10.79 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.001455/0.2542, allocations: 0.7681 MB / 417.5 MB, free: 9.965 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.2542, allocations: 8.031 kB / 417.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.2544, allocations: 48.38 kB / 417.5 MB, free: 9.91 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004438/0.2548, allocations: 326.4 kB / 417.8 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.067e-05/0.2549, allocations: 29.38 kB / 417.9 MB, free: 9.523 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.82e-05/0.2549, allocations: 36.38 kB / 417.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008511/0.2558, allocations: 442.6 kB / 418.3 MB, free: 9.047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.952e-05/0.2558, allocations: 4 kB / 418.3 MB, free: 9.043 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.91e-05/0.2559, allocations: 12 kB / 418.3 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.135e-05/0.2559, allocations: 15.94 kB / 418.4 MB, free: 9.016 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009563/0.2569, allocations: 443.7 kB / 418.8 MB, free: 8.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002286/0.2592, allocations: 1.277 MB / 420.1 MB, free: 7.238 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008955/0.2601, allocations: 401.5 kB / 420.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000483/0.2606, allocations: 246.1 kB / 420.7 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.12e-05/0.2606, allocations: 8.438 kB / 420.7 MB, free: 6.582 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.756e-05/0.2607, allocations: 42.94 kB / 420.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.645e-06/0.2607, allocations: 0 / 420.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005516/0.2662, allocations: 2.252 MB / 423 MB, free: 4.145 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.354e-05/0.2663, allocations: 67.72 kB / 423.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003079/0.2666, allocations: 270.6 kB / 423.3 MB, free: 3.797 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.609e-05/0.2666, allocations: 37.7 kB / 423.4 MB, free: 3.754 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001208/0.2668, allocations: 176.7 kB / 423.5 MB, free: 3.574 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.2669, allocations: 177.5 kB / 423.7 MB, free: 3.398 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001729/0.2671, allocations: 98.14 kB / 423.8 MB, free: 3.297 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.2673, allocations: 346.8 kB / 424.1 MB, free: 2.949 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004696/0.2677, allocations: 221 kB / 424.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005099/0.2683, allocations: 287.2 kB / 424.6 MB, free: 2.434 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007917/0.2691, allocations: 403.7 kB / 425 MB, free: 2.02 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.2691, allocations: 0 / 425 MB, free: 2.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001562/0.2706, allocations: 0.7235 MB / 425.8 MB, free: 1.277 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.972e-05/0.2707, allocations: 12.12 kB / 425.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.2707, allocations: 48 / 425.8 MB, free: 1.266 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001002/0.2717, allocations: 426.2 kB / 426.2 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002662/0.272, allocations: 75.89 kB / 426.3 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002924/0.2749, allocations: 3.644 MB / 429.9 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005513/0.2755, allocations: 80.03 kB / 430 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.206e-05/0.2755, allocations: 23.97 kB / 430 MB, free: 12.72 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.0002465/0.2758, allocations: 174.5 kB / 430.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.601e-05/0.2759, allocations: 31.62 kB / 430.2 MB, free: 12.51 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001624/0.2775, allocations: 0.7316 MB / 430.9 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.2776, allocations: 11.98 kB / 431 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.447e-06/0.2776, allocations: 0 / 431 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.05e-06/0.2776, allocations: 0 / 431 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002208/0.2798, allocations: 1.286 MB / 432.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.2798, allocations: 3.938 kB / 432.2 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002842/0.2801, allocations: 59.91 kB / 432.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009315/0.281, allocations: 410.1 kB / 432.7 MB, free: 9.93 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.438e-05/0.2811, allocations: 15.98 kB / 432.7 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00322/0.2843, allocations: 3.61 MB / 436.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.024e-06/0.2844, allocations: 0 / 436.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002025/0.2864, allocations: 1.029 MB / 437.4 MB, free: 4.941 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002193/0.2866, allocations: 160.6 kB / 437.5 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.047e-05/0.2867, allocations: 20 kB / 437.5 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005039/0.2872, allocations: 67.91 kB / 437.6 MB, free: 4.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002084/0.2875, allocations: 96.34 kB / 437.7 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.332e-05/0.2875, allocations: 27.97 kB / 437.7 MB, free: 4.559 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002062/0.2877, allocations: 194 kB / 437.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.1e-07/0.2877, allocations: 0 / 437.9 MB, free: 4.367 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005257/0.2883, allocations: 120 kB / 438 MB, free: 4.25 MB / 350.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.0009298/0.2892, allocations: 382.4 kB / 438.4 MB, free: 3.98 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001662/0.2909, allocations: 0.7929 MB / 439.2 MB, free: 3.164 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2909, allocations: 3.938 kB / 439.2 MB, free: 3.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009513/0.2919, allocations: 0.5384 MB / 439.7 MB, free: 2.598 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005949/0.2925, allocations: 81.48 kB / 439.8 MB, free: 2.523 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002165/0.2947, allocations: 1.036 MB / 440.9 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004104/0.2951, allocations: 0.8046 MB / 441.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001237/0.2952, allocations: 39.42 kB / 441.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.2952, allocations: 0 / 441.7 MB, free: 0.582 MB / 350.1 MB Notification: Performance of Templates: time 0.01325/0.3085, allocations: 9.48 MB / 451.2 MB, free: 7.105 MB / 366.1 MB make -j1 -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches