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: "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001665/0.001665, allocations: 179.9 kB / 8.474 MB, free: 1.879 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.272/1.272, allocations: 205.2 MB / 214.1 MB, free: 5.086 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.0008622/0.0008622, allocations: 97.89 kB / 262.1 MB, free: 5.133 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1826/0.1835, allocations: 52.95 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09298/0.2765, allocations: 47.57 MB / 362.6 MB, free: 9.883 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3685/0.645, allocations: 79.68 MB / 442.3 MB, free: 10.64 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002519/0.6453, allocations: 72.98 kB / 442.4 MB, free: 10.64 MB / 314.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.03192/0.6773, allocations: 8.169 MB / 450.5 MB, free: 8.441 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.6773, allocations: 7.719 kB / 450.6 MB, free: 8.441 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001949/0.6775, allocations: 62.45 kB / 450.6 MB, free: 8.406 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005355/0.6781, allocations: 299 kB / 450.9 MB, free: 8.148 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.366e-05/0.6781, allocations: 15.44 kB / 450.9 MB, free: 8.145 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001118/0.6782, allocations: 23.12 kB / 450.9 MB, free: 8.145 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009959/0.6793, allocations: 378.1 kB / 451.3 MB, free: 8.102 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009522/0.6802, allocations: 378.1 kB / 451.7 MB, free: 7.988 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.178e-05/0.6803, allocations: 3.906 kB / 451.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.053e-05/0.6803, allocations: 0 / 451.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.6804, allocations: 11.31 kB / 451.7 MB, free: 7.984 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003251/0.6836, allocations: 1.088 MB / 452.8 MB, free: 7.402 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007252/0.6844, allocations: 263.7 kB / 453 MB, free: 7.371 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005238/0.6849, allocations: 231.1 kB / 453.3 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.044e-05/0.685, allocations: 15.03 kB / 453.3 MB, free: 7.344 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.271e-05/0.685, allocations: 34.75 kB / 453.3 MB, free: 7.305 MB / 314.7 MB Notification: Performance of pre-optimization done (n=52): time 3.216e-06/0.6851, allocations: 3.844 kB / 453.3 MB, free: 7.305 MB / 314.7 MB Notification: Performance of matching and sorting (n=58): time 0.005032/0.6901, allocations: 1.535 MB / 454.9 MB, free: 6.578 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.624e-05/0.6901, allocations: 59.66 kB / 454.9 MB, free: 6.516 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002446/0.6904, allocations: 209.9 kB / 455.1 MB, free: 6.395 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 8.054e-05/0.6905, allocations: 33.39 kB / 455.2 MB, free: 6.363 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.08e-05/0.6906, allocations: 157.2 kB / 455.3 MB, free: 6.234 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001799/0.6908, allocations: 196.1 kB / 455.5 MB, free: 6.09 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.682e-05/0.6908, allocations: 7.875 kB / 455.5 MB, free: 6.082 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.459e-05/0.6909, allocations: 347.7 kB / 455.8 MB, free: 5.758 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004655/0.6914, allocations: 183.7 kB / 456 MB, free: 5.75 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005306/0.692, allocations: 234.4 kB / 456.3 MB, free: 5.719 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006735/0.6926, allocations: 158.5 kB / 456.4 MB, free: 5.688 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.6927, allocations: 0 / 456.4 MB, free: 5.688 MB / 314.7 MB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002331/0.695, allocations: 0.6476 MB / 457.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.695, allocations: 3.844 kB / 457.1 MB, free: 5.535 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.059e-05/0.6951, allocations: 3.938 kB / 457.1 MB, free: 5.531 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001021/0.6961, allocations: 378 kB / 457.4 MB, free: 5.438 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005442/0.6967, allocations: 87.33 kB / 457.5 MB, free: 5.422 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001718/0.6984, allocations: 1.387 MB / 458.9 MB, free: 4.324 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008577/0.6993, allocations: 104.6 kB / 459 MB, free: 4.289 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.6994, allocations: 23.89 kB / 459 MB, free: 4.285 MB / 314.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.0002736/0.6997, allocations: 124.8 kB / 459.1 MB, free: 4.164 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001662/0.6998, allocations: 37.84 kB / 459.2 MB, free: 4.145 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002221/0.7021, allocations: 0.651 MB / 459.8 MB, free: 3.949 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-05/0.7021, allocations: 6.438 kB / 459.8 MB, free: 3.949 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.605e-06/0.7021, allocations: 4 kB / 459.8 MB, free: 3.945 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.248e-05/0.7022, allocations: 7.891 kB / 459.9 MB, free: 3.938 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00413/0.7063, allocations: 1.275 MB / 461.1 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.075e-06/0.7063, allocations: 2.625 kB / 461.1 MB, free: 3.34 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006323/0.707, allocations: 86.11 kB / 461.2 MB, free: 3.324 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001038/0.708, allocations: 349.9 kB / 461.6 MB, free: 3.234 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.768e-05/0.7081, allocations: 20.41 kB / 461.6 MB, free: 3.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001647/0.7098, allocations: 1.338 MB / 462.9 MB, free: 2.129 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/0.7098, allocations: 1.625 kB / 462.9 MB, free: 2.129 MB / 314.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002534/0.7124, allocations: 0.9763 MB / 463.9 MB, free: 1.738 MB / 314.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00488/0.7173, allocations: 2.051 MB / 465.9 MB, free: 16.93 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000414/0.7177, allocations: 161.5 kB / 466.1 MB, free: 16.8 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001739/0.7179, allocations: 10.56 kB / 466.1 MB, free: 16.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008023/0.7187, allocations: 77.44 kB / 466.2 MB, free: 16.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003388/0.7191, allocations: 116.7 kB / 466.3 MB, free: 16.71 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/0.7192, allocations: 26.97 kB / 466.3 MB, free: 16.7 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003077/0.7195, allocations: 163.8 kB / 466.5 MB, free: 16.61 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.00221/0.7217, allocations: 121.1 kB / 466.6 MB, free: 16.6 MB / 330.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.0004462/0.7222, allocations: 135.2 kB / 466.7 MB, free: 16.49 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.7238, allocations: 0.54 MB / 467.3 MB, free: 16.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7238, allocations: 0 / 467.3 MB, free: 16.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008874/0.7247, allocations: 288.5 kB / 467.6 MB, free: 16.36 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007625/0.7255, allocations: 52.11 kB / 467.6 MB, free: 16.34 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002943/0.7284, allocations: 0.9482 MB / 468.6 MB, free: 15.74 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000797/0.7292, allocations: 0.8777 MB / 469.4 MB, free: 14.97 MB / 330.7 MB Notification: Performance of SimCode: time 7.11e-07/0.7293, allocations: 5.25 kB / 469.4 MB, free: 14.96 MB / 330.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Rotational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Rotational.Examples.Friction.pipe 2>&1)