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.001122/0.001122, allocations: 121.6 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001177/0.001178, allocations: 203.9 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.378/1.378, allocations: 227.4 MB / 246.9 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001317/0.001317, allocations: 59.91 kB / 358.7 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2576, allocations: 50.56 MB / 409.2 MB, free: 1.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.003887/0.2615, allocations: 2.934 MB / 412.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001631/0.2632, allocations: 1.052 MB / 413.2 MB, free: 13.49 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001495/0.2633, allocations: 8 kB / 413.2 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002823/0.2636, allocations: 79.25 kB / 413.3 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003296/0.264, allocations: 158.9 kB / 413.5 MB, free: 13.25 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003469/0.2643, allocations: 187.7 kB / 413.7 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005497/0.2649, allocations: 0.5969 MB / 414.3 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002247/0.2651, allocations: 118.7 kB / 414.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003795/0.2655, allocations: 267.2 kB / 414.6 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003278/0.2658, allocations: 291 kB / 414.9 MB, free: 11.8 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.316e-05/0.2659, allocations: 44 kB / 415 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001667/0.2661, allocations: 107.9 kB / 415.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002153/0.2663, allocations: 127.6 kB / 415.2 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002203/0.2665, allocations: 230.9 kB / 415.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000584/0.2671, allocations: 0.5773 MB / 416 MB, free: 10.72 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.738e-06/0.2672, allocations: 8 kB / 416 MB, free: 10.71 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2672, allocations: 0 / 416 MB, free: 10.71 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.494e-06/0.2672, allocations: 0 / 416 MB, free: 10.71 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.001375/0.2686, allocations: 0.772 MB / 416.8 MB, free: 9.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2686, allocations: 12.03 kB / 416.8 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001065/0.2687, allocations: 52.36 kB / 416.8 MB, free: 9.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000486/0.2692, allocations: 326.4 kB / 417.2 MB, free: 9.469 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.932e-05/0.2692, allocations: 25.38 kB / 417.2 MB, free: 9.445 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.078e-05/0.2693, allocations: 36.38 kB / 417.2 MB, free: 9.41 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008149/0.2701, allocations: 438.6 kB / 417.6 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.011e-05/0.2702, allocations: 7.922 kB / 417.6 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.336e-05/0.2702, allocations: 20 kB / 417.7 MB, free: 8.945 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.002e-05/0.2702, allocations: 8 kB / 417.7 MB, free: 8.938 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009614/0.2712, allocations: 443.6 kB / 418.1 MB, free: 8.504 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002268/0.2735, allocations: 1.277 MB / 419.4 MB, free: 7.16 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008759/0.2744, allocations: 407.5 kB / 419.8 MB, free: 6.75 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000483/0.2749, allocations: 246.1 kB / 420 MB, free: 6.508 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.217e-05/0.2749, allocations: 4.438 kB / 420 MB, free: 6.504 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.275, allocations: 39 kB / 420.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 1.734e-06/0.275, allocations: 0 / 420.1 MB, free: 6.457 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.005241/0.2802, allocations: 2.26 MB / 422.3 MB, free: 4.062 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.772e-05/0.2803, allocations: 59.78 kB / 422.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002693/0.2805, allocations: 274.6 kB / 422.7 MB, free: 3.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.121e-05/0.2806, allocations: 45.7 kB / 422.7 MB, free: 3.668 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001025/0.2807, allocations: 164.7 kB / 422.9 MB, free: 3.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001499/0.2809, allocations: 185.5 kB / 423 MB, free: 3.316 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001753/0.2811, allocations: 98.14 kB / 423.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.2812, allocations: 342.8 kB / 423.5 MB, free: 2.871 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004808/0.2817, allocations: 221 kB / 423.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005146/0.2822, allocations: 287.2 kB / 424 MB, free: 2.355 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000803/0.283, allocations: 403.7 kB / 424.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.283, allocations: 0 / 424.4 MB, free: 1.941 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001547/0.2846, allocations: 0.7197 MB / 425.1 MB, free: 1.203 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.2846, allocations: 7.938 kB / 425.1 MB, free: 1.195 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.464e-06/0.2846, allocations: 7.984 kB / 425.1 MB, free: 1.188 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001056/0.2857, allocations: 434.3 kB / 425.5 MB, free: 0.7539 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002598/0.286, allocations: 63.89 kB / 425.6 MB, free: 0.6914 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.2888, allocations: 3.653 MB / 429.2 MB, free: 12.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004652/0.2892, allocations: 76.06 kB / 429.3 MB, free: 12.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.331e-05/0.2893, allocations: 16 kB / 429.3 MB, free: 12.64 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.0002173/0.2895, allocations: 174.5 kB / 429.5 MB, free: 12.46 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.694e-05/0.2896, allocations: 43.53 kB / 429.5 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001554/0.2912, allocations: 0.7239 MB / 430.3 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.099e-06/0.2912, allocations: 4 kB / 430.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.555e-06/0.2912, allocations: 4 kB / 430.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.823e-06/0.2912, allocations: 7.984 kB / 430.3 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002187/0.2934, allocations: 1.286 MB / 431.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2934, allocations: 0 / 431.6 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.2937, allocations: 55.97 kB / 431.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00094/0.2946, allocations: 415.5 kB / 432 MB, free: 9.852 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/0.2947, allocations: 19.98 kB / 432 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00266/0.2974, allocations: 3.606 MB / 435.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.2974, allocations: 0 / 435.6 MB, free: 5.918 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00192/0.2993, allocations: 1.025 MB / 436.7 MB, free: 4.867 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001913/0.2995, allocations: 164.6 kB / 436.8 MB, free: 4.688 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.314e-05/0.2996, allocations: 20 kB / 436.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004481/0.3001, allocations: 67.91 kB / 436.9 MB, free: 4.602 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002125/0.3003, allocations: 100.3 kB / 437 MB, free: 4.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.3003, allocations: 19.97 kB / 437 MB, free: 4.484 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001851/0.3005, allocations: 194 kB / 437.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3005, allocations: 0 / 437.2 MB, free: 4.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004762/0.301, allocations: 120 kB / 437.3 MB, free: 4.176 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.000844/0.3019, allocations: 379.6 kB / 437.7 MB, free: 3.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00157/0.3034, allocations: 0.7965 MB / 438.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3035, allocations: 0 / 438.5 MB, free: 3.09 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000888/0.3043, allocations: 0.5386 MB / 439.1 MB, free: 2.527 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000541/0.3049, allocations: 77.62 kB / 439.1 MB, free: 2.453 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001922/0.3068, allocations: 1.011 MB / 440.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003422/0.3072, allocations: 0.8123 MB / 441 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001278/0.3073, allocations: 39.25 kB / 441 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.29e-05/0.3074, allocations: 35.42 kB / 441 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of SimCode: time 2.41e-07/0.3074, allocations: 0 / 441 MB, free: 0.5039 MB / 350.1 MB Notification: Performance of Templates: time 0.01513/0.3226, allocations: 10.08 MB / 451.1 MB, free: 6.469 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/SimpleGearShift/SimpleGearShift.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches