Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.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.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample1,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1",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.0009845/0.0009845, allocations: 182.9 kB / 8.135 MB, free: 2.223 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.143/1.143, allocations: 221.4 MB / 229.9 MB, free: 3.016 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.0008943/0.0008942, allocations: 95.77 kB / 280.8 MB, free: 1.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09439/0.09531, allocations: 55.83 MB / 336.6 MB, free: 9.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1831/0.2784, allocations: 50.39 MB / 387 MB, free: 37.99 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.07833/0.3568, allocations: 76.26 MB / 463.3 MB, free: 10.52 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001889/0.357, allocations: 76.55 kB / 463.3 MB, free: 10.45 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.003874/0.3609, allocations: 1.509 MB / 464.9 MB, free: 8.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.305e-05/0.361, allocations: 8 kB / 464.9 MB, free: 8.91 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.058e-05/0.361, allocations: 11.91 kB / 464.9 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001722/0.3612, allocations: 179 kB / 465 MB, free: 8.684 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.072e-05/0.3612, allocations: 9.094 kB / 465.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.3612, allocations: 0 / 465.1 MB, free: 8.676 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.951e-05/0.3613, allocations: 24.69 kB / 465.1 MB, free: 8.652 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/0.3615, allocations: 105 kB / 465.2 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.403e-06/0.3615, allocations: 0 / 465.2 MB, free: 8.531 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.518e-06/0.3615, allocations: 6.234 kB / 465.2 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.757e-06/0.3615, allocations: 0 / 465.2 MB, free: 8.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003215/0.3619, allocations: 242.3 kB / 465.4 MB, free: 8.25 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.3621, allocations: 134.4 kB / 465.6 MB, free: 8.082 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.846e-05/0.3621, allocations: 29.72 kB / 465.6 MB, free: 8.047 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.658e-05/0.3621, allocations: 0 / 465.6 MB, free: 8.047 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.847e-05/0.3622, allocations: 30.56 kB / 465.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of pre-optimization done (n=4): time 9.02e-07/0.3622, allocations: 0 / 465.6 MB, free: 8.008 MB / 346.7 MB Notification: Performance of matching and sorting (n=4): time 0.0001455/0.3623, allocations: 61.59 kB / 465.7 MB, free: 7.941 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.759e-05/0.3624, allocations: 81.05 kB / 465.8 MB, free: 7.844 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.341e-05/0.3625, allocations: 120.3 kB / 465.9 MB, free: 7.719 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.331e-05/0.3625, allocations: 25.7 kB / 465.9 MB, free: 7.688 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.272e-05/0.3625, allocations: 96.03 kB / 466 MB, free: 7.59 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.049e-05/0.3625, allocations: 0 / 466 MB, free: 7.59 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.725e-06/0.3626, allocations: 0 / 466 MB, free: 7.59 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 9e-05/0.3626, allocations: 314.9 kB / 466.3 MB, free: 7.273 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.522e-05/0.3627, allocations: 8 kB / 466.3 MB, free: 7.266 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.47e-05/0.3627, allocations: 27.42 kB / 466.3 MB, free: 7.227 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.987e-05/0.3627, allocations: 8 kB / 466.3 MB, free: 7.219 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.3627, allocations: 0 / 466.3 MB, free: 7.219 MB / 346.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 8.281e-05/0.3628, allocations: 61.53 kB / 466.4 MB, free: 7.152 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.018e-05/0.3628, allocations: 8 kB / 466.4 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.3628, allocations: 0.5 kB / 466.4 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.536e-06/0.3629, allocations: 0 / 466.4 MB, free: 7.145 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.842e-05/0.3629, allocations: 12.59 kB / 466.4 MB, free: 7.133 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.3629, allocations: 7.984 kB / 466.4 MB, free: 7.125 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.737e-05/0.363, allocations: 12.34 kB / 466.4 MB, free: 7.113 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.089e-06/0.363, allocations: 128 / 466.4 MB, free: 7.113 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.884e-05/0.3631, allocations: 105 kB / 466.5 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.651e-05/0.3631, allocations: 49.59 kB / 466.6 MB, free: 6.949 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.077e-05/0.3632, allocations: 8.125 kB / 466.6 MB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.3632, allocations: 0.9375 kB / 466.6 MB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.3632, allocations: 1.75 kB / 466.6 MB, free: 6.938 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.519e-06/0.3632, allocations: 7.922 kB / 466.6 MB, free: 6.93 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001355/0.3634, allocations: 154.1 kB / 466.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.3634, allocations: 0 / 466.8 MB, free: 6.742 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.351e-05/0.3634, allocations: 19.92 kB / 466.8 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.3634, allocations: 0 / 466.8 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.695e-06/0.3635, allocations: 0 / 466.8 MB, free: 6.723 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.667e-06/0.3635, allocations: 4.938 kB / 466.8 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.794e-06/0.3635, allocations: 0 / 466.8 MB, free: 6.719 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000121/0.3636, allocations: 165.9 kB / 466.9 MB, free: 6.531 MB / 346.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002086/0.3638, allocations: 0.5453 MB / 467.5 MB, free: 5.957 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.532e-05/0.3639, allocations: 89 kB / 467.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.526e-05/0.3639, allocations: 0 / 467.6 MB, free: 5.852 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.531e-05/0.364, allocations: 4.5 kB / 467.6 MB, free: 5.848 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.654e-05/0.364, allocations: 11.91 kB / 467.6 MB, free: 5.836 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.959e-06/0.364, allocations: 4 kB / 467.6 MB, free: 5.832 MB / 346.7 MB Notification: Performance of sort global known variables: time 5.547e-05/0.3641, allocations: 103.3 kB / 467.7 MB, free: 5.73 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007624/0.3649, allocations: 7.938 kB / 467.7 MB, free: 5.723 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001009/0.365, allocations: 99.23 kB / 467.8 MB, free: 5.613 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 7.122e-05/0.365, allocations: 19.94 kB / 467.8 MB, free: 5.594 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.583e-06/0.3651, allocations: 0 / 467.8 MB, free: 5.594 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 1.428e-05/0.3651, allocations: 8.25 kB / 467.8 MB, free: 5.586 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.3653, allocations: 23.58 kB / 467.9 MB, free: 5.566 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002312/0.3655, allocations: 104 kB / 468 MB, free: 5.441 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002351/0.3658, allocations: 0.7071 MB / 468.7 MB, free: 4.711 MB / 346.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3658, allocations: 0 / 468.7 MB, free: 4.711 MB / 346.7 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample1.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample1.pipe 2>&1)