Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.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.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction") translateModel(Modelica.Mechanics.Rotational.Examples.Friction,tolerance=1e-06,outputFormat="mat",numberOfIntervals=6000,variableFilter="time|clutch.phi_rel|clutch.w_rel|inertia3.phi|inertia3.w|spring.phi_rel|spring.w_rel|brake.mode|brake.startBackward|brake.startForward|clutch.mode|clutch.startBackward|clutch.startForward",fileNamePrefix="Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001532/0.001532, allocations: 195.7 kB / 18.07 MB, free: 3.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.359/1.359, allocations: 226.5 MB / 245.4 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007551/0.0007552, allocations: 93.86 kB / 297.4 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003652/0.0003652, allocations: 8 kB / 357.4 MB, free: 10.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2933/0.2937, allocations: 51.3 MB / 408.7 MB, free: 27.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1493/0.4431, allocations: 83.25 MB / 491.9 MB, free: 8.34 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003196/0.4435, allocations: 79.95 kB / 492 MB, free: 8.262 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04534/0.4889, allocations: 10.27 MB / 0.4905 GB, free: 13.97 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4889, allocations: 3.938 kB / 0.4905 GB, free: 13.96 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.359e-05/0.489, allocations: 8 kB / 0.4905 GB, free: 13.96 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002148/0.4911, allocations: 0.7682 MB / 0.4913 GB, free: 13.14 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.763e-05/0.4912, allocations: 8.031 kB / 0.4913 GB, free: 13.13 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003503/0.4916, allocations: 68.36 kB / 0.4913 GB, free: 13.06 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006779/0.4923, allocations: 339.2 kB / 0.4917 GB, free: 12.69 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6e-05/0.4923, allocations: 37.38 kB / 0.4917 GB, free: 12.65 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001341/0.4925, allocations: 40.28 kB / 0.4917 GB, free: 12.61 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.4939, allocations: 462.9 kB / 0.4922 GB, free: 12.16 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.671e-05/0.494, allocations: 16.12 kB / 0.4922 GB, free: 12.14 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.734e-05/0.494, allocations: 15.94 kB / 0.4922 GB, free: 12.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.484e-05/0.4941, allocations: 12 kB / 0.4922 GB, free: 12.11 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.4957, allocations: 459.7 kB / 0.4926 GB, free: 11.67 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0035/0.4992, allocations: 1.184 MB / 0.4938 GB, free: 10.43 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001371/0.5006, allocations: 428.2 kB / 0.4942 GB, free: 10 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008503/0.5015, allocations: 270.4 kB / 0.4945 GB, free: 9.738 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.059e-05/0.5016, allocations: 12.55 kB / 0.4945 GB, free: 9.723 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.168e-05/0.5016, allocations: 39.06 kB / 0.4945 GB, free: 9.676 MB / 378.7 MB Notification: Performance of pre-optimization done (n=55): time 3.807e-06/0.5016, allocations: 0 / 0.4945 GB, free: 9.676 MB / 378.7 MB Notification: Performance of matching and sorting (n=61): time 0.008089/0.5097, allocations: 2.391 MB / 0.4969 GB, free: 7.16 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.5098, allocations: 55.97 kB / 0.4969 GB, free: 7.094 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005098/0.5103, allocations: 300.6 kB / 0.4972 GB, free: 6.801 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.457e-05/0.5104, allocations: 45.7 kB / 0.4972 GB, free: 6.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001592/0.5106, allocations: 185.3 kB / 0.4974 GB, free: 6.566 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002458/0.5109, allocations: 209.1 kB / 0.4976 GB, free: 6.359 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.552e-05/0.5109, allocations: 16 kB / 0.4976 GB, free: 6.344 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.5111, allocations: 350.7 kB / 0.498 GB, free: 5.992 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007931/0.5119, allocations: 229.2 kB / 0.4982 GB, free: 5.766 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008179/0.5127, allocations: 272.8 kB / 0.4984 GB, free: 5.496 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001263/0.514, allocations: 398.3 kB / 0.4988 GB, free: 5.102 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.986e-06/0.514, allocations: 0 / 0.4988 GB, free: 5.102 MB / 378.7 MB Notification: Performance of matching and sorting (n=75) (initialization): time 0.002348/0.5164, allocations: 0.7016 MB / 0.4995 GB, free: 4.387 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.5165, allocations: 11.98 kB / 0.4995 GB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.5165, allocations: 0 / 0.4995 GB, free: 4.375 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001252/0.5177, allocations: 321.4 kB / 0.4998 GB, free: 4.055 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000587/0.5183, allocations: 91.89 kB / 0.4999 GB, free: 3.965 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002056/0.5204, allocations: 1.37 MB / 0.5013 GB, free: 2.543 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009148/0.5214, allocations: 108 kB / 0.5014 GB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.114e-05/0.5214, allocations: 16 kB / 0.5014 GB, free: 2.422 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (56): * Single equations (assignments): 54 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 9,1 10} Notification: Performance of prepare postOptimizeDAE: time 0.0003776/0.5218, allocations: 173.8 kB / 0.5015 GB, free: 2.242 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001519/0.522, allocations: 43.53 kB / 0.5016 GB, free: 2.199 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001986/0.5222, allocations: 63.8 kB / 0.5016 GB, free: 2.133 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.184e-05/0.5222, allocations: 7.938 kB / 0.5016 GB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.5223, allocations: 0 / 0.5016 GB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.5223, allocations: 3.938 kB / 0.5016 GB, free: 2.121 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004467/0.5267, allocations: 1.47 MB / 0.5031 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.801e-06/0.5268, allocations: 0 / 0.5031 GB, free: 0.5703 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000633/0.5274, allocations: 91.98 kB / 0.5032 GB, free: 492 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001126/0.5286, allocations: 301.6 kB / 0.5035 GB, free: 184 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.386e-05/0.5287, allocations: 19.97 kB / 0.5035 GB, free: 164 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2397/0.7684, allocations: 1.348 MB / 0.5048 GB, free: 93.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.615e-06/0.7685, allocations: 3 kB / 0.5048 GB, free: 93.73 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003457/0.7719, allocations: 1.056 MB / 0.5058 GB, free: 93.55 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003942/0.7724, allocations: 175.1 kB / 0.506 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001463/0.7725, allocations: 20.67 kB / 0.506 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007734/0.7733, allocations: 80.98 kB / 0.5061 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003812/0.7737, allocations: 120.4 kB / 0.5062 GB, free: 93.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.592e-05/0.7738, allocations: 25.3 kB / 0.5062 GB, free: 93.45 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003534/0.7742, allocations: 213 kB / 0.5064 GB, free: 93.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.7742, allocations: 0 / 0.5064 GB, free: 93.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008169/0.775, allocations: 135.8 kB / 0.5066 GB, free: 93.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 6 (clutch.phi_rel,clutch.w_rel,spring.phi_rel,spring.w_rel,inertia1.phi,inertia1.w) * Number of discrete variables: 10 (clutch.startForward,clutch.startBackward,clutch.locked,clutch.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,clutch.free) * Number of discrete states: 6 (brake.mode,brake.startBackward,brake.startForward,clutch.mode,clutch.startForward,clutch.startBackward) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (43): * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {1 10,1 8} Notification: Performance of Backend phase and start with SimCode phase: time 0.001265/0.7763, allocations: 404.4 kB / 0.5069 GB, free: 93.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002069/0.7784, allocations: 0.573 MB / 0.5075 GB, free: 93.25 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.7784, allocations: 0 / 0.5075 GB, free: 93.25 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001125/0.7795, allocations: 333.9 kB / 0.5078 GB, free: 93.23 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001099/0.7806, allocations: 83.08 kB / 0.5079 GB, free: 93.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006285/0.7869, allocations: 1.838 MB / 0.5097 GB, free: 92.46 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005282/0.7875, allocations: 0.8328 MB / 0.5105 GB, free: 91.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003169/0.7879, allocations: 39.56 kB / 0.5106 GB, free: 91.75 MB / 378.7 MB Notification: Performance of SimCode: time 1.092e-06/0.7879, allocations: 0.5 kB / 0.5106 GB, free: 91.75 MB / 378.7 MB Notification: Performance of Templates: time 0.01559/0.8035, allocations: 8.981 MB / 0.5193 GB, free: 89.88 MB / 378.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_trunk_cpp_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches