Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.096/2.096, allocations: 387.2 MB / 394.5 MB, free: 4.578 MB / 306.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00104/0.00104, allocations: 185.2 kB / 487 MB, free: 11.11 MB / 402.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.298/1.298, allocations: 221.3 MB / 0.7819 GB, free: 3.977 MB / 0.5497 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008956/0.0008954, allocations: 95.55 kB / 0.9213 GB, free: 5.066 MB / 0.6903 GB Notification: Performance of FrontEnd - loaded program: time 0.5505/0.5514, allocations: 148.5 MB / 1.066 GB, free: 141 MB / 0.7216 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2723/0.8237, allocations: 142.3 MB / 1.205 GB, free: 14.7 MB / 0.7372 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.027/1.851, allocations: 401.1 MB / 1.597 GB, free: 6.629 MB / 1.065 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002783/1.851, allocations: 95.94 kB / 1.597 GB, free: 6.535 MB / 1.065 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.984/2.835, allocations: 179 MB / 1.772 GB, free: 336.6 MB / 1.128 GB Notification: Performance of prepare preOptimizeDAE: time 3.827e-05/2.835, allocations: 12 kB / 1.772 GB, free: 336.5 MB / 1.128 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/2.835, allocations: 67.33 kB / 1.772 GB, free: 336.5 MB / 1.128 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006584/2.836, allocations: 452.2 kB / 1.772 GB, free: 336 MB / 1.128 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/2.836, allocations: 8 kB / 1.772 GB, free: 336 MB / 1.128 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.973e-05/2.836, allocations: 16 kB / 1.772 GB, free: 336 MB / 1.128 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002621/2.836, allocations: 148.9 kB / 1.773 GB, free: 335.8 MB / 1.128 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003039/2.837, allocations: 228.4 kB / 1.773 GB, free: 335.6 MB / 1.128 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/2.837, allocations: 0 / 1.773 GB, free: 335.6 MB / 1.128 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.202e-05/2.837, allocations: 0 / 1.773 GB, free: 335.6 MB / 1.128 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.578e-06/2.837, allocations: 11.91 kB / 1.773 GB, free: 335.6 MB / 1.128 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001513/2.838, allocations: 1.451 MB / 1.774 GB, free: 334.1 MB / 1.128 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001853/2.838, allocations: 138.8 kB / 1.774 GB, free: 333.9 MB / 1.128 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.583e-05/2.838, allocations: 64.84 kB / 1.774 GB, free: 333.8 MB / 1.128 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00118/2.84, allocations: 1.362 MB / 1.776 GB, free: 332.3 MB / 1.128 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.738e-05/2.84, allocations: 34.56 kB / 1.776 GB, free: 332.2 MB / 1.128 GB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/2.84, allocations: 4 kB / 1.776 GB, free: 332.2 MB / 1.128 GB Notification: Performance of matching and sorting (n=15): time 0.0004461/2.84, allocations: 180.8 kB / 1.776 GB, free: 332.1 MB / 1.128 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.02e-05/2.84, allocations: 59.34 kB / 1.776 GB, free: 332 MB / 1.128 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004383/2.841, allocations: 469.4 kB / 1.776 GB, free: 331.5 MB / 1.128 GB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/2.841, allocations: 29.64 kB / 1.776 GB, free: 331.5 MB / 1.128 GB Notification: Performance of collectInitialEqns (initialization): time 8.892e-05/2.841, allocations: 203.9 kB / 1.777 GB, free: 331.3 MB / 1.128 GB Notification: Performance of collectInitialBindings (initialization): time 2.657e-05/2.841, allocations: 55.2 kB / 1.777 GB, free: 331.2 MB / 1.128 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.041e-05/2.841, allocations: 0 / 1.777 GB, free: 331.2 MB / 1.128 GB Notification: Performance of setup shared object (initialization): time 7.492e-05/2.841, allocations: 358.8 kB / 1.777 GB, free: 330.9 MB / 1.128 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.629e-05/2.841, allocations: 52.56 kB / 1.777 GB, free: 330.8 MB / 1.128 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/2.841, allocations: 211.5 kB / 1.777 GB, free: 330.5 MB / 1.128 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/2.841, allocations: 103.8 kB / 1.777 GB, free: 330.4 MB / 1.128 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/2.841, allocations: 0 / 1.777 GB, free: 330.4 MB / 1.128 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0004428/2.842, allocations: 264.9 kB / 1.778 GB, free: 330.2 MB / 1.128 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001541/2.842, allocations: 0.9656 MB / 1.779 GB, free: 329.1 MB / 1.128 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.512e-06/2.842, allocations: 4 kB / 1.779 GB, free: 329.1 MB / 1.128 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/2.842, allocations: 8 kB / 1.779 GB, free: 329.1 MB / 1.128 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002668/2.842, allocations: 67.91 kB / 1.779 GB, free: 329.1 MB / 1.128 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.403e-06/2.842, allocations: 7.938 kB / 1.779 GB, free: 329.1 MB / 1.128 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000358/2.843, allocations: 43.72 kB / 1.779 GB, free: 329 MB / 1.128 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/2.843, allocations: 16 kB / 1.779 GB, free: 329 MB / 1.128 GB Notification: Performance of prepare postOptimizeDAE: time 5.851e-06/2.843, allocations: 7.984 kB / 1.779 GB, free: 329 MB / 1.128 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003573/2.843, allocations: 183.7 kB / 1.779 GB, free: 328.8 MB / 1.128 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.276e-06/2.843, allocations: 4 kB / 1.779 GB, free: 328.8 MB / 1.128 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.739e-06/2.843, allocations: 4 kB / 1.779 GB, free: 328.8 MB / 1.128 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002239/2.843, allocations: 76.16 kB / 1.779 GB, free: 328.7 MB / 1.128 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.037e-06/2.843, allocations: 4 kB / 1.779 GB, free: 328.7 MB / 1.128 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003014/2.844, allocations: 39.75 kB / 1.779 GB, free: 328.7 MB / 1.128 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.357e-05/2.844, allocations: 19.91 kB / 1.779 GB, free: 328.7 MB / 1.128 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 6.875e-05/2.844, allocations: 112.9 kB / 1.779 GB, free: 328.5 MB / 1.128 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.164e-05/2.844, allocations: 43.44 kB / 1.779 GB, free: 328.5 MB / 1.128 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004817/2.844, allocations: 241.2 kB / 1.779 GB, free: 328.3 MB / 1.128 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/2.844, allocations: 4 kB / 1.779 GB, free: 328.3 MB / 1.128 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/2.844, allocations: 0 / 1.779 GB, free: 328.3 MB / 1.128 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/2.844, allocations: 3.984 kB / 1.779 GB, free: 328.2 MB / 1.128 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007898/2.845, allocations: 0.6838 MB / 1.78 GB, free: 327.5 MB / 1.128 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.128e-06/2.845, allocations: 4 kB / 1.78 GB, free: 327.5 MB / 1.128 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000135/2.845, allocations: 32.11 kB / 1.78 GB, free: 327.5 MB / 1.128 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/2.845, allocations: 4 kB / 1.78 GB, free: 327.5 MB / 1.128 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.22e-05/2.845, allocations: 4 kB / 1.78 GB, free: 327.5 MB / 1.128 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/2.845, allocations: 4 kB / 1.78 GB, free: 327.5 MB / 1.128 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/2.845, allocations: 0 / 1.78 GB, free: 327.5 MB / 1.128 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003593/2.846, allocations: 383 kB / 1.78 GB, free: 327 MB / 1.128 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004501/2.846, allocations: 0.7599 MB / 1.781 GB, free: 326.2 MB / 1.128 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00013/2.846, allocations: 160.3 kB / 1.781 GB, free: 326 MB / 1.128 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.314e-05/2.846, allocations: 4 kB / 1.781 GB, free: 326 MB / 1.128 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002593/2.847, allocations: 19.97 kB / 1.781 GB, free: 326 MB / 1.128 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.731e-05/2.847, allocations: 11.98 kB / 1.781 GB, free: 326 MB / 1.128 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.244e-05/2.847, allocations: 12 kB / 1.781 GB, free: 326 MB / 1.128 GB Notification: Performance of sort global known variables: time 0.0003069/2.847, allocations: 362.9 kB / 1.782 GB, free: 325.6 MB / 1.128 GB Notification: Performance of remove unused functions: time 0.002149/2.849, allocations: 340.2 kB / 1.782 GB, free: 325.3 MB / 1.128 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.0009926/2.85, allocations: 0.5297 MB / 1.783 GB, free: 324.9 MB / 1.128 GB Notification: Performance of simCode: created initialization part: time 0.0004507/2.851, allocations: 291.9 kB / 1.783 GB, free: 324.6 MB / 1.128 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/2.851, allocations: 0 / 1.783 GB, free: 324.6 MB / 1.128 GB Notification: Performance of simCode: created simulation system equations: time 9.59e-05/2.851, allocations: 71.92 kB / 1.783 GB, free: 324.5 MB / 1.128 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/2.852, allocations: 201.7 kB / 1.783 GB, free: 324.3 MB / 1.128 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00106/2.853, allocations: 0.5914 MB / 1.784 GB, free: 323.7 MB / 1.128 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003271/2.853, allocations: 0.9055 MB / 1.785 GB, free: 322.8 MB / 1.128 GB Notification: Performance of SimCode: time 3e-07/2.853, allocations: 0 / 1.785 GB, free: 322.8 MB / 1.128 GB (rm -f Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > Buildings_9_Buildings.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)