Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) 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) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable",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/Buildings 10.0.0-master/package.mo): time 2.188/2.188, allocations: 390.4 MB / 397.7 MB, free: 11.26 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 178.3 kB / 490.8 MB, free: 1.898 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.565/1.565, allocations: 221.3 MB / 0.7863 GB, free: 13.64 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 82.86 kB / 0.9264 GB, free: 14.18 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.6239/0.625, allocations: 149.1 MB / 1.072 GB, free: 182.5 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2968/0.9218, allocations: 143 MB / 1.212 GB, free: 40 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.04/1.962, allocations: 401.8 MB / 1.604 GB, free: 13.12 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003147/1.963, allocations: 90.33 kB / 1.604 GB, free: 13.07 MB / 1.026 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.9361/2.899, allocations: 179 MB / 1.779 GB, free: 358.1 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.31e-05/2.899, allocations: 15.17 kB / 1.779 GB, free: 358.1 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002698/2.899, allocations: 58.53 kB / 1.779 GB, free: 358 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008484/2.9, allocations: 465.2 kB / 1.779 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.569e-05/2.9, allocations: 7.438 kB / 1.779 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.74e-05/2.9, allocations: 21 kB / 1.78 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002845/2.9, allocations: 143.4 kB / 1.78 GB, free: 357.8 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/2.901, allocations: 239.5 kB / 1.78 GB, free: 357.7 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/2.901, allocations: 0 / 1.78 GB, free: 357.7 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/2.901, allocations: 3.688 kB / 1.78 GB, free: 357.7 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/2.901, allocations: 3.906 kB / 1.78 GB, free: 357.7 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001869/2.903, allocations: 1.451 MB / 1.781 GB, free: 356.9 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/2.903, allocations: 142.8 kB / 1.781 GB, free: 356.8 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.927e-05/2.903, allocations: 61.34 kB / 1.781 GB, free: 356.8 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001308/2.904, allocations: 1.357 MB / 1.783 GB, free: 355.6 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.198e-05/2.904, allocations: 37.66 kB / 1.783 GB, free: 355.6 MB / 1.151 GB Notification: Performance of pre-optimization done (n=15): time 1.633e-06/2.904, allocations: 0 / 1.783 GB, free: 355.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=15): time 0.000508/2.905, allocations: 180.9 kB / 1.783 GB, free: 355.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.94e-05/2.905, allocations: 51.41 kB / 1.783 GB, free: 355.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004823/2.905, allocations: 481 kB / 1.784 GB, free: 355.3 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/2.905, allocations: 29.64 kB / 1.784 GB, free: 355.3 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 9.691e-05/2.905, allocations: 203.8 kB / 1.784 GB, free: 355.2 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 3.021e-05/2.905, allocations: 53.23 kB / 1.784 GB, free: 355.1 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.037e-05/2.905, allocations: 0 / 1.784 GB, free: 355.1 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 7.385e-05/2.906, allocations: 354.6 kB / 1.784 GB, free: 354.8 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.683e-05/2.906, allocations: 51.77 kB / 1.784 GB, free: 354.8 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001772/2.906, allocations: 209.8 kB / 1.784 GB, free: 354.7 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/2.906, allocations: 104.3 kB / 1.784 GB, free: 354.7 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/2.906, allocations: 7.094 kB / 1.784 GB, free: 354.6 MB / 1.151 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005179/2.907, allocations: 263.3 kB / 1.785 GB, free: 354.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001739/2.907, allocations: 0.9601 MB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/2.907, allocations: 3.281 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.627e-05/2.907, allocations: 6.406 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002769/2.907, allocations: 70.78 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/2.907, allocations: 9.875 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003845/2.908, allocations: 49.62 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.488e-05/2.908, allocations: 18.19 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 6.222e-06/2.908, allocations: 3.844 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003984/2.908, allocations: 191.7 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.338e-06/2.908, allocations: 3.938 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.689e-06/2.908, allocations: 3.969 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002397/2.908, allocations: 65.11 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.158e-06/2.908, allocations: 3.875 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003443/2.909, allocations: 37.16 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.932e-05/2.909, allocations: 18.64 kB / 1.786 GB, free: 353.6 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (33): * Single equations (assignments): 33 * 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 7.902e-05/2.909, allocations: 115.2 kB / 1.786 GB, free: 353.5 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.085e-05/2.909, allocations: 45.72 kB / 1.786 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005094/2.909, allocations: 244 kB / 1.787 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.274e-06/2.909, allocations: 3.781 kB / 1.787 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/2.909, allocations: 3.906 kB / 1.787 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.341e-06/2.909, allocations: 3.375 kB / 1.787 GB, free: 353.4 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009037/2.91, allocations: 0.6815 MB / 1.787 GB, free: 353.1 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/2.91, allocations: 7.875 kB / 1.787 GB, free: 353.1 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001694/2.91, allocations: 33.75 kB / 1.787 GB, free: 353.1 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.808e-06/2.911, allocations: 3.875 kB / 1.787 GB, free: 353.1 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/2.911, allocations: 7.719 kB / 1.787 GB, free: 353.1 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/2.911, allocations: 0 / 1.787 GB, free: 353.1 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/2.911, allocations: 7.188 kB / 1.787 GB, free: 353.1 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003972/2.911, allocations: 376.1 kB / 1.788 GB, free: 352.8 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005115/2.911, allocations: 0.76 MB / 1.788 GB, free: 352.2 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001439/2.912, allocations: 156.8 kB / 1.789 GB, free: 352.1 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.665e-05/2.912, allocations: 3.906 kB / 1.789 GB, free: 352.1 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002582/2.912, allocations: 22.83 kB / 1.789 GB, free: 352.1 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.42e-05/2.912, allocations: 11.5 kB / 1.789 GB, free: 352.1 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.408e-05/2.912, allocations: 3.938 kB / 1.789 GB, free: 352.1 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0003296/2.912, allocations: 373.2 kB / 1.789 GB, free: 352 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002167/2.915, allocations: 340.5 kB / 1.789 GB, free: 351.9 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 15 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001092/2.916, allocations: 0.5197 MB / 1.79 GB, free: 351.8 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.0004702/2.916, allocations: 289.9 kB / 1.79 GB, free: 351.8 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/2.916, allocations: 3.375 kB / 1.79 GB, free: 351.8 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.0001096/2.916, allocations: 72.16 kB / 1.79 GB, free: 351.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001116/2.917, allocations: 208.9 kB / 1.79 GB, free: 351.8 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/2.919, allocations: 0.586 MB / 1.791 GB, free: 351.6 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003805/2.919, allocations: 0.9035 MB / 1.792 GB, free: 350.9 MB / 1.151 GB Notification: Performance of SimCode: time 3.01e-07/2.919, allocations: 0 / 1.792 GB, free: 350.9 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > Buildings_latest_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)