Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00104/0.00104, allocations: 171.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.553/1.553, allocations: 205.2 MB / 219.8 MB, free: 14.27 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008682/0.0008682, allocations: 90.67 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.988e-05/3.005e-05, allocations: 8 kB / 322.4 MB, free: 17.36 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1009, allocations: 47.57 MB / 370 MB, free: 1.727 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3451/0.4461, allocations: 80.4 MB / 450.4 MB, free: 12.91 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002487/0.4464, allocations: 70.41 kB / 450.5 MB, free: 12.88 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02252/0.4689, allocations: 7.719 MB / 458.2 MB, free: 6.234 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.306e-06/0.469, allocations: 7.938 kB / 458.2 MB, free: 6.227 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.909e-05/0.469, allocations: 8 kB / 458.2 MB, free: 6.219 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 98 * Number of variables: 98 Notification: Performance of Generate backend data structure: time 0.001615/0.4706, allocations: 0.6945 MB / 458.9 MB, free: 5.508 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.453e-05/0.4707, allocations: 12.03 kB / 458.9 MB, free: 5.496 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002162/0.4709, allocations: 51.44 kB / 459 MB, free: 5.445 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005626/0.4715, allocations: 306.8 kB / 459.3 MB, free: 5.129 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.4716, allocations: 37.66 kB / 459.3 MB, free: 5.105 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001165/0.4717, allocations: 42.69 kB / 459.4 MB, free: 5.078 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008541/0.4725, allocations: 420.1 kB / 459.8 MB, free: 4.789 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.843e-05/0.4726, allocations: 7.891 kB / 459.8 MB, free: 4.781 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.065e-05/0.4726, allocations: 17 kB / 459.8 MB, free: 4.777 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.567e-05/0.4727, allocations: 8 kB / 459.8 MB, free: 4.77 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007535/0.4734, allocations: 396 kB / 460.2 MB, free: 4.504 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002384/0.4758, allocations: 1.152 MB / 461.3 MB, free: 3.422 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007534/0.4766, allocations: 377 kB / 461.7 MB, free: 3.039 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000447/0.4771, allocations: 234.1 kB / 461.9 MB, free: 2.809 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.906e-05/0.4771, allocations: 20.34 kB / 462 MB, free: 2.789 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.216e-05/0.4772, allocations: 35 kB / 462 MB, free: 2.742 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 2.515e-06/0.4772, allocations: 0 / 462 MB, free: 2.742 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.003225/0.4804, allocations: 1.64 MB / 463.6 MB, free: 1.012 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.198e-05/0.4805, allocations: 59.97 kB / 463.7 MB, free: 0.9414 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002697/0.4808, allocations: 235.4 kB / 463.9 MB, free: 0.7031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 6.176e-05/0.4808, allocations: 45.7 kB / 464 MB, free: 0.6523 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001233/0.481, allocations: 173.4 kB / 464.1 MB, free: 488 kB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001902/0.4812, allocations: 201.2 kB / 464.3 MB, free: 284 kB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.942e-05/0.4813, allocations: 12 kB / 464.3 MB, free: 272 kB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0002099/0.4815, allocations: 346.8 kB / 464.7 MB, free: 15.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004197/0.4819, allocations: 197.5 kB / 464.9 MB, free: 15.72 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004471/0.4824, allocations: 250.3 kB / 465.1 MB, free: 15.47 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.4827, allocations: 162 kB / 465.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.136e-06/0.4827, allocations: 0 / 465.3 MB, free: 15.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001611/0.4844, allocations: 0.6849 MB / 466 MB, free: 14.62 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.874e-05/0.4844, allocations: 4 kB / 466 MB, free: 14.62 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.091e-05/0.4844, allocations: 11.95 kB / 466 MB, free: 14.61 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008941/0.4853, allocations: 385.4 kB / 466.4 MB, free: 14.22 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003713/0.4857, allocations: 91.89 kB / 466.4 MB, free: 14.13 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001289/0.487, allocations: 1.316 MB / 467.8 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005661/0.4876, allocations: 103.9 kB / 467.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.647e-05/0.4877, allocations: 27.92 kB / 467.9 MB, free: 12.64 MB / 346.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (58): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 7,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001966/0.4879, allocations: 141.8 kB / 468 MB, free: 12.49 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.488, allocations: 39.53 kB / 468.1 MB, free: 12.45 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001495/0.4895, allocations: 0.6974 MB / 468.8 MB, free: 11.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.936e-06/0.4895, allocations: 8 kB / 468.8 MB, free: 11.74 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.037e-05/0.4896, allocations: 4 kB / 468.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.4896, allocations: 3.984 kB / 468.8 MB, free: 11.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002834/0.4924, allocations: 1.36 MB / 470.1 MB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.4924, allocations: 7.984 kB / 470.1 MB, free: 10.28 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003907/0.4928, allocations: 92.05 kB / 470.2 MB, free: 10.19 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007301/0.4936, allocations: 369.5 kB / 470.6 MB, free: 9.824 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.019e-05/0.4936, allocations: 19.98 kB / 470.6 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001122/0.4948, allocations: 1.296 MB / 471.9 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.4948, allocations: 0 / 471.9 MB, free: 8.457 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.4965, allocations: 1.007 MB / 472.9 MB, free: 7.383 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002579/0.4968, allocations: 160.6 kB / 473.1 MB, free: 7.207 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000102/0.4969, allocations: 20 kB / 473.1 MB, free: 7.188 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00051/0.4974, allocations: 80.19 kB / 473.2 MB, free: 7.109 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002453/0.4977, allocations: 116.1 kB / 473.3 MB, free: 6.996 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.074e-05/0.4978, allocations: 31.91 kB / 473.3 MB, free: 6.965 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000223/0.498, allocations: 191.1 kB / 473.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.498, allocations: 0 / 473.5 MB, free: 6.777 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006/0.4986, allocations: 135.9 kB / 473.6 MB, free: 6.645 MB / 346.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) * 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 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004018/0.499, allocations: 140 kB / 473.8 MB, free: 6.496 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001422/0.5005, allocations: 0.5618 MB / 474.3 MB, free: 5.918 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.547e-06/0.5005, allocations: 0 / 474.3 MB, free: 5.918 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007165/0.5012, allocations: 302.4 kB / 474.6 MB, free: 5.621 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005947/0.5018, allocations: 70.31 kB / 474.7 MB, free: 5.555 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003725/0.5056, allocations: 1.328 MB / 476 MB, free: 4.184 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004601/0.5061, allocations: 0.8366 MB / 476.9 MB, free: 3.32 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.000186/0.5063, allocations: 39.22 kB / 476.9 MB, free: 3.285 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001001/0.5064, allocations: 31.42 kB / 476.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of SimCode: time 2.425e-06/0.5064, allocations: 0 / 476.9 MB, free: 3.254 MB / 346.7 MB Notification: Performance of Templates: time 0.0156/0.522, allocations: 8.443 MB / 485.4 MB, free: 10.81 MB / 362.7 MB make -j1 -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Mechanics/Rotational/Examples/Friction/Friction.csv","../files/Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches