Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.0008791/0.0008791, allocations: 185.6 kB / 8.136 MB, free: 2.223 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.061/1.061, allocations: 221.4 MB / 229.9 MB, free: 3.07 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008317/0.0008317, allocations: 103 kB / 280.8 MB, free: 1.238 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08826/0.08912, allocations: 55.82 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.173/0.2622, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08001/0.3422, allocations: 80.62 MB / 467.6 MB, free: 6.152 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001729/0.3424, allocations: 75.89 kB / 467.7 MB, free: 6.078 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.02172/0.3642, allocations: 8.312 MB / 476 MB, free: 13.72 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.3642, allocations: 8.75 kB / 476 MB, free: 13.71 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001012/0.3643, allocations: 55.33 kB / 476.1 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.3647, allocations: 305.8 kB / 476.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.3647, allocations: 16 kB / 476.4 MB, free: 13.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.992e-05/0.3648, allocations: 27.91 kB / 476.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006443/0.3654, allocations: 377.4 kB / 476.8 MB, free: 12.91 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006182/0.3661, allocations: 374 kB / 477.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.324e-05/0.3661, allocations: 7.906 kB / 477.2 MB, free: 12.54 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.102e-05/0.3661, allocations: 4.75 kB / 477.2 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.282e-05/0.3662, allocations: 8 kB / 477.2 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002139/0.3683, allocations: 1.073 MB / 478.2 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000492/0.3688, allocations: 270.9 kB / 478.5 MB, free: 11.13 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003602/0.3692, allocations: 230.1 kB / 478.7 MB, free: 10.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.943e-05/0.3693, allocations: 8.422 kB / 478.7 MB, free: 10.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.033e-05/0.3693, allocations: 39 kB / 478.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 1.954e-06/0.3693, allocations: 0 / 478.8 MB, free: 10.85 MB / 362.7 MB Notification: Performance of matching and sorting (n=58): time 0.003196/0.3725, allocations: 1.544 MB / 480.3 MB, free: 9.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.043e-05/0.3725, allocations: 68.09 kB / 480.4 MB, free: 9.141 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001833/0.3727, allocations: 201 kB / 480.6 MB, free: 8.941 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.302e-05/0.3728, allocations: 33.7 kB / 480.6 MB, free: 8.902 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.037e-05/0.3729, allocations: 153.3 kB / 480.8 MB, free: 8.75 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001449/0.373, allocations: 193.3 kB / 481 MB, free: 8.559 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.996e-05/0.3731, allocations: 0 / 481 MB, free: 8.559 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/0.3732, allocations: 350.7 kB / 481.3 MB, free: 8.207 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003093/0.3735, allocations: 197.2 kB / 481.5 MB, free: 8.016 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003278/0.3738, allocations: 227.6 kB / 481.7 MB, free: 7.785 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003957/0.3742, allocations: 163.1 kB / 481.9 MB, free: 7.625 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.583e-06/0.3742, allocations: 0 / 481.9 MB, free: 7.625 MB / 362.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001464/0.3757, allocations: 0.6455 MB / 482.5 MB, free: 6.965 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.174e-05/0.3757, allocations: 4 kB / 482.5 MB, free: 6.961 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.481e-05/0.3758, allocations: 6.422 kB / 482.5 MB, free: 6.957 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000682/0.3764, allocations: 373.5 kB / 482.9 MB, free: 6.586 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003467/0.3768, allocations: 87.89 kB / 483 MB, free: 6.5 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001292/0.3781, allocations: 1.386 MB / 484.4 MB, free: 5.062 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005149/0.3786, allocations: 104 kB / 484.5 MB, free: 4.961 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.582e-05/0.3787, allocations: 23.98 kB / 484.5 MB, free: 4.938 MB / 362.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.0001762/0.3789, allocations: 124.3 kB / 484.6 MB, free: 4.812 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.226e-05/0.379, allocations: 47.47 kB / 484.7 MB, free: 4.766 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001373/0.3804, allocations: 0.6483 MB / 485.3 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.512e-06/0.3804, allocations: 4 kB / 485.3 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.27e-06/0.3804, allocations: 0 / 485.3 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.3804, allocations: 0 / 485.3 MB, free: 4.09 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002507/0.3829, allocations: 1.278 MB / 486.6 MB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.126e-06/0.3829, allocations: 0.75 kB / 486.6 MB, free: 2.746 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003955/0.3833, allocations: 88.05 kB / 486.7 MB, free: 2.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000643/0.384, allocations: 355.8 kB / 487 MB, free: 2.309 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.9e-05/0.384, allocations: 19.97 kB / 487 MB, free: 2.289 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.3852, allocations: 1.339 MB / 488.4 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.3852, allocations: 0 / 488.4 MB, free: 0.8984 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001583/0.3868, allocations: 0.9739 MB / 489.4 MB, free: 15.85 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00262/0.3895, allocations: 2.057 MB / 491.4 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001969/0.3897, allocations: 164.5 kB / 491.6 MB, free: 13.55 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.192e-05/0.3898, allocations: 8 kB / 491.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004661/0.3903, allocations: 83.94 kB / 491.7 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001981/0.3905, allocations: 112.1 kB / 491.8 MB, free: 13.35 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.318e-05/0.3905, allocations: 27.97 kB / 491.8 MB, free: 13.32 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001347/0.3907, allocations: 165.2 kB / 492 MB, free: 13.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001048/0.3917, allocations: 116 kB / 492.1 MB, free: 13.05 MB / 378.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.0002395/0.392, allocations: 146 kB / 492.2 MB, free: 12.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008807/0.3928, allocations: 0.5312 MB / 492.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.247e-06/0.3929, allocations: 0 / 492.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005205/0.3934, allocations: 289.3 kB / 493 MB, free: 12.08 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004361/0.3938, allocations: 53.31 kB / 493.1 MB, free: 12.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001829/0.3957, allocations: 0.9498 MB / 494 MB, free: 11.04 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004818/0.3962, allocations: 0.8737 MB / 494.9 MB, free: 10.14 MB / 378.7 MB Notification: Performance of SimCode: time 3.51e-07/0.3962, allocations: 0 / 494.9 MB, free: 10.14 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)