Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.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.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses",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.0009216/0.0009217, allocations: 180.5 kB / 8.133 MB, free: 2.215 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.067/1.067, allocations: 221.4 MB / 229.9 MB, free: 3.027 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.0008837/0.0008837, allocations: 97.39 kB / 280.8 MB, free: 1.285 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.08992/0.09084, allocations: 55.82 MB / 336.6 MB, free: 9.445 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1717/0.2625, allocations: 50.39 MB / 387 MB, free: 38.01 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08049/0.3431, allocations: 84.83 MB / 471.8 MB, free: 1.961 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001918/0.3433, allocations: 63.97 kB / 471.9 MB, free: 1.898 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.04427/0.3876, allocations: 16.11 MB / 488 MB, free: 1.734 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.3876, allocations: 8 kB / 488 MB, free: 1.727 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002521/0.3879, allocations: 83.06 kB / 488.1 MB, free: 1.645 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005912/0.3885, allocations: 419 kB / 488.5 MB, free: 1.195 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.297e-05/0.3885, allocations: 24 kB / 488.5 MB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001146/0.3887, allocations: 40 kB / 488.6 MB, free: 1.133 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001238/0.3899, allocations: 0.6794 MB / 489.2 MB, free: 464 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001073/0.391, allocations: 0.6281 MB / 489.9 MB, free: 15.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.047e-05/0.391, allocations: 7.891 kB / 489.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.636e-05/0.3911, allocations: 4 kB / 489.9 MB, free: 15.81 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.3911, allocations: 20 kB / 489.9 MB, free: 15.79 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004591/0.3957, allocations: 2.346 MB / 492.2 MB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007587/0.3965, allocations: 444.4 kB / 492.7 MB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005809/0.3971, allocations: 387.8 kB / 493.1 MB, free: 12.5 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.749e-05/0.3972, allocations: 12.78 kB / 493.1 MB, free: 12.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007464/0.398, allocations: 472.4 kB / 493.5 MB, free: 12.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=89): time 3.406e-06/0.398, allocations: 4 kB / 493.5 MB, free: 12.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=109): time 0.005398/0.4034, allocations: 2.582 MB / 496.1 MB, free: 9.352 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.137e-05/0.4034, allocations: 60.41 kB / 496.2 MB, free: 9.281 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002764/0.4037, allocations: 284.8 kB / 496.4 MB, free: 9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 8.835e-05/0.4038, allocations: 33.7 kB / 496.5 MB, free: 8.961 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001151/0.4039, allocations: 233 kB / 496.7 MB, free: 8.727 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002591/0.4042, allocations: 358.8 kB / 497.1 MB, free: 8.371 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.674e-05/0.4043, allocations: 0 / 497.1 MB, free: 8.371 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001306/0.4044, allocations: 374.8 kB / 497.4 MB, free: 7.996 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005761/0.405, allocations: 334.6 kB / 497.8 MB, free: 7.672 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006587/0.4056, allocations: 428.9 kB / 498.2 MB, free: 7.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006595/0.4063, allocations: 290.3 kB / 498.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.4063, allocations: 0 / 498.5 MB, free: 6.953 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002389/0.4087, allocations: 1.105 MB / 499.6 MB, free: 5.828 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.351e-05/0.4087, allocations: 4 kB / 499.6 MB, free: 5.824 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.975e-05/0.4088, allocations: 7.984 kB / 499.6 MB, free: 5.816 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000954/0.4097, allocations: 0.5333 MB / 0.4884 GB, free: 5.273 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008662/0.4106, allocations: 211.7 kB / 0.4886 GB, free: 5.066 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002707/0.4133, allocations: 2.906 MB / 0.4914 GB, free: 1.992 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.4146, allocations: 247.8 kB / 0.4917 GB, free: 1.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001037/0.4147, allocations: 39.89 kB / 0.4917 GB, free: 1.711 MB / 378.7 MB 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 Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: massWithStopAndFriction.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: brake.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: 6 * Number of states: 0 () * Number of discrete variables: 27 (supportFriction.free,$whenCondition1,elastoGap.contact,$PRE.supportFriction.startForward,supportFriction.startForward,$PRE.supportFriction.startBackward,supportFriction.startBackward,supportFriction.locked,$PRE.supportFriction.mode,supportFriction.mode,brake.free,$PRE.brake.startForward,brake.startForward,$PRE.brake.startBackward,brake.startBackward,brake.locked,$PRE.brake.mode,brake.mode,massWithStopAndFriction.free,$PRE.massWithStopAndFriction.startForward,massWithStopAndFriction.startForward,$PRE.massWithStopAndFriction.startBackward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,$PRE.massWithStopAndFriction.mode,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (115): * Single equations (assignments): 110 * 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: 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 7,1 5,1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002625/0.415, allocations: 145.1 kB / 0.4918 GB, free: 1.566 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001234/0.4151, allocations: 67.25 kB / 0.4919 GB, free: 1.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002208/0.4173, allocations: 1.117 MB / 0.493 GB, free: 368 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.438e-06/0.4173, allocations: 12 kB / 0.493 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.635e-06/0.4173, allocations: 0 / 0.493 GB, free: 356 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.4174, allocations: 7.891 kB / 0.493 GB, free: 348 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0983/0.5157, allocations: 2.183 MB / 0.4951 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.45e-06/0.5157, allocations: 0 / 0.4951 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008394/0.5166, allocations: 199.1 kB / 0.4953 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007574/0.5173, allocations: 0.5037 MB / 0.4958 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.985e-05/0.5174, allocations: 19.38 kB / 0.4958 GB, free: 133.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00202/0.5194, allocations: 2.835 MB / 0.4986 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.5195, allocations: 7.406 kB / 0.4986 GB, free: 131.3 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002365/0.5218, allocations: 1.646 MB / 0.5002 GB, free: 130.9 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.002984/0.5248, allocations: 2.482 MB / 0.5027 GB, free: 130.1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003138/0.5252, allocations: 227.4 kB / 0.5029 GB, free: 130 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.5253, allocations: 13.12 kB / 0.5029 GB, free: 130 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001291/0.5266, allocations: 265.8 kB / 0.5031 GB, free: 130 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003139/0.5269, allocations: 201.4 kB / 0.5033 GB, free: 130 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.965e-05/0.5271, allocations: 45.19 kB / 0.5034 GB, free: 130 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002078/0.5273, allocations: 220 kB / 0.5036 GB, free: 129.9 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00125/0.5285, allocations: 212.5 kB / 0.5038 GB, free: 129.9 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 8 (springDamper.s_rel,springDamper.v_rel,elastoGap.s_rel,elastoGap.v_rel,massWithStopAndFriction.s,massWithStopAndFriction.v,springDamper1.s_rel,springDamper1.v_rel) * Number of discrete variables: 17 ($whenCondition1,elastoGap.contact,supportFriction.startForward,supportFriction.startBackward,supportFriction.locked,supportFriction.mode,brake.free,brake.startForward,brake.startBackward,brake.locked,brake.mode,massWithStopAndFriction.free,massWithStopAndFriction.startForward,massWithStopAndFriction.startBackward,massWithStopAndFriction.locked,massWithStopAndFriction.mode,massWithStopAndFriction.stopped) * Number of discrete states: 9 (massWithStopAndFriction.mode,massWithStopAndFriction.startBackward,massWithStopAndFriction.startForward,brake.mode,brake.startForward,brake.startBackward,supportFriction.mode,supportFriction.startForward,supportFriction.startBackward) * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 87 * 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 6,1 6,1 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002737/0.5288, allocations: 157.1 kB / 0.5039 GB, free: 129.9 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001521/0.5303, allocations: 1.023 MB / 0.5049 GB, free: 129.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.5304, allocations: 0 / 0.5049 GB, free: 129.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.5314, allocations: 0.6508 MB / 0.5056 GB, free: 129.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006178/0.532, allocations: 80.44 kB / 0.5056 GB, free: 129.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00332/0.5354, allocations: 1.571 MB / 0.5072 GB, free: 129.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005418/0.5359, allocations: 1.02 MB / 0.5082 GB, free: 128.4 MB / 378.7 MB Notification: Performance of SimCode: time 4.51e-07/0.5359, allocations: 7.844 kB / 0.5082 GB, free: 128.4 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_4.0.0_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)