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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001534/0.001534, allocations: 179.3 kB / 8.481 MB, free: 1.875 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.569/1.569, allocations: 205.2 MB / 214.1 MB, free: 13.86 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.001121/0.001121, allocations: 91.33 kB / 262.1 MB, free: 13.56 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 9.878e-06/9.888e-06, allocations: 0 / 315 MB, free: 8.621 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3204/0.3204, allocations: 47.56 MB / 362.5 MB, free: 45.83 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1131/0.4336, allocations: 79.69 MB / 442.2 MB, free: 6.258 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.4339, allocations: 71.95 kB / 442.3 MB, free: 6.188 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.02295/0.4569, allocations: 7.457 MB / 449.7 MB, free: 14.76 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.435e-05/0.4569, allocations: 8 kB / 449.8 MB, free: 14.75 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.001301/0.4583, allocations: 0.7051 MB / 450.5 MB, free: 14 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.4583, allocations: 8.031 kB / 450.5 MB, free: 14 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001133/0.4584, allocations: 55.34 kB / 450.5 MB, free: 13.94 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004393/0.4589, allocations: 309.9 kB / 450.8 MB, free: 13.6 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.591e-05/0.4589, allocations: 15.91 kB / 450.8 MB, free: 13.58 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.094e-05/0.459, allocations: 24 kB / 450.9 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006975/0.4597, allocations: 382.9 kB / 451.2 MB, free: 13.18 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006587/0.4604, allocations: 374 kB / 451.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.296e-05/0.4604, allocations: 3.906 kB / 451.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.202e-05/0.4605, allocations: 0 / 451.6 MB, free: 12.81 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.4605, allocations: 12 kB / 451.6 MB, free: 12.8 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002363/0.4628, allocations: 1.084 MB / 452.7 MB, free: 11.67 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005087/0.4634, allocations: 262.9 kB / 453 MB, free: 11.4 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003906/0.4638, allocations: 230.1 kB / 453.2 MB, free: 11.18 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.268e-05/0.4638, allocations: 4.438 kB / 453.2 MB, free: 11.17 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.997e-05/0.4639, allocations: 42.94 kB / 453.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 1.673e-06/0.4639, allocations: 0 / 453.2 MB, free: 11.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.003578/0.4675, allocations: 1.543 MB / 454.8 MB, free: 9.484 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.408e-05/0.4675, allocations: 55.91 kB / 454.8 MB, free: 9.418 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002396/0.4678, allocations: 212.9 kB / 455 MB, free: 9.207 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.168e-05/0.4679, allocations: 29.7 kB / 455.1 MB, free: 9.172 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000101/0.468, allocations: 157.3 kB / 455.2 MB, free: 9.016 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001612/0.4681, allocations: 202.4 kB / 455.4 MB, free: 8.816 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.127e-05/0.4682, allocations: 0 / 455.4 MB, free: 8.816 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001641/0.4683, allocations: 346.8 kB / 455.8 MB, free: 8.469 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003248/0.4687, allocations: 185.3 kB / 455.9 MB, free: 8.285 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003609/0.469, allocations: 235.5 kB / 456.2 MB, free: 8.051 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004038/0.4695, allocations: 163.1 kB / 456.3 MB, free: 7.891 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.4695, allocations: 0 / 456.3 MB, free: 7.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001501/0.471, allocations: 0.6378 MB / 457 MB, free: 7.238 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.471, allocations: 12 kB / 457 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.947e-05/0.471, allocations: 0 / 457 MB, free: 7.227 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008294/0.4719, allocations: 382 kB / 457.3 MB, free: 6.848 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000367/0.4722, allocations: 91.89 kB / 457.4 MB, free: 6.758 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001381/0.4736, allocations: 1.387 MB / 458.8 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000535/0.4742, allocations: 104 kB / 458.9 MB, free: 5.223 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.686e-05/0.4743, allocations: 23.98 kB / 458.9 MB, free: 5.199 MB / 346.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.0002051/0.4745, allocations: 120.6 kB / 459.1 MB, free: 5.078 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.141e-05/0.4746, allocations: 39.53 kB / 459.1 MB, free: 5.039 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001394/0.476, allocations: 0.654 MB / 459.8 MB, free: 4.375 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.021e-05/0.476, allocations: 8 kB / 459.8 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.001e-06/0.476, allocations: 0 / 459.8 MB, free: 4.367 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.296e-06/0.476, allocations: 7.906 kB / 459.8 MB, free: 4.359 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002638/0.4787, allocations: 1.278 MB / 461.1 MB, free: 3.012 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.5e-06/0.4787, allocations: 4 kB / 461.1 MB, free: 3.008 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003936/0.4791, allocations: 87.89 kB / 461.1 MB, free: 2.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006187/0.4797, allocations: 345.6 kB / 461.5 MB, free: 2.578 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.974e-05/0.4798, allocations: 15.97 kB / 461.5 MB, free: 2.562 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001249/0.481, allocations: 1.35 MB / 462.8 MB, free: 1.164 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.481, allocations: 4 kB / 462.8 MB, free: 1.16 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001595/0.4826, allocations: 0.9651 MB / 463.8 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002532/0.4829, allocations: 160.7 kB / 464 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.897e-05/0.483, allocations: 12 kB / 464 MB, free: 15.94 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004558/0.4835, allocations: 79.92 kB / 464.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002295/0.4837, allocations: 118.9 kB / 464.2 MB, free: 15.74 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.604e-05/0.4838, allocations: 19.98 kB / 464.2 MB, free: 15.72 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001533/0.484, allocations: 169.2 kB / 464.4 MB, free: 15.55 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005027/0.4845, allocations: 119.9 kB / 464.5 MB, free: 15.44 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) * 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.000272/0.4847, allocations: 136.2 kB / 464.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0009328/0.4857, allocations: 0.539 MB / 465.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.4857, allocations: 0 / 465.2 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005347/0.4862, allocations: 277.5 kB / 465.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004637/0.4867, allocations: 57.3 kB / 465.5 MB, free: 14.42 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.4887, allocations: 0.9234 MB / 466.4 MB, free: 13.45 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000527/0.4893, allocations: 0.8581 MB / 467.3 MB, free: 12.57 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.4893, allocations: 4 kB / 467.3 MB, free: 12.56 MB / 362.7 MB Notification: Performance of Templates: time 0.01404/0.5033, allocations: 8.536 MB / 475.8 MB, free: 4.078 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