Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7241/0.7241, allocations: 141.8 MB / 149.1 MB, free: 4.449 MB / 122.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009548/0.0009547, allocations: 178.7 kB / 181.9 MB, free: 100 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.398/1.398, allocations: 221.3 MB / 436 MB, free: 9.246 MB / 330.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009395/0.0009395, allocations: 96.53 kB / 0.507 GB, free: 24.19 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00178/0.00178, allocations: 289.2 kB / 0.5884 GB, free: 12.26 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1968/0.1986, allocations: 89.64 MB / 0.676 GB, free: 2.535 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4209/0.6195, allocations: 82.76 MB / 0.7568 GB, free: 112.9 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6768/1.296, allocations: 355.9 MB / 1.104 GB, free: 12.41 MB / 0.6357 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000265/1.297, allocations: 101.3 kB / 1.104 GB, free: 12.36 MB / 0.6357 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.7668/2.064, allocations: 178.6 MB / 1.279 GB, free: 136.4 MB / 0.6825 GB Notification: Performance of prepare preOptimizeDAE: time 3.747e-05/2.064, allocations: 12.62 kB / 1.279 GB, free: 136.4 MB / 0.6825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/2.064, allocations: 54.69 kB / 1.279 GB, free: 136.4 MB / 0.6825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006706/2.064, allocations: 422.7 kB / 1.279 GB, free: 136 MB / 0.6825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.246e-05/2.064, allocations: 7.844 kB / 1.279 GB, free: 136 MB / 0.6825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/2.064, allocations: 19.53 kB / 1.279 GB, free: 136 MB / 0.6825 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002318/2.065, allocations: 135.1 kB / 1.279 GB, free: 136 MB / 0.6825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002425/2.065, allocations: 160.8 kB / 1.28 GB, free: 135.9 MB / 0.6825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/2.065, allocations: 0 / 1.28 GB, free: 135.9 MB / 0.6825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.094e-05/2.065, allocations: 3.938 kB / 1.28 GB, free: 135.9 MB / 0.6825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.482e-06/2.065, allocations: 3.719 kB / 1.28 GB, free: 135.9 MB / 0.6825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001184/2.066, allocations: 0.8808 MB / 1.281 GB, free: 135.1 MB / 0.6825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001773/2.066, allocations: 113.4 kB / 1.281 GB, free: 135.1 MB / 0.6825 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.7e-05/2.066, allocations: 56.88 kB / 1.281 GB, free: 135.1 MB / 0.6825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002344/2.067, allocations: 340.1 kB / 1.281 GB, free: 134.7 MB / 0.6825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.571e-05/2.067, allocations: 42.41 kB / 1.281 GB, free: 134.6 MB / 0.6825 GB Notification: Performance of pre-optimization done (n=14): time 1.783e-06/2.067, allocations: 0 / 1.281 GB, free: 134.6 MB / 0.6825 GB Notification: Performance of matching and sorting (n=14): time 0.0004291/2.067, allocations: 157.6 kB / 1.281 GB, free: 134.5 MB / 0.6825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.87e-05/2.067, allocations: 59.31 kB / 1.281 GB, free: 134.5 MB / 0.6825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003555/2.068, allocations: 361.8 kB / 1.282 GB, free: 134.2 MB / 0.6825 GB Notification: Performance of collectPreVariables (initialization): time 2.409e-05/2.068, allocations: 25.7 kB / 1.282 GB, free: 134.2 MB / 0.6825 GB Notification: Performance of collectInitialEqns (initialization): time 8.226e-05/2.068, allocations: 172 kB / 1.282 GB, free: 134.1 MB / 0.6825 GB Notification: Performance of collectInitialBindings (initialization): time 3.283e-05/2.068, allocations: 43.17 kB / 1.282 GB, free: 134 MB / 0.6825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.145e-05/2.068, allocations: 0 / 1.282 GB, free: 134 MB / 0.6825 GB Notification: Performance of setup shared object (initialization): time 7.179e-05/2.068, allocations: 350.5 kB / 1.282 GB, free: 133.7 MB / 0.6825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.265e-05/2.068, allocations: 51.33 kB / 1.282 GB, free: 133.7 MB / 0.6825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000145/2.068, allocations: 158 kB / 1.282 GB, free: 133.5 MB / 0.6825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000192/2.068, allocations: 77.98 kB / 1.282 GB, free: 133.5 MB / 0.6825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/2.068, allocations: 0 / 1.282 GB, free: 133.5 MB / 0.6825 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0003793/2.069, allocations: 218.9 kB / 1.283 GB, free: 133.4 MB / 0.6825 GB Notification: Performance of prepare postOptimizeDAE: time 7.492e-05/2.069, allocations: 270.8 kB / 1.283 GB, free: 133.1 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/2.069, allocations: 0 / 1.283 GB, free: 133.1 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.907e-05/2.069, allocations: 3.906 kB / 1.283 GB, free: 133.1 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002615/2.069, allocations: 54.97 kB / 1.283 GB, free: 133.1 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.103e-06/2.069, allocations: 7.906 kB / 1.283 GB, free: 133.1 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003797/2.069, allocations: 39.42 kB / 1.283 GB, free: 133 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/2.069, allocations: 7.906 kB / 1.283 GB, free: 133 MB / 0.6825 GB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/2.069, allocations: 3.906 kB / 1.283 GB, free: 133 MB / 0.6825 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0003014/2.07, allocations: 152.1 kB / 1.283 GB, free: 133 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.206e-06/2.07, allocations: 4 kB / 1.283 GB, free: 133 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.208e-06/2.07, allocations: 3.906 kB / 1.283 GB, free: 133 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002118/2.07, allocations: 50.97 kB / 1.283 GB, free: 132.9 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.645e-06/2.07, allocations: 0 / 1.283 GB, free: 132.9 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003405/2.07, allocations: 39.31 kB / 1.283 GB, free: 132.9 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.563e-05/2.07, allocations: 15.83 kB / 1.283 GB, free: 132.9 MB / 0.6825 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 7.911e-05/2.071, allocations: 108.8 kB / 1.283 GB, free: 132.8 MB / 0.6825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.296e-05/2.071, allocations: 42.97 kB / 1.283 GB, free: 132.8 MB / 0.6825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004822/2.071, allocations: 226.8 kB / 1.284 GB, free: 132.6 MB / 0.6825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.691e-06/2.071, allocations: 0 / 1.284 GB, free: 132.6 MB / 0.6825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/2.071, allocations: 3.906 kB / 1.284 GB, free: 132.6 MB / 0.6825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.551e-06/2.071, allocations: 0 / 1.284 GB, free: 132.6 MB / 0.6825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007745/2.072, allocations: 0.6272 MB / 1.284 GB, free: 132.1 MB / 0.6825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.037e-06/2.072, allocations: 3.906 kB / 1.284 GB, free: 132.1 MB / 0.6825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000138/2.072, allocations: 31.45 kB / 1.284 GB, free: 132.1 MB / 0.6825 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/2.072, allocations: 3.906 kB / 1.284 GB, free: 132.1 MB / 0.6825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.576e-05/2.072, allocations: 11.83 kB / 1.284 GB, free: 132.1 MB / 0.6825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/2.072, allocations: 0 / 1.284 GB, free: 132.1 MB / 0.6825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/2.072, allocations: 8.031 kB / 1.284 GB, free: 132.1 MB / 0.6825 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003385/2.072, allocations: 358.2 kB / 1.285 GB, free: 131.8 MB / 0.6825 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004303/2.073, allocations: 0.7409 MB / 1.285 GB, free: 131.1 MB / 0.6825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001243/2.073, allocations: 148 kB / 1.285 GB, free: 130.9 MB / 0.6825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.864e-05/2.073, allocations: 3.984 kB / 1.285 GB, free: 130.9 MB / 0.6825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002629/2.073, allocations: 23.55 kB / 1.286 GB, free: 130.9 MB / 0.6825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.632e-05/2.073, allocations: 15.83 kB / 1.286 GB, free: 130.9 MB / 0.6825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.525e-05/2.073, allocations: 11.89 kB / 1.286 GB, free: 130.9 MB / 0.6825 GB Notification: Performance of sort global known variables: time 0.0002583/2.074, allocations: 272.6 kB / 1.286 GB, free: 130.8 MB / 0.6825 GB Notification: Performance of remove unused functions: time 0.002175/2.076, allocations: 288 kB / 1.286 GB, free: 130.6 MB / 0.6825 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.001017/2.077, allocations: 0.4897 MB / 1.287 GB, free: 130.4 MB / 0.6825 GB Notification: Performance of simCode: created initialization part: time 0.0004058/2.077, allocations: 240.7 kB / 1.287 GB, free: 130.3 MB / 0.6825 GB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/2.077, allocations: 0 / 1.287 GB, free: 130.3 MB / 0.6825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001022/2.077, allocations: 70.73 kB / 1.287 GB, free: 130.3 MB / 0.6825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000992/2.078, allocations: 188.2 kB / 1.287 GB, free: 130.2 MB / 0.6825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/2.079, allocations: 0.4941 MB / 1.288 GB, free: 129.9 MB / 0.6825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003358/2.08, allocations: 0.8751 MB / 1.288 GB, free: 129.1 MB / 0.6825 GB Notification: Performance of SimCode: time 2.91e-07/2.08, allocations: 3.844 kB / 1.288 GB, free: 129.1 MB / 0.6825 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValvesTable.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValvesTable.pipe 2>&1)