Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.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.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_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.000978/0.000978, allocations: 185.8 kB / 8.137 MB, free: 0.8594 MB / 6.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.062/1.062, allocations: 221.4 MB / 229.9 MB, free: 13.53 MB / 194.8 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008392/0.0008391, allocations: 104.1 kB / 280.8 MB, free: 10.48 MB / 226.8 MB Notification: Performance of FrontEnd - loaded program: time 0.08751/0.08838, allocations: 55.82 MB / 336.6 MB, free: 2.688 MB / 274.8 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0742/0.1626, allocations: 50.42 MB / 387 MB, free: 232 kB / 322.8 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1785/0.3411, allocations: 81.59 MB / 468.6 MB, free: 16 kB / 338.8 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001689/0.3413, allocations: 65.17 kB / 468.7 MB, free: 15.95 MB / 354.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.04132/0.3827, allocations: 14.96 MB / 483.6 MB, free: 1.059 MB / 354.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.133e-05/0.3827, allocations: 12.56 kB / 483.6 MB, free: 1.047 MB / 354.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001673/0.3829, allocations: 75.06 kB / 483.7 MB, free: 0.9727 MB / 354.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006926/0.3836, allocations: 0.4949 MB / 484.2 MB, free: 448 kB / 354.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.137e-05/0.3836, allocations: 20 kB / 484.2 MB, free: 428 kB / 354.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001201/0.3838, allocations: 20 kB / 484.2 MB, free: 408 kB / 354.8 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001668/0.3854, allocations: 1.071 MB / 485.3 MB, free: 15.33 MB / 370.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001281/0.3867, allocations: 0.8569 MB / 486.2 MB, free: 14.45 MB / 370.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.92e-05/0.3867, allocations: 6.969 kB / 486.2 MB, free: 14.45 MB / 370.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.254e-05/0.3868, allocations: 0 / 486.2 MB, free: 14.45 MB / 370.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.3869, allocations: 8 kB / 486.2 MB, free: 14.44 MB / 370.8 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00494/0.3918, allocations: 2.424 MB / 488.6 MB, free: 11.95 MB / 370.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008638/0.3927, allocations: 0.6011 MB / 489.2 MB, free: 11.34 MB / 370.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007256/0.3934, allocations: 0.5183 MB / 489.7 MB, free: 10.82 MB / 370.8 MB Notification: Performance of preOpt evalFunc (simulation): time 7.241e-05/0.3935, allocations: 15.83 kB / 489.8 MB, free: 10.8 MB / 370.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001023/0.3945, allocations: 0.759 MB / 490.5 MB, free: 10.03 MB / 370.8 MB Notification: Performance of pre-optimization done (n=49): time 1.734e-06/0.3945, allocations: 0 / 490.5 MB, free: 10.03 MB / 370.8 MB Notification: Performance of matching and sorting (n=51): time 0.006038/0.4006, allocations: 3.417 MB / 493.9 MB, free: 6.508 MB / 370.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.186e-05/0.4006, allocations: 81.11 kB / 494 MB, free: 6.41 MB / 370.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005164/0.4012, allocations: 0.4994 MB / 494.5 MB, free: 5.906 MB / 370.8 MB Notification: Performance of collectPreVariables (initialization): time 0.000105/0.4013, allocations: 45.69 kB / 494.5 MB, free: 5.855 MB / 370.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001213/0.4014, allocations: 206.2 kB / 494.8 MB, free: 5.652 MB / 370.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001716/0.4016, allocations: 161.8 kB / 494.9 MB, free: 5.492 MB / 370.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.959e-05/0.4017, allocations: 0 / 494.9 MB, free: 5.492 MB / 370.8 MB Notification: Performance of setup shared object (initialization): time 0.0001377/0.4018, allocations: 382.8 kB / 495.3 MB, free: 5.109 MB / 370.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000763/0.4026, allocations: 0.5245 MB / 495.8 MB, free: 4.586 MB / 370.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000773/0.4033, allocations: 0.6226 MB / 496.4 MB, free: 3.93 MB / 370.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007294/0.4041, allocations: 464.7 kB / 496.9 MB, free: 3.48 MB / 370.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.4041, allocations: 0 / 496.9 MB, free: 3.48 MB / 370.8 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002992/0.4071, allocations: 1.713 MB / 498.6 MB, free: 1.754 MB / 370.8 MB Notification: Performance of prepare postOptimizeDAE: time 1.433e-05/0.4071, allocations: 7.938 kB / 498.6 MB, free: 1.746 MB / 370.8 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.329e-05/0.4072, allocations: 12 kB / 498.6 MB, free: 1.734 MB / 370.8 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004713/0.4119, allocations: 3.968 MB / 0.4908 GB, free: 13.75 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005455/0.4124, allocations: 123.9 kB / 0.4909 GB, free: 13.63 MB / 386.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005368/0.4178, allocations: 4.886 MB / 0.4957 GB, free: 8.492 MB / 386.8 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001524/0.4194, allocations: 323.2 kB / 0.496 GB, free: 8.18 MB / 386.8 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.4195, allocations: 104 kB / 0.4961 GB, free: 8.078 MB / 386.8 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop2.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: stop1.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: supportFriction.sa:VARIABLE(unit = "1" ) "Path parameter of friction characteristic f = f(a_relfric)" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 28 (supportFriction.free,$whenCondition2,stop1.free,$PRE.stop1.startForward,stop1.startForward,$PRE.stop1.startBackward,stop1.startBackward,stop1.locked,$PRE.stop1.mode,stop1.mode,stop1.stopped,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,$whenCondition1,stop2.free,$PRE.stop2.startForward,stop2.startForward,$PRE.stop2.startBackward,stop2.startBackward,stop2.locked,$PRE.stop2.mode,stop2.mode,stop2.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 57 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 6,1 5,1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003182/0.4199, allocations: 127.5 kB / 0.4962 GB, free: 7.949 MB / 386.8 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001583/0.42, allocations: 75.16 kB / 0.4963 GB, free: 7.875 MB / 386.8 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003049/0.4231, allocations: 1.616 MB / 0.4979 GB, free: 6.242 MB / 386.8 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.232e-06/0.4231, allocations: 8 kB / 0.4979 GB, free: 6.234 MB / 386.8 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.675e-06/0.4231, allocations: 0 / 0.4979 GB, free: 6.234 MB / 386.8 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.031e-05/0.4231, allocations: 7.984 kB / 0.4979 GB, free: 6.227 MB / 386.8 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004418/0.4275, allocations: 2.532 MB / 0.5004 GB, free: 3.637 MB / 386.8 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.4276, allocations: 0 / 0.5004 GB, free: 3.637 MB / 386.8 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005441/0.4281, allocations: 95.94 kB / 0.5005 GB, free: 3.543 MB / 386.8 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004738/0.4329, allocations: 3.989 MB / 0.5043 GB, free: 15.54 MB / 402.8 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001052/0.433, allocations: 41.88 kB / 0.5044 GB, free: 15.5 MB / 402.8 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005037/0.438, allocations: 4.819 MB / 0.5091 GB, free: 10.43 MB / 402.8 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.679e-06/0.4381, allocations: 3.906 kB / 0.5091 GB, free: 10.43 MB / 402.8 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003875/0.4419, allocations: 2.333 MB / 0.5114 GB, free: 8.027 MB / 402.8 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00494/0.4469, allocations: 3.389 MB / 0.5147 GB, free: 4.57 MB / 402.8 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005531/0.4475, allocations: 304.1 kB / 0.515 GB, free: 4.254 MB / 402.8 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001879/0.4477, allocations: 16 kB / 0.515 GB, free: 4.238 MB / 402.8 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/0.4493, allocations: 341.6 kB / 0.5153 GB, free: 3.906 MB / 402.8 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004523/0.4498, allocations: 215.5 kB / 0.5155 GB, free: 3.695 MB / 402.8 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000143/0.4499, allocations: 95.95 kB / 0.5156 GB, free: 3.602 MB / 402.8 MB Notification: Performance of sort global known variables: time 0.0005405/0.4505, allocations: 491.1 kB / 0.5161 GB, free: 3.125 MB / 402.8 MB Notification: Performance of remove unused functions: time 0.00133/0.4518, allocations: 200 kB / 0.5163 GB, free: 2.93 MB / 402.8 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (stop2.s,stop2.v,stop1.s,stop1.v,mass.s,mass.v) * Number of discrete variables: 18 ($whenCondition1,stop2.free,stop2.startForward,stop2.startBackward,stop2.locked,stop2.mode,stop2.stopped,$whenCondition2,stop1.free,stop1.startForward,stop1.startBackward,stop1.locked,stop1.mode,stop1.stopped,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode) * Number of discrete states: 9 (supportFriction.mode,supportFriction.startForward,supportFriction.startBackward,stop1.mode,stop1.startBackward,stop1.startForward,stop2.mode,stop2.startBackward,stop2.startForward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (35): * Single equations (assignments): 32 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {1 5,1 5,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002911/0.4521, allocations: 155.1 kB / 0.5164 GB, free: 2.766 MB / 402.8 MB Notification: Performance of simCode: created initialization part: time 0.001979/0.4541, allocations: 1.346 MB / 0.5177 GB, free: 1.398 MB / 402.8 MB Notification: Performance of simCode: created event and clocks part: time 5.72e-06/0.4541, allocations: 4 kB / 0.5177 GB, free: 1.395 MB / 402.8 MB Notification: Performance of simCode: created simulation system equations: time 0.001199/0.4553, allocations: 0.7688 MB / 0.5185 GB, free: 0.6055 MB / 402.8 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000479/0.4558, allocations: 59 kB / 0.5185 GB, free: 0.5547 MB / 402.8 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003585/0.4594, allocations: 1.559 MB / 0.5201 GB, free: 14.97 MB / 418.8 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006107/0.46, allocations: 0.9785 MB / 0.521 GB, free: 13.97 MB / 418.8 MB Notification: Performance of SimCode: time 3.3e-07/0.4601, allocations: 0 / 0.521 GB, free: 13.97 MB / 418.8 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)