Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.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/IBPSA 4.0.0-master/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",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.001387/0.001386, allocations: 183.4 kB / 7.803 MB, free: 136 kB / 6.207 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4884/0.4884, allocations: 90.85 MB / 99.07 MB, free: 3.324 MB / 78.07 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.278/1.278, allocations: 221.4 MB / 342.8 MB, free: 10.11 MB / 286.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008603/0.0008605, allocations: 98.66 kB / 415.5 MB, free: 10.76 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.1855/0.1864, allocations: 78.46 MB / 494 MB, free: 12.28 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4111/0.5975, allocations: 72.29 MB / 0.553 GB, free: 74.19 MB / 446.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6314/1.229, allocations: 348.8 MB / 0.8936 GB, free: 0.6602 MB / 0.545 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/1.229, allocations: 92.06 kB / 0.8937 GB, free: 0.6133 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 51 * Number of variables: 51 Notification: Performance of Generate backend data structure: time 0.6988/1.928, allocations: 178.6 MB / 1.068 GB, free: 100.9 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 6.986e-05/1.928, allocations: 11.98 kB / 1.068 GB, free: 100.9 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003241/1.929, allocations: 59.34 kB / 1.068 GB, free: 100.8 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00124/1.93, allocations: 429.1 kB / 1.069 GB, free: 100.4 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.21e-05/1.93, allocations: 8 kB / 1.069 GB, free: 100.4 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.892e-05/1.93, allocations: 27.92 kB / 1.069 GB, free: 100.4 MB / 0.5919 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003508/1.93, allocations: 120.9 kB / 1.069 GB, free: 100.2 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003447/1.931, allocations: 166.4 kB / 1.069 GB, free: 100.1 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.366e-05/1.931, allocations: 3.906 kB / 1.069 GB, free: 100.1 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/1.931, allocations: 0 / 1.069 GB, free: 100.1 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.682e-05/1.931, allocations: 8 kB / 1.069 GB, free: 100.1 MB / 0.5919 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002087/1.933, allocations: 0.8665 MB / 1.07 GB, free: 99.14 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002523/1.933, allocations: 118.5 kB / 1.07 GB, free: 99.02 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001039/1.933, allocations: 52.84 kB / 1.07 GB, free: 98.96 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003939/1.934, allocations: 336.4 kB / 1.07 GB, free: 98.56 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.323e-05/1.934, allocations: 46.48 kB / 1.07 GB, free: 98.51 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=14): time 2.865e-06/1.934, allocations: 0 / 1.07 GB, free: 98.51 MB / 0.5919 GB Notification: Performance of matching and sorting (n=14): time 0.0006506/1.934, allocations: 161.1 kB / 1.07 GB, free: 98.34 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/1.934, allocations: 55.41 kB / 1.07 GB, free: 98.28 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004481/1.935, allocations: 357.2 kB / 1.071 GB, free: 97.93 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 4.008e-05/1.935, allocations: 29.7 kB / 1.071 GB, free: 97.89 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001409/1.935, allocations: 172.3 kB / 1.071 GB, free: 97.71 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 3.745e-05/1.935, allocations: 43.3 kB / 1.071 GB, free: 97.67 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.104e-05/1.935, allocations: 0 / 1.071 GB, free: 97.67 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001908/1.935, allocations: 354.8 kB / 1.071 GB, free: 97.32 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/1.935, allocations: 47.98 kB / 1.071 GB, free: 97.27 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/1.936, allocations: 152.7 kB / 1.072 GB, free: 97.08 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002772/1.936, allocations: 79.23 kB / 1.072 GB, free: 97.01 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/1.936, allocations: 0 / 1.072 GB, free: 97.01 MB / 0.5919 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0005164/1.937, allocations: 217 kB / 1.072 GB, free: 96.79 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001257/1.937, allocations: 270.9 kB / 1.072 GB, free: 96.5 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/1.937, allocations: 0 / 1.072 GB, free: 96.5 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/1.937, allocations: 12.09 kB / 1.072 GB, free: 96.49 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002948/1.937, allocations: 51.91 kB / 1.072 GB, free: 96.44 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.452e-05/1.937, allocations: 4 kB / 1.072 GB, free: 96.44 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004958/1.938, allocations: 51.64 kB / 1.072 GB, free: 96.39 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.235e-05/1.938, allocations: 11.98 kB / 1.072 GB, free: 96.38 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/1.938, allocations: 4 kB / 1.072 GB, free: 96.37 MB / 0.5919 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003712/1.938, allocations: 139.9 kB / 1.072 GB, free: 96.23 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.455e-06/1.938, allocations: 0 / 1.072 GB, free: 96.23 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.26e-06/1.938, allocations: 0 / 1.072 GB, free: 96.23 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002221/1.938, allocations: 55.91 kB / 1.072 GB, free: 96.18 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/1.938, allocations: 3.906 kB / 1.072 GB, free: 96.18 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004186/1.939, allocations: 39.75 kB / 1.072 GB, free: 96.14 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.434e-05/1.939, allocations: 19.98 kB / 1.072 GB, free: 96.12 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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 0.0001285/1.939, allocations: 108.9 kB / 1.073 GB, free: 96 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001022/1.939, allocations: 35.53 kB / 1.073 GB, free: 95.97 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005858/1.94, allocations: 224.2 kB / 1.073 GB, free: 95.75 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.719e-06/1.94, allocations: 4 kB / 1.073 GB, free: 95.74 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/1.94, allocations: 4 kB / 1.073 GB, free: 95.74 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.66e-06/1.94, allocations: 0 / 1.073 GB, free: 95.74 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008716/1.941, allocations: 0.6321 MB / 1.073 GB, free: 95.05 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/1.941, allocations: 0 / 1.073 GB, free: 95.05 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001403/1.941, allocations: 40.05 kB / 1.073 GB, free: 95.02 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/1.941, allocations: 0 / 1.073 GB, free: 95.02 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.753e-05/1.941, allocations: 4 kB / 1.073 GB, free: 95.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.544e-06/1.941, allocations: 0 / 1.073 GB, free: 95.01 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/1.941, allocations: 7.984 kB / 1.073 GB, free: 95 MB / 0.5919 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003934/1.941, allocations: 353.1 kB / 1.074 GB, free: 94.61 MB / 0.5919 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004848/1.942, allocations: 0.7435 MB / 1.075 GB, free: 93.8 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00015/1.942, allocations: 144.5 kB / 1.075 GB, free: 93.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.819e-05/1.942, allocations: 4 kB / 1.075 GB, free: 93.64 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002684/1.942, allocations: 31.81 kB / 1.075 GB, free: 93.61 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.451e-05/1.942, allocations: 7.984 kB / 1.075 GB, free: 93.6 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.662e-05/1.942, allocations: 16 kB / 1.075 GB, free: 93.59 MB / 0.5919 GB Notification: Performance of sort global known variables: time 0.0002642/1.942, allocations: 279.2 kB / 1.075 GB, free: 93.32 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.002214/1.945, allocations: 287.5 kB / 1.075 GB, free: 93.04 MB / 0.5919 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 (16): * Single equations (assignments): 14 * 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.001141/1.946, allocations: 499.1 kB / 1.076 GB, free: 92.64 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.0004426/1.946, allocations: 238.2 kB / 1.076 GB, free: 92.41 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/1.946, allocations: 0 / 1.076 GB, free: 92.41 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.0001067/1.946, allocations: 71.86 kB / 1.076 GB, free: 92.34 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/1.947, allocations: 184.3 kB / 1.076 GB, free: 92.16 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001115/1.949, allocations: 0.4926 MB / 1.077 GB, free: 91.64 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003552/1.949, allocations: 0.8737 MB / 1.078 GB, free: 90.73 MB / 0.5919 GB Notification: Performance of SimCode: time 8.52e-07/1.949, allocations: 0 / 1.078 GB, free: 90.73 MB / 0.5919 GB (rm -f IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > IBPSA_latest_IBPSA.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)