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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) 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=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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001587/0.001587, allocations: 113.4 kB / 18.45 MB, free: 4.598 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00203/0.00203, allocations: 208.8 kB / 19.41 MB, free: 3.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.439/1.439, allocations: 227.7 MB / 247.9 MB, free: 10.17 MB / 206.1 MB 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.001831/0.001831, allocations: 63.91 kB / 359.7 MB, free: 12.75 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2619/0.2637, allocations: 50.54 MB / 410.2 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.SimpleGearShift): time 0.004532/0.2682, allocations: 2.953 MB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001872/0.2701, allocations: 1.048 MB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001487/0.2702, allocations: 7.938 kB / 414.2 MB, free: 13.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003039/0.2705, allocations: 83.23 kB / 414.3 MB, free: 13.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003757/0.2709, allocations: 162.9 kB / 414.4 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003454/0.2713, allocations: 187.6 kB / 414.6 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006231/0.2719, allocations: 0.5931 MB / 415.2 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001943/0.2721, allocations: 94.62 kB / 415.3 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003079/0.2724, allocations: 263.2 kB / 415.6 MB, free: 12.01 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003607/0.2727, allocations: 290.9 kB / 415.9 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.917e-05/0.2728, allocations: 48 kB / 415.9 MB, free: 11.68 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.273, allocations: 95.98 kB / 416 MB, free: 11.59 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001696/0.2732, allocations: 131.5 kB / 416.1 MB, free: 11.46 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002374/0.2734, allocations: 234.9 kB / 416.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007291/0.2741, allocations: 0.5836 MB / 416.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2741, allocations: 0 / 416.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.2741, allocations: 0 / 416.9 MB, free: 10.64 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.418e-06/0.2742, allocations: 4 kB / 416.9 MB, free: 10.64 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.001674/0.2758, allocations: 0.7869 MB / 417.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.2759, allocations: 8.031 kB / 417.7 MB, free: 9.793 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.276, allocations: 48.66 kB / 417.8 MB, free: 9.746 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005437/0.2765, allocations: 334.5 kB / 418.1 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.446e-05/0.2766, allocations: 29.38 kB / 418.1 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.607e-05/0.2767, allocations: 36.38 kB / 418.2 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009163/0.2776, allocations: 438.6 kB / 418.6 MB, free: 8.879 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.312e-05/0.2776, allocations: 7.953 kB / 418.6 MB, free: 8.871 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.907e-05/0.2776, allocations: 12 kB / 418.6 MB, free: 8.859 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.689e-05/0.2777, allocations: 15.98 kB / 418.6 MB, free: 8.844 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.2787, allocations: 435.7 kB / 419.1 MB, free: 8.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002528/0.2812, allocations: 1.281 MB / 420.3 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009755/0.2822, allocations: 384.3 kB / 420.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005198/0.2827, allocations: 226.1 kB / 420.9 MB, free: 6.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.687e-05/0.2828, allocations: 8.438 kB / 420.9 MB, free: 6.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.2828, allocations: 38.98 kB / 421 MB, free: 6.402 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 2.013e-06/0.2828, allocations: 0 / 421 MB, free: 6.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=54): time 0.00591/0.2887, allocations: 2.241 MB / 423.2 MB, free: 4.027 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.337e-05/0.2888, allocations: 71.72 kB / 423.3 MB, free: 3.945 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003408/0.2891, allocations: 274.6 kB / 423.6 MB, free: 3.672 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.356e-05/0.2892, allocations: 41.7 kB / 423.6 MB, free: 3.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.2893, allocations: 173 kB / 423.8 MB, free: 3.449 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002359/0.2896, allocations: 186.5 kB / 424 MB, free: 3.266 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001855/0.2898, allocations: 102.2 kB / 424.1 MB, free: 3.16 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002349/0.29, allocations: 346.8 kB / 424.4 MB, free: 2.812 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005277/0.2905, allocations: 225 kB / 424.6 MB, free: 2.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005783/0.2911, allocations: 283.2 kB / 424.9 MB, free: 2.297 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008556/0.2919, allocations: 395.7 kB / 425.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.037e-06/0.292, allocations: 4 kB / 425.3 MB, free: 1.887 MB / 334.1 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001714/0.2937, allocations: 0.7159 MB / 426 MB, free: 1.152 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.2937, allocations: 4 kB / 426 MB, free: 1.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.256e-06/0.2937, allocations: 7.938 kB / 426 MB, free: 1.141 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001112/0.2948, allocations: 430.3 kB / 426.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002794/0.2951, allocations: 71.84 kB / 426.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003687/0.2988, allocations: 3.65 MB / 430.2 MB, free: 12.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005893/0.2994, allocations: 84.03 kB / 430.2 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-05/0.2994, allocations: 20 kB / 430.3 MB, free: 12.59 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.0003081/0.2997, allocations: 166.6 kB / 430.4 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001076/0.2998, allocations: 43.77 kB / 430.5 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001793/0.3016, allocations: 0.7044 MB / 431.2 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.3016, allocations: 8 kB / 431.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3016, allocations: 0 / 431.2 MB, free: 11.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.3016, allocations: 7.984 kB / 431.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00248/0.3041, allocations: 1.274 MB / 432.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.077e-06/0.3041, allocations: 4 kB / 432.5 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002928/0.3044, allocations: 55.91 kB / 432.5 MB, free: 10.24 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001041/0.3055, allocations: 413.8 kB / 432.9 MB, free: 9.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.737e-05/0.3055, allocations: 15.98 kB / 432.9 MB, free: 9.816 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00335/0.3089, allocations: 3.618 MB / 436.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3089, allocations: 3.938 kB / 436.6 MB, free: 5.887 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002192/0.3111, allocations: 1.01 MB / 437.6 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002461/0.3113, allocations: 164.8 kB / 437.7 MB, free: 4.672 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.72e-05/0.3114, allocations: 16 kB / 437.7 MB, free: 4.656 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005027/0.3119, allocations: 71.91 kB / 437.8 MB, free: 4.586 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002233/0.3121, allocations: 96.34 kB / 437.9 MB, free: 4.492 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.767e-05/0.3122, allocations: 27.97 kB / 437.9 MB, free: 4.465 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000223/0.3124, allocations: 190 kB / 438.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3124, allocations: 0 / 438.1 MB, free: 4.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005242/0.3129, allocations: 120 kB / 438.2 MB, free: 4.16 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.001356/0.3143, allocations: 394.2 kB / 438.6 MB, free: 3.902 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00172/0.316, allocations: 0.7652 MB / 439.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.316, allocations: 0 / 439.4 MB, free: 3.113 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009651/0.317, allocations: 0.5113 MB / 439.9 MB, free: 2.578 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005589/0.3175, allocations: 67.19 kB / 440 MB, free: 2.512 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002133/0.3196, allocations: 1.027 MB / 441 MB, free: 1.457 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.3201, allocations: 0.8085 MB / 441.8 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001408/0.3202, allocations: 35.27 kB / 441.8 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001004/0.3203, allocations: 35.42 kB / 441.9 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3203, allocations: 4 kB / 441.9 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of Templates: time 0.01781/0.3382, allocations: 10.14 MB / 452 MB, free: 6.457 MB / 366.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches