Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.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.HeatLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Translational.Examples.HeatLosses,fileNamePrefix="Modelica_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001164/0.001164, allocations: 176.1 kB / 8.476 MB, free: 1.883 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.197/1.197, 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.0008404/0.0008404, allocations: 75.34 kB / 262.1 MB, free: 5.148 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1568/0.1577, allocations: 52.97 MB / 315.1 MB, free: 41.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06492/0.2226, allocations: 47.57 MB / 362.6 MB, free: 9.891 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2207/0.4433, allocations: 82.67 MB / 445.3 MB, free: 10.72 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000193/0.4436, allocations: 77.44 kB / 445.4 MB, free: 10.71 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: 169 * Number of variables: 169 Notification: Performance of Generate backend data structure: time 0.04536/0.4889, allocations: 15.88 MB / 461.3 MB, free: 4.824 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.489, allocations: 8.594 kB / 461.3 MB, free: 4.824 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004317/0.4894, allocations: 84.06 kB / 461.3 MB, free: 4.785 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007653/0.4902, allocations: 419.2 kB / 461.8 MB, free: 4.457 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.249e-05/0.4903, allocations: 21.91 kB / 461.8 MB, free: 4.457 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.4905, allocations: 42.5 kB / 461.8 MB, free: 4.457 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001372/0.4918, allocations: 0.6789 MB / 462.5 MB, free: 4.383 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001166/0.493, allocations: 0.6255 MB / 463.1 MB, free: 4.203 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.131e-05/0.4931, allocations: 9.812 kB / 463.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.443e-05/0.4931, allocations: 0 / 463.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.804e-05/0.4932, allocations: 16.5 kB / 463.1 MB, free: 4.199 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005298/0.4985, allocations: 2.37 MB / 465.5 MB, free: 2.922 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007465/0.4992, allocations: 441.5 kB / 465.9 MB, free: 2.887 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005785/0.4998, allocations: 380.8 kB / 466.3 MB, free: 2.871 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.156e-05/0.4999, allocations: 17.8 kB / 466.3 MB, free: 2.863 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007466/0.5007, allocations: 469.2 kB / 466.8 MB, free: 2.719 MB / 314.7 MB Notification: Performance of pre-optimization done (n=89): time 3.537e-06/0.5007, allocations: 4 kB / 466.8 MB, free: 2.715 MB / 314.7 MB Notification: Performance of matching and sorting (n=109): time 0.006024/0.5067, allocations: 2.583 MB / 469.4 MB, free: 1.73 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.5068, allocations: 70.47 kB / 469.4 MB, free: 1.664 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003248/0.5071, allocations: 281.9 kB / 469.7 MB, free: 1.535 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001007/0.5072, allocations: 34.3 kB / 469.8 MB, free: 1.504 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001112/0.5074, allocations: 223.3 kB / 470 MB, free: 1.324 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002362/0.5076, allocations: 356.4 kB / 470.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.41e-05/0.5077, allocations: 0 / 470.3 MB, free: 1.066 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.348e-05/0.5078, allocations: 372.5 kB / 470.7 MB, free: 0.7344 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006116/0.5084, allocations: 335.8 kB / 471 MB, free: 0.7227 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.5091, allocations: 431.7 kB / 471.4 MB, free: 0.6406 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006504/0.5097, allocations: 296.2 kB / 471.7 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.078e-06/0.5097, allocations: 0 / 471.7 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.002499/0.5122, allocations: 1.1 MB / 472.8 MB, free: 320 kB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.718e-05/0.5123, allocations: 5.875 kB / 472.8 MB, free: 316 kB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.5123, allocations: 3.938 kB / 472.8 MB, free: 312 kB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009702/0.5133, allocations: 0.5351 MB / 473.4 MB, free: 15.89 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009594/0.5143, allocations: 207.3 kB / 473.6 MB, free: 15.7 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003193/0.5175, allocations: 2.921 MB / 476.5 MB, free: 12.92 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001501/0.519, allocations: 247.8 kB / 476.7 MB, free: 12.68 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001468/0.5191, allocations: 43.48 kB / 476.8 MB, free: 12.65 MB / 330.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.0003379/0.5195, allocations: 132.6 kB / 476.9 MB, free: 12.52 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002121/0.5197, allocations: 67.06 kB / 477 MB, free: 12.45 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002435/0.5221, allocations: 1.119 MB / 478.1 MB, free: 11.64 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.41e-05/0.5222, allocations: 12 kB / 478.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.5222, allocations: 3.906 kB / 478.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.119e-05/0.5222, allocations: 3.984 kB / 478.1 MB, free: 11.62 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004308/0.5265, allocations: 2.19 MB / 480.3 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.581e-06/0.5265, allocations: 0 / 480.3 MB, free: 9.895 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009345/0.5275, allocations: 187.8 kB / 480.5 MB, free: 9.715 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009365/0.5284, allocations: 0.5091 MB / 481 MB, free: 9.32 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001025/0.5285, allocations: 19.59 kB / 481 MB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002978/0.5315, allocations: 2.832 MB / 483.8 MB, free: 6.57 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.61e-06/0.5316, allocations: 4 kB / 483.9 MB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003057/0.5346, allocations: 1.652 MB / 485.5 MB, free: 5.285 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003896/0.5385, allocations: 2.473 MB / 488 MB, free: 3.391 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005163/0.5391, allocations: 230.2 kB / 488.2 MB, free: 3.188 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000227/0.5393, allocations: 17.62 kB / 488.2 MB, free: 3.176 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001587/0.5409, allocations: 267.8 kB / 488.5 MB, free: 2.914 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003905/0.5413, allocations: 194.8 kB / 488.7 MB, free: 2.75 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001085/0.5414, allocations: 49.33 kB / 488.7 MB, free: 2.711 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002651/0.5417, allocations: 217.1 kB / 488.9 MB, free: 2.539 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001514/0.5432, allocations: 208.8 kB / 489.1 MB, free: 2.336 MB / 330.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.000317/0.5436, allocations: 163.1 kB / 489.3 MB, free: 2.176 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001843/0.5454, allocations: 1.024 MB / 490.3 MB, free: 1.207 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.836e-06/0.5454, allocations: 3.938 kB / 490.3 MB, free: 1.203 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001248/0.5467, allocations: 0.6419 MB / 491 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000702/0.5474, allocations: 94.36 kB / 491.1 MB, free: 476 kB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003855/0.5513, allocations: 1.576 MB / 492.6 MB, free: 14.84 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000762/0.552, allocations: 1.028 MB / 493.7 MB, free: 13.78 MB / 346.7 MB Notification: Performance of SimCode: time 4.61e-07/0.552, allocations: 0 / 493.7 MB, free: 13.78 MB / 346.7 MB (rm -f Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Mechanics_Translational_Examples_HeatLosses.fmu > Modelica_3.2.3_Modelica.Mechanics.Translational.Examples.HeatLosses.pipe 2>&1)