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.001908/0.001908, allocations: 113.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002787/0.002787, allocations: 206.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.154/2.154, allocations: 227.4 MB / 247.6 MB, free: 10.5 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001177/0.001177, allocations: 67.88 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3105/0.3116, allocations: 50.54 MB / 409.9 MB, free: 1.625 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.00664/0.3183, allocations: 2.949 MB / 412.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002907/0.3213, allocations: 1.048 MB / 413.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002895/0.3216, allocations: 7.938 kB / 413.9 MB, free: 13.6 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004458/0.3221, allocations: 71.38 kB / 414 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005665/0.3227, allocations: 166.8 kB / 414.2 MB, free: 13.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005456/0.3233, allocations: 183.7 kB / 414.3 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008913/0.3242, allocations: 0.5969 MB / 414.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000329/0.3245, allocations: 118.7 kB / 415 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000435/0.325, allocations: 267.2 kB / 415.3 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005135/0.3255, allocations: 287 kB / 415.6 MB, free: 11.92 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001169/0.3256, allocations: 48 kB / 415.6 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002619/0.3259, allocations: 104 kB / 415.7 MB, free: 11.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002503/0.3262, allocations: 127.6 kB / 415.9 MB, free: 11.65 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003159/0.3265, allocations: 234.8 kB / 416.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009337/0.3274, allocations: 0.5813 MB / 416.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.744e-06/0.3275, allocations: 0 / 416.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.3275, allocations: 0 / 416.7 MB, free: 10.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.204e-05/0.3275, allocations: 7.922 kB / 416.7 MB, free: 10.83 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.002275/0.3298, allocations: 0.7681 MB / 417.5 MB, free: 10.01 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.999e-05/0.3298, allocations: 8.031 kB / 417.5 MB, free: 10 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001747/0.33, allocations: 48.38 kB / 417.5 MB, free: 9.957 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000782/0.3308, allocations: 334.3 kB / 417.8 MB, free: 9.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.779e-05/0.3309, allocations: 29.38 kB / 417.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001195/0.331, allocations: 36.38 kB / 417.9 MB, free: 9.527 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.3324, allocations: 442.6 kB / 418.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.818e-05/0.3324, allocations: 0 / 418.3 MB, free: 9.086 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.774e-05/0.3325, allocations: 12 kB / 418.3 MB, free: 9.074 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.503e-05/0.3325, allocations: 11.94 kB / 418.4 MB, free: 9.062 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001532/0.3341, allocations: 447.7 kB / 418.8 MB, free: 8.625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003366/0.3375, allocations: 1.277 MB / 420.1 MB, free: 7.281 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001294/0.3388, allocations: 400.3 kB / 420.5 MB, free: 6.875 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00077/0.3396, allocations: 246.1 kB / 420.7 MB, free: 6.633 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.204e-05/0.3396, allocations: 4.438 kB / 420.7 MB, free: 6.629 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.977e-05/0.3397, allocations: 43 kB / 420.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.847e-06/0.3397, allocations: 0 / 420.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.008828/0.3486, allocations: 2.256 MB / 423 MB, free: 4.188 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.874e-05/0.3487, allocations: 63.72 kB / 423.1 MB, free: 4.113 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004836/0.3491, allocations: 270.6 kB / 423.3 MB, free: 3.844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.951e-05/0.3492, allocations: 41.7 kB / 423.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001843/0.3494, allocations: 172.7 kB / 423.5 MB, free: 3.621 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002242/0.3497, allocations: 177.5 kB / 423.7 MB, free: 3.445 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002859/0.35, allocations: 102.1 kB / 423.8 MB, free: 3.34 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002663/0.3503, allocations: 346.8 kB / 424.1 MB, free: 2.992 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007923/0.3511, allocations: 225 kB / 424.4 MB, free: 2.77 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009363/0.352, allocations: 287.2 kB / 424.6 MB, free: 2.473 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001317/0.3533, allocations: 399.7 kB / 425 MB, free: 2.062 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.3534, allocations: 0 / 425 MB, free: 2.062 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.002555/0.3559, allocations: 0.7235 MB / 425.8 MB, free: 1.32 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.356, allocations: 4 kB / 425.8 MB, free: 1.316 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.356, allocations: 8.125 kB / 425.8 MB, free: 1.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001663/0.3577, allocations: 422.2 kB / 426.2 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000424/0.3581, allocations: 71.89 kB / 426.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004804/0.3629, allocations: 3.652 MB / 429.9 MB, free: 12.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008521/0.3638, allocations: 71.94 kB / 430 MB, free: 12.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.552e-05/0.3639, allocations: 28.08 kB / 430 MB, free: 12.77 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.0003903/0.3643, allocations: 170.5 kB / 430.2 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001563/0.3645, allocations: 35.62 kB / 430.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00251/0.367, allocations: 0.7278 MB / 430.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.03e-05/0.367, allocations: 4 kB / 430.9 MB, free: 11.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.221e-05/0.367, allocations: 11.92 kB / 430.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.3671, allocations: 0 / 430.9 MB, free: 11.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003277/0.3703, allocations: 1.294 MB / 432.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3704, allocations: 3.938 kB / 432.2 MB, free: 10.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002832/0.3707, allocations: 55.91 kB / 432.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001203/0.3719, allocations: 406.2 kB / 432.7 MB, free: 9.977 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.459e-05/0.3719, allocations: 19.98 kB / 432.7 MB, free: 9.957 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003656/0.3756, allocations: 3.606 MB / 436.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.3756, allocations: 0 / 436.3 MB, free: 6.043 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002177/0.3778, allocations: 1.025 MB / 437.3 MB, free: 4.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002487/0.3781, allocations: 168.7 kB / 437.5 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.49e-05/0.3782, allocations: 12 kB / 437.5 MB, free: 4.797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005175/0.3787, allocations: 71.91 kB / 437.6 MB, free: 4.727 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002443/0.3789, allocations: 92.34 kB / 437.7 MB, free: 4.637 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.05e-05/0.379, allocations: 31.91 kB / 437.7 MB, free: 4.605 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002316/0.3792, allocations: 194 kB / 437.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3793, allocations: 0 / 437.9 MB, free: 4.414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005979/0.3799, allocations: 124 kB / 438 MB, free: 4.293 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.001015/0.3809, allocations: 366.6 kB / 438.4 MB, free: 4.039 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00169/0.3826, allocations: 0.8006 MB / 439.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3826, allocations: 3.938 kB / 439.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009211/0.3835, allocations: 0.5384 MB / 439.7 MB, free: 2.648 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005952/0.3841, allocations: 85.59 kB / 439.8 MB, free: 2.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002147/0.3863, allocations: 1.037 MB / 440.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004616/0.3868, allocations: 0.8085 MB / 441.7 MB, free: 0.6602 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001184/0.3869, allocations: 35.42 kB / 441.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of SimCode: time 5.92e-07/0.3869, allocations: 0 / 441.7 MB, free: 0.6211 MB / 350.1 MB Notification: Performance of Templates: time 0.01351/0.4004, allocations: 9.529 MB / 451.2 MB, free: 7.098 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