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.0009743/0.0009742, allocations: 177 kB / 8.7 MB, free: 384 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.677/1.677, allocations: 205.3 MB / 214.4 MB, free: 1.73 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000834/0.000834, allocations: 86.7 kB / 262.5 MB, free: 1.676 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.509e-05/1.511e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 47.59 MB / 363.1 MB, free: 7.078 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4124/0.5155, allocations: 80 MB / 443.1 MB, free: 15.67 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000225/0.5157, allocations: 65.34 kB / 443.1 MB, free: 15.64 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02181/0.5376, allocations: 7.666 MB / 450.8 MB, free: 9.145 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.5376, allocations: 4 kB / 450.8 MB, free: 9.141 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.25e-05/0.5377, allocations: 12 kB / 450.8 MB, free: 9.129 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.001293/0.539, allocations: 0.685 MB / 451.5 MB, free: 8.426 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.134e-05/0.539, allocations: 12.03 kB / 451.5 MB, free: 8.414 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001127/0.5391, allocations: 51.12 kB / 451.6 MB, free: 8.367 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004095/0.5396, allocations: 306.6 kB / 451.9 MB, free: 8.051 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.763e-05/0.5396, allocations: 19.95 kB / 451.9 MB, free: 8.031 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.909e-05/0.5397, allocations: 20 kB / 451.9 MB, free: 8.012 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006198/0.5403, allocations: 381.4 kB / 452.3 MB, free: 7.766 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006196/0.5409, allocations: 369.2 kB / 452.6 MB, free: 7.492 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.804e-05/0.541, allocations: 15.83 kB / 452.6 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.978e-05/0.541, allocations: 0 / 452.6 MB, free: 7.477 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.371e-05/0.541, allocations: 8 kB / 452.7 MB, free: 7.469 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002058/0.5431, allocations: 1.066 MB / 453.7 MB, free: 6.574 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006122/0.5437, allocations: 359.7 kB / 454.1 MB, free: 6.336 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003447/0.5441, allocations: 225.4 kB / 454.3 MB, free: 6.195 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.893e-05/0.5442, allocations: 4.438 kB / 454.3 MB, free: 6.191 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.618e-05/0.5442, allocations: 38.94 kB / 454.3 MB, free: 6.148 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 2.084e-06/0.5442, allocations: 4 kB / 454.3 MB, free: 6.145 MB / 330.7 MB Notification: Performance of matching and sorting (n=58): time 0.003292/0.5475, allocations: 1.567 MB / 455.9 MB, free: 4.773 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.404e-05/0.5476, allocations: 55.97 kB / 456 MB, free: 4.707 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.5478, allocations: 201.9 kB / 456.2 MB, free: 4.535 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 5.222e-05/0.5478, allocations: 37.5 kB / 456.2 MB, free: 4.496 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.548, allocations: 174.2 kB / 456.4 MB, free: 4.352 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001625/0.5481, allocations: 195.2 kB / 456.6 MB, free: 4.188 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.011e-05/0.5482, allocations: 0 / 456.6 MB, free: 4.188 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001374/0.5483, allocations: 348.1 kB / 456.9 MB, free: 3.852 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000279/0.5486, allocations: 190.2 kB / 457.1 MB, free: 3.742 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003066/0.5489, allocations: 232.8 kB / 457.3 MB, free: 3.598 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003605/0.5493, allocations: 164.6 kB / 457.5 MB, free: 3.492 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.5493, allocations: 0 / 457.5 MB, free: 3.492 MB / 330.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001339/0.5506, allocations: 0.6553 MB / 458.1 MB, free: 2.98 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.5507, allocations: 4 kB / 458.1 MB, free: 2.977 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.933e-05/0.5507, allocations: 7.984 kB / 458.1 MB, free: 2.969 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006827/0.5514, allocations: 378.9 kB / 458.5 MB, free: 2.68 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003478/0.5517, allocations: 99.47 kB / 458.6 MB, free: 2.586 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001228/0.553, allocations: 1.368 MB / 460 MB, free: 1.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005074/0.5535, allocations: 88.06 kB / 460.1 MB, free: 1.215 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.93e-05/0.5536, allocations: 23.3 kB / 460.1 MB, free: 1.195 MB / 330.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: clutch.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: brake.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic tau = f(a_relfric)" type: Real 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.0002322/0.5538, allocations: 120.9 kB / 460.2 MB, free: 1.07 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.275e-05/0.5539, allocations: 39.12 kB / 460.2 MB, free: 1.035 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001326/0.5552, allocations: 0.6469 MB / 460.9 MB, free: 0.5508 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.007e-06/0.5553, allocations: 4 kB / 460.9 MB, free: 0.5469 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.562e-06/0.5553, allocations: 3.938 kB / 460.9 MB, free: 0.543 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.784e-06/0.5553, allocations: 3.984 kB / 460.9 MB, free: 0.5391 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002529/0.5578, allocations: 1.268 MB / 462.2 MB, free: 15.47 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.629e-06/0.5578, allocations: 4.156 kB / 462.2 MB, free: 15.46 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003821/0.5582, allocations: 87.83 kB / 462.3 MB, free: 15.38 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006361/0.5589, allocations: 370.8 kB / 462.6 MB, free: 15.09 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.518e-05/0.5589, allocations: 15.09 kB / 462.6 MB, free: 15.08 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001194/0.5601, allocations: 1.34 MB / 464 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5602, allocations: 0 / 464 MB, free: 13.8 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001565/0.5617, allocations: 0.961 MB / 464.9 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002249/0.562, allocations: 164.1 kB / 465.1 MB, free: 12.86 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.735e-05/0.5621, allocations: 15.88 kB / 465.1 MB, free: 12.85 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.5625, allocations: 76.05 kB / 465.2 MB, free: 12.77 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002206/0.5627, allocations: 114.8 kB / 465.3 MB, free: 12.68 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.261e-05/0.5628, allocations: 22.92 kB / 465.3 MB, free: 12.66 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.000175/0.563, allocations: 166.8 kB / 465.5 MB, free: 12.52 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.563, allocations: 3.938 kB / 465.5 MB, free: 12.52 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000548/0.5635, allocations: 115.9 kB / 465.6 MB, free: 12.4 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.000276/0.5638, allocations: 134.5 kB / 465.7 MB, free: 12.27 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0009478/0.5648, allocations: 0.5331 MB / 466.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5648, allocations: 0 / 466.3 MB, free: 11.88 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005139/0.5653, allocations: 290.4 kB / 466.5 MB, free: 11.69 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004956/0.5658, allocations: 51.22 kB / 466.6 MB, free: 11.64 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003394/0.5692, allocations: 1.292 MB / 467.9 MB, free: 10.38 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004951/0.5698, allocations: 0.8325 MB / 468.7 MB, free: 9.527 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0001666/0.5699, allocations: 31.28 kB / 468.7 MB, free: 9.5 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.098e-05/0.57, allocations: 35.23 kB / 468.8 MB, free: 9.469 MB / 346.7 MB Notification: Performance of SimCode: time 5.52e-07/0.57, allocations: 0 / 468.8 MB, free: 9.469 MB / 346.7 MB Notification: Performance of Templates: time 0.01362/0.5837, allocations: 8.073 MB / 476.9 MB, free: 1.395 MB / 346.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