Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009742/0.0009742, allocations: 198.8 kB / 18.07 MB, free: 3.773 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.271/1.271, allocations: 226.5 MB / 245.4 MB, free: 6.445 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000779/0.000779, allocations: 93.44 kB / 297.4 MB, free: 6.688 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002186/0.0002186, allocations: 8 kB / 357.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2121, allocations: 51.29 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09352/0.3057, allocations: 83.21 MB / 491.9 MB, free: 8.391 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001684/0.3059, allocations: 75.97 kB / 491.9 MB, free: 8.316 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02462/0.3305, allocations: 9.198 MB / 0.4894 GB, free: 15.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.053e-06/0.3306, allocations: 0 / 0.4894 GB, free: 15.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 2.13e-05/0.3306, allocations: 8 kB / 0.4894 GB, free: 15.1 MB / 378.7 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.001228/0.3318, allocations: 0.733 MB / 0.4901 GB, free: 14.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.3319, allocations: 12.03 kB / 0.4901 GB, free: 14.31 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.923e-05/0.332, allocations: 44.38 kB / 0.4902 GB, free: 14.27 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003668/0.3323, allocations: 310.6 kB / 0.4905 GB, free: 13.92 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.292e-05/0.3324, allocations: 37.31 kB / 0.4905 GB, free: 13.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.662e-05/0.3325, allocations: 40.28 kB / 0.4905 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007907/0.3333, allocations: 438.6 kB / 0.491 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.954e-05/0.3333, allocations: 0 / 0.491 GB, free: 13.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.44e-05/0.3333, allocations: 12 kB / 0.491 GB, free: 13.4 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.3334, allocations: 8 kB / 0.491 GB, free: 13.39 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009436/0.3343, allocations: 447.7 kB / 0.4914 GB, free: 12.96 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002239/0.3366, allocations: 1.324 MB / 0.4927 GB, free: 11.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008365/0.3374, allocations: 419.2 kB / 0.4931 GB, free: 11.14 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004583/0.3379, allocations: 242.1 kB / 0.4933 GB, free: 10.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.216e-05/0.3379, allocations: 8.438 kB / 0.4933 GB, free: 10.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.643e-05/0.338, allocations: 39.03 kB / 0.4934 GB, free: 10.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=50): time 1.823e-06/0.338, allocations: 0 / 0.4934 GB, free: 10.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.005106/0.3431, allocations: 2.357 MB / 0.4957 GB, free: 8.352 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.526e-05/0.3432, allocations: 55.84 kB / 0.4957 GB, free: 8.285 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002674/0.3434, allocations: 266.6 kB / 0.496 GB, free: 8.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.974e-05/0.3435, allocations: 41.7 kB / 0.496 GB, free: 7.973 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.437e-05/0.3436, allocations: 164.8 kB / 0.4962 GB, free: 7.805 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001316/0.3437, allocations: 181.5 kB / 0.4964 GB, free: 7.625 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.563e-05/0.3438, allocations: 19.94 kB / 0.4964 GB, free: 7.605 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001016/0.3439, allocations: 338.8 kB / 0.4967 GB, free: 7.266 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004522/0.3443, allocations: 225 kB / 0.4969 GB, free: 7.047 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004904/0.3448, allocations: 295.2 kB / 0.4972 GB, free: 6.742 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007473/0.3456, allocations: 399.7 kB / 0.4976 GB, free: 6.332 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.3456, allocations: 0 / 0.4976 GB, free: 6.332 MB / 378.7 MB Notification: Performance of matching and sorting (n=68) (initialization): time 0.001566/0.3472, allocations: 0.7196 MB / 0.4983 GB, free: 5.594 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.726e-05/0.3472, allocations: 4 kB / 0.4983 GB, free: 5.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.924e-06/0.3472, allocations: 4 kB / 0.4983 GB, free: 5.586 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001039/0.3483, allocations: 375.3 kB / 0.4986 GB, free: 5.211 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000263/0.3485, allocations: 71.91 kB / 0.4987 GB, free: 5.141 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002717/0.3513, allocations: 3.434 MB / 0.5021 GB, free: 1.418 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005273/0.3518, allocations: 104 kB / 0.5022 GB, free: 1.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.422e-05/0.3519, allocations: 20 kB / 0.5022 GB, free: 1.297 MB / 378.7 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 (clutch.free,$PRE.clutch.startForward,clutch.startForward,$PRE.clutch.startBackward,clutch.startBackward,clutch.locked,$PRE.clutch.mode,clutch.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 21} Notification: Performance of prepare postOptimizeDAE: time 0.0002582/0.3521, allocations: 177.6 kB / 0.5024 GB, free: 1.113 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.769e-05/0.3522, allocations: 39.53 kB / 0.5024 GB, free: 1.074 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001536/0.3538, allocations: 0.7122 MB / 0.5031 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.123e-06/0.3538, allocations: 7.984 kB / 0.5031 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.3538, allocations: 0 / 0.5031 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.865e-06/0.3538, allocations: 4 kB / 0.5031 GB, free: 344 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1984/0.5522, allocations: 1.288 MB / 0.5044 GB, free: 95.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.306e-06/0.5523, allocations: 0.9375 kB / 0.5044 GB, free: 95.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000324/0.5526, allocations: 57.95 kB / 0.5044 GB, free: 95.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001016/0.5536, allocations: 357 kB / 0.5048 GB, free: 95.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.414e-05/0.5537, allocations: 20.58 kB / 0.5048 GB, free: 95.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002314/0.556, allocations: 3.409 MB / 0.5081 GB, free: 92.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.556, allocations: 4.594 kB / 0.5081 GB, free: 92.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001982/0.558, allocations: 1.03 MB / 0.5091 GB, free: 92.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002459/0.5583, allocations: 167.8 kB / 0.5093 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.725e-05/0.5584, allocations: 16.62 kB / 0.5093 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005058/0.5589, allocations: 99.72 kB / 0.5094 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002739/0.5592, allocations: 110.8 kB / 0.5095 GB, free: 91.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.625e-05/0.5592, allocations: 26.94 kB / 0.5095 GB, free: 91.96 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002/0.5594, allocations: 186.9 kB / 0.5097 GB, free: 91.88 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5594, allocations: 0 / 0.5097 GB, free: 91.88 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000508/0.56, allocations: 125.1 kB / 0.5098 GB, free: 91.88 MB / 378.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 1 {2 21} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008041/0.5608, allocations: 398.7 kB / 0.5102 GB, free: 91.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001694/0.5625, allocations: 0.7883 MB / 0.511 GB, free: 91.52 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.5625, allocations: 0 / 0.511 GB, free: 91.52 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009449/0.5634, allocations: 0.5327 MB / 0.5115 GB, free: 91.3 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005525/0.564, allocations: 78.16 kB / 0.5116 GB, free: 91.29 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001768/0.5658, allocations: 1.243 MB / 0.5128 GB, free: 90.59 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001846/0.566, allocations: 0.8078 MB / 0.5136 GB, free: 89.88 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001298/0.5661, allocations: 34.44 kB / 0.5136 GB, free: 89.88 MB / 378.7 MB Notification: Performance of SimCode: time 5.31e-07/0.5661, allocations: 0 / 0.5136 GB, free: 89.88 MB / 378.7 MB Notification: Performance of Templates: time 0.009996/0.5761, allocations: 9.376 MB / 0.5227 GB, free: 86.84 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.SimpleGearShift.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches