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.001318/0.001318, allocations: 183.4 kB / 18.04 MB, free: 3.543 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.355/1.355, allocations: 205.4 MB / 224.2 MB, free: 8.941 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.0008684/0.0008685, allocations: 86.34 kB / 272.5 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003174/0.0003174, allocations: 16 kB / 329.5 MB, free: 15.25 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2367, allocations: 47.57 MB / 377 MB, free: 45.61 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1012/0.3379, allocations: 80.57 MB / 457.6 MB, free: 15.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002457/0.3382, allocations: 71.97 kB / 457.7 MB, free: 15.91 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02221/0.3604, allocations: 7.752 MB / 465.4 MB, free: 8.137 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3605, allocations: 0 / 465.4 MB, free: 8.137 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.172e-05/0.3605, allocations: 8 kB / 465.4 MB, free: 8.129 MB / 346.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.001682/0.3622, allocations: 0.7216 MB / 466.1 MB, free: 7.352 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.849e-05/0.3623, allocations: 12.02 kB / 466.2 MB, free: 7.34 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.3625, allocations: 56.38 kB / 466.2 MB, free: 7.285 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006209/0.3631, allocations: 315.2 kB / 466.5 MB, free: 6.938 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.631e-05/0.3632, allocations: 29.38 kB / 466.5 MB, free: 6.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001319/0.3633, allocations: 40.38 kB / 466.6 MB, free: 6.871 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001044/0.3644, allocations: 458.9 kB / 467 MB, free: 6.418 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.797e-05/0.3644, allocations: 12.09 kB / 467 MB, free: 6.406 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.59e-05/0.3645, allocations: 19.94 kB / 467.1 MB, free: 6.387 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.279e-05/0.3645, allocations: 8 kB / 467.1 MB, free: 6.379 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009981/0.3655, allocations: 451.7 kB / 467.5 MB, free: 5.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.3683, allocations: 1.145 MB / 468.7 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009033/0.3692, allocations: 396.3 kB / 469 MB, free: 4.344 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005657/0.3698, allocations: 266 kB / 469.3 MB, free: 4.082 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.424e-05/0.3699, allocations: 8.438 kB / 469.3 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.215e-05/0.37, allocations: 42.97 kB / 469.4 MB, free: 4.023 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 2.354e-06/0.37, allocations: 0 / 469.4 MB, free: 4.023 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.005308/0.3753, allocations: 2.349 MB / 471.7 MB, free: 1.543 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.3754, allocations: 59.97 kB / 471.8 MB, free: 1.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.3757, allocations: 263 kB / 472 MB, free: 1.207 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.61e-05/0.3758, allocations: 41.7 kB / 472.1 MB, free: 1.16 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001246/0.3759, allocations: 173.4 kB / 472.2 MB, free: 0.9883 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001767/0.3761, allocations: 209.2 kB / 472.4 MB, free: 0.7812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.034e-05/0.3761, allocations: 8 kB / 472.4 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001469/0.3763, allocations: 350.7 kB / 472.8 MB, free: 432 kB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004572/0.3768, allocations: 233.1 kB / 473 MB, free: 200 kB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005001/0.3773, allocations: 264.8 kB / 473.3 MB, free: 15.93 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007662/0.378, allocations: 394.3 kB / 473.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.3781, allocations: 0 / 473.7 MB, free: 15.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001606/0.3797, allocations: 0.7287 MB / 474.4 MB, free: 14.8 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.3797, allocations: 11.98 kB / 474.4 MB, free: 14.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.082e-05/0.3797, allocations: 7.938 kB / 474.4 MB, free: 14.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008026/0.3805, allocations: 401.3 kB / 474.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003396/0.3809, allocations: 87.89 kB / 474.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001258/0.3822, allocations: 1.327 MB / 476.2 MB, free: 12.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005251/0.3827, allocations: 100 kB / 476.3 MB, free: 12.82 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-05/0.3828, allocations: 20 kB / 476.3 MB, free: 12.8 MB / 362.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 (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.0002816/0.3831, allocations: 181.9 kB / 476.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.3832, allocations: 35.53 kB / 476.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001577/0.3848, allocations: 0.7443 MB / 477.3 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.528e-06/0.3848, allocations: 4 kB / 477.3 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.433e-06/0.3848, allocations: 0 / 477.3 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3848, allocations: 3.984 kB / 477.3 MB, free: 11.8 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002832/0.3877, allocations: 1.419 MB / 478.7 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.074e-05/0.3877, allocations: 8 kB / 478.7 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003673/0.3881, allocations: 92.05 kB / 478.8 MB, free: 10.21 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006922/0.3888, allocations: 385.4 kB / 479.2 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.993e-05/0.3888, allocations: 23.97 kB / 479.2 MB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.39, allocations: 1.3 MB / 480.5 MB, free: 8.453 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.078e-06/0.39, allocations: 4.031 kB / 480.5 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002081/0.3921, allocations: 1.018 MB / 481.5 MB, free: 7.391 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003439/0.3924, allocations: 160.6 kB / 481.7 MB, free: 7.215 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001126/0.3926, allocations: 20 kB / 481.7 MB, free: 7.195 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004712/0.393, allocations: 79.94 kB / 481.8 MB, free: 7.117 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002568/0.3933, allocations: 120 kB / 481.9 MB, free: 7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.306e-05/0.3934, allocations: 27.97 kB / 481.9 MB, free: 6.973 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002242/0.3936, allocations: 190 kB / 482.1 MB, free: 6.789 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3936, allocations: 0 / 482.1 MB, free: 6.789 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006042/0.3942, allocations: 144 kB / 482.3 MB, free: 6.648 MB / 362.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 7,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002939/0.3946, allocations: 143 kB / 482.4 MB, free: 6.5 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001372/0.3959, allocations: 0.6078 MB / 483 MB, free: 5.875 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.396, allocations: 0 / 483 MB, free: 5.875 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006914/0.3966, allocations: 326.7 kB / 483.3 MB, free: 5.555 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006632/0.3973, allocations: 72.55 kB / 483.4 MB, free: 5.484 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003977/0.4013, allocations: 1.761 MB / 485.2 MB, free: 3.684 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004192/0.4018, allocations: 0.8244 MB / 486 MB, free: 2.836 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002055/0.402, allocations: 35.28 kB / 486 MB, free: 2.797 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.388e-05/0.4021, allocations: 35.42 kB / 486 MB, free: 2.762 MB / 362.7 MB Notification: Performance of SimCode: time 8.51e-07/0.4021, allocations: 0 / 486 MB, free: 2.762 MB / 362.7 MB Notification: Performance of Templates: time 0.01558/0.4177, allocations: 8.469 MB / 494.5 MB, free: 10.3 MB / 378.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/jenkins1/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