Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.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.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.Friction,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001556/0.001556, allocations: 182.6 kB / 8.478 MB, free: 1.863 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.166/1.166, allocations: 205.2 MB / 214.1 MB, free: 5.109 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.00114/0.00114, allocations: 79.72 kB / 262.1 MB, free: 5.16 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2238/0.2249, allocations: 52.97 MB / 315.1 MB, free: 41.42 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07662/0.3016, allocations: 47.58 MB / 362.6 MB, free: 9.887 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2549/0.5566, allocations: 79.93 MB / 442.6 MB, free: 10.69 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002415/0.5569, allocations: 70.34 kB / 442.6 MB, free: 10.69 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.04187/0.5988, allocations: 14.79 MB / 457.4 MB, free: 5.801 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.978e-05/0.5988, allocations: 9.031 kB / 457.4 MB, free: 5.801 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003597/0.5992, allocations: 80.77 kB / 457.5 MB, free: 5.758 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008624/0.6001, allocations: 0.4891 MB / 458 MB, free: 5.434 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.545e-05/0.6001, allocations: 17 kB / 458 MB, free: 5.43 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001536/0.6003, allocations: 24.36 kB / 458 MB, free: 5.426 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001968/0.6023, allocations: 1.075 MB / 459.1 MB, free: 5.273 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001466/0.6038, allocations: 0.8558 MB / 460 MB, free: 5.008 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.127e-05/0.6038, allocations: 5.688 kB / 460 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001077/0.6039, allocations: 0.6562 kB / 460 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.08e-05/0.6039, allocations: 9.125 kB / 460 MB, free: 5.004 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005664/0.6096, allocations: 2.422 MB / 462.4 MB, free: 3.965 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009192/0.6106, allocations: 0.6057 MB / 463 MB, free: 3.867 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000805/0.6114, allocations: 0.52 MB / 463.5 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.922e-05/0.6115, allocations: 5.094 kB / 463.5 MB, free: 3.797 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.6125, allocations: 0.7537 MB / 464.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of pre-optimization done (n=49): time 3.857e-06/0.6126, allocations: 0 / 464.3 MB, free: 3.555 MB / 314.7 MB Notification: Performance of matching and sorting (n=51): time 0.006527/0.6191, allocations: 3.433 MB / 467.7 MB, free: 2.457 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.912e-05/0.6191, allocations: 82.55 kB / 467.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006279/0.6198, allocations: 0.4996 MB / 468.3 MB, free: 2.184 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001293/0.6199, allocations: 37.73 kB / 468.3 MB, free: 2.152 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.722e-05/0.62, allocations: 202.1 kB / 468.5 MB, free: 2.004 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001637/0.6202, allocations: 165 kB / 468.7 MB, free: 1.891 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.311e-05/0.6203, allocations: 1.031 kB / 468.7 MB, free: 1.891 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 9.487e-05/0.6204, allocations: 378.1 kB / 469.1 MB, free: 1.559 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007997/0.6212, allocations: 0.5345 MB / 469.6 MB, free: 1.5 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009226/0.6221, allocations: 0.6133 MB / 470.2 MB, free: 1.359 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007287/0.6229, allocations: 473.1 kB / 470.7 MB, free: 1.207 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.6229, allocations: 0 / 470.7 MB, free: 1.207 MB / 314.7 MB Notification: Performance of matching and sorting (n=77) (initialization): time 0.002907/0.6258, allocations: 1.715 MB / 472.4 MB, free: 15.85 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.587e-05/0.6258, allocations: 8 kB / 472.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.657e-05/0.6259, allocations: 8 kB / 472.4 MB, free: 15.84 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005512/0.6314, allocations: 3.972 MB / 476.4 MB, free: 12.21 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006148/0.632, allocations: 123 kB / 476.5 MB, free: 12.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00606/0.6381, allocations: 4.894 MB / 481.4 MB, free: 7.629 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001717/0.6398, allocations: 326.9 kB / 481.7 MB, free: 7.312 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001982/0.64, allocations: 98.23 kB / 481.8 MB, free: 7.219 MB / 330.7 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.0004226/0.6405, allocations: 144.2 kB / 482 MB, free: 7.082 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002293/0.6407, allocations: 67.16 kB / 482 MB, free: 7.016 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003302/0.644, allocations: 1.62 MB / 483.6 MB, free: 5.691 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.111e-05/0.644, allocations: 8 kB / 483.6 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.6441, allocations: 0 / 483.6 MB, free: 5.684 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.505e-06/0.6441, allocations: 3.984 kB / 483.7 MB, free: 5.68 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00472/0.6488, allocations: 2.531 MB / 486.2 MB, free: 3.602 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.001e-06/0.6488, allocations: 4 kB / 486.2 MB, free: 3.598 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005698/0.6494, allocations: 103.6 kB / 486.3 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005318/0.6547, allocations: 3.99 MB / 490.3 MB, free: 15.84 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001308/0.6549, allocations: 30.83 kB / 490.3 MB, free: 15.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005558/0.6604, allocations: 4.818 MB / 495.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.6605, allocations: 4 kB / 495.1 MB, free: 11.39 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004526/0.665, allocations: 2.322 MB / 497.5 MB, free: 9.402 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005547/0.6706, allocations: 3.393 MB / 0.4891 GB, free: 5.953 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006866/0.6713, allocations: 312.2 kB / 0.4894 GB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002348/0.6715, allocations: 16 kB / 0.4894 GB, free: 5.613 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001721/0.6732, allocations: 339.7 kB / 0.4897 GB, free: 5.281 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004871/0.6737, allocations: 215.5 kB / 0.49 GB, free: 5.07 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001963/0.6739, allocations: 91.97 kB / 0.49 GB, free: 4.98 MB / 346.7 MB Notification: Performance of sort global known variables: time 0.0007079/0.6747, allocations: 495.1 kB / 0.4905 GB, free: 4.5 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001543/0.6762, allocations: 204 kB / 0.4907 GB, free: 4.301 MB / 346.7 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.0004181/0.6766, allocations: 147 kB / 0.4908 GB, free: 4.148 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002478/0.6791, allocations: 1.328 MB / 0.4921 GB, free: 2.797 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.284e-06/0.6791, allocations: 4 kB / 0.4921 GB, free: 2.793 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001477/0.6806, allocations: 0.7849 MB / 0.4929 GB, free: 1.988 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005726/0.6812, allocations: 46.97 kB / 0.493 GB, free: 1.945 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004159/0.6854, allocations: 1.557 MB / 0.4945 GB, free: 352 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008498/0.6863, allocations: 0.9822 MB / 0.4954 GB, free: 15.34 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.6863, allocations: 0 / 0.4954 GB, free: 15.34 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_Friction.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.Friction.pipe 2>&1)