Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_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_3.2.3_cpp_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.002692/0.002691, allocations: 175.9 kB / 8.152 MB, free: 2.195 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.763/1.763, allocations: 205.2 MB / 213.7 MB, free: 13.87 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.001211/0.001211, allocations: 87.92 kB / 261.8 MB, free: 13.63 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 8.726e-06/8.997e-06, allocations: 0 / 314.3 MB, free: 9.051 MB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.2396, allocations: 47.54 MB / 361.8 MB, free: 45.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1228/0.3625, allocations: 79.69 MB / 441.5 MB, free: 6.387 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002684/0.3628, allocations: 67.97 kB / 441.6 MB, free: 6.32 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0371/0.3999, allocations: 7.455 MB / 449 MB, free: 14.9 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.089e-05/0.4, allocations: 8 kB / 449 MB, free: 14.89 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.002281/0.4023, allocations: 0.7158 MB / 449.8 MB, free: 14.13 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.273e-05/0.4024, allocations: 8.031 kB / 449.8 MB, free: 14.12 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002281/0.4026, allocations: 55.34 kB / 449.8 MB, free: 14.07 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006723/0.4033, allocations: 301.8 kB / 450.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.039e-05/0.4034, allocations: 19.91 kB / 450.1 MB, free: 13.71 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.4035, allocations: 20 kB / 450.2 MB, free: 13.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001227/0.4047, allocations: 377.4 kB / 450.5 MB, free: 13.32 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.4058, allocations: 374 kB / 450.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-05/0.4059, allocations: 3.906 kB / 450.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.693e-05/0.406, allocations: 4 kB / 450.9 MB, free: 12.95 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.818e-05/0.406, allocations: 8 kB / 450.9 MB, free: 12.94 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004146/0.4102, allocations: 1.083 MB / 452 MB, free: 11.81 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009582/0.4112, allocations: 266.9 kB / 452.2 MB, free: 11.54 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000679/0.4119, allocations: 234.1 kB / 452.5 MB, free: 11.31 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.148e-05/0.412, allocations: 12.42 kB / 452.5 MB, free: 11.3 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.4121, allocations: 35 kB / 452.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 3.166e-06/0.4121, allocations: 0 / 452.5 MB, free: 11.26 MB / 346.7 MB Notification: Performance of matching and sorting (n=58): time 0.005979/0.4181, allocations: 1.54 MB / 454.1 MB, free: 9.625 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.609e-05/0.4182, allocations: 63.84 kB / 454.1 MB, free: 9.551 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003593/0.4185, allocations: 212.9 kB / 454.3 MB, free: 9.34 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001074/0.4187, allocations: 33.7 kB / 454.4 MB, free: 9.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.4188, allocations: 211.8 kB / 454.6 MB, free: 9.094 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002612/0.4191, allocations: 197.2 kB / 454.8 MB, free: 8.898 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.145e-05/0.4191, allocations: 0 / 454.8 MB, free: 8.898 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001819/0.4193, allocations: 330.8 kB / 455.1 MB, free: 8.566 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006033/0.42, allocations: 189.3 kB / 455.3 MB, free: 8.379 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006555/0.4206, allocations: 227.6 kB / 455.5 MB, free: 8.152 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000715/0.4214, allocations: 163.1 kB / 455.7 MB, free: 7.992 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.168e-06/0.4214, allocations: 0 / 455.7 MB, free: 7.992 MB / 346.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002774/0.4242, allocations: 0.634 MB / 456.3 MB, free: 7.344 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.841e-05/0.4242, allocations: 10.97 kB / 456.3 MB, free: 7.336 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.364e-05/0.4243, allocations: 4 kB / 456.3 MB, free: 7.332 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001313/0.4256, allocations: 377.5 kB / 456.7 MB, free: 6.957 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008347/0.4265, allocations: 88.64 kB / 456.8 MB, free: 6.871 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002499/0.429, allocations: 1.397 MB / 458.2 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001163/0.4302, allocations: 108 kB / 458.3 MB, free: 5.32 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001104/0.4303, allocations: 23.98 kB / 458.3 MB, free: 5.297 MB / 346.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: inertia2.a:VARIABLE(unit = "rad/s2" ) "Absolute angular acceleration of component (= der(w))" type: Real 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,2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002848/0.4306, allocations: 42.45 kB / 458.3 MB, free: 5.25 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001665/0.4308, allocations: 41.41 kB / 458.4 MB, free: 5.211 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002583/0.4334, allocations: 0.6509 MB / 459 MB, free: 4.551 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.4335, allocations: 8 kB / 459 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.767e-06/0.4335, allocations: 0 / 459 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.788e-06/0.4335, allocations: 0 / 459 MB, free: 4.543 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004852/0.4384, allocations: 1.286 MB / 460.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.058e-05/0.4384, allocations: 1.125 kB / 460.3 MB, free: 3.188 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008638/0.4393, allocations: 88.05 kB / 460.4 MB, free: 3.102 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001235/0.4406, allocations: 349.5 kB / 460.7 MB, free: 2.754 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001137/0.4407, allocations: 19.97 kB / 460.8 MB, free: 2.734 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002117/0.4428, allocations: 1.339 MB / 462.1 MB, free: 1.344 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.076e-05/0.4429, allocations: 4 kB / 462.1 MB, free: 1.34 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003189/0.4461, allocations: 0.9652 MB / 463.1 MB, free: 316 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000436/0.4466, allocations: 165 kB / 463.2 MB, free: 132 kB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001519/0.4468, allocations: 12 kB / 463.2 MB, free: 120 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009446/0.4477, allocations: 79.92 kB / 463.3 MB, free: 40 kB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000386/0.4481, allocations: 120.1 kB / 463.4 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.496e-05/0.4482, allocations: 28.11 kB / 463.5 MB, free: 15.89 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002724/0.4485, allocations: 171.6 kB / 463.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007416/0.4493, allocations: 115.9 kB / 463.7 MB, free: 15.61 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.0003765/0.4497, allocations: 139.9 kB / 463.9 MB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001858/0.4516, allocations: 0.5351 MB / 464.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.48e-06/0.4516, allocations: 0 / 464.4 MB, free: 14.92 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009616/0.4526, allocations: 277.8 kB / 464.7 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008271/0.4534, allocations: 51.67 kB / 464.7 MB, free: 14.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003366/0.4568, allocations: 0.9482 MB / 465.7 MB, free: 13.6 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007343/0.4576, allocations: 0.8714 MB / 466.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of SimCode: time 1.282e-06/0.4576, allocations: 0 / 466.6 MB, free: 12.71 MB / 362.7 MB Notification: Performance of Templates: time 0.01794/0.4756, allocations: 8.334 MB / 474.9 MB, free: 4.395 MB / 362.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.sim & ./Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_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_cpp_Modelica.Mechanics.Rotational.Examples.Friction.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches