Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.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.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.731/0.731, allocations: 141.8 MB / 149.1 MB, free: 1.328 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.001152/0.001153, allocations: 179.5 kB / 181.9 MB, free: 13.43 MB / 154.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.346/1.346, allocations: 221.3 MB / 436 MB, free: 6.293 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.001002/0.001002, allocations: 96.27 kB / 0.507 GB, free: 18.91 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001806/0.001806, allocations: 273.4 kB / 0.5884 GB, free: 7.348 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4505/0.4523, allocations: 89.64 MB / 0.676 GB, free: 140 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1957/0.6481, allocations: 82.78 MB / 0.7568 GB, free: 89.66 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7333/1.381, allocations: 360.4 MB / 1.109 GB, free: 10.43 MB / 0.6825 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/1.382, allocations: 100.3 kB / 1.109 GB, free: 10.38 MB / 0.6825 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.7325/2.114, allocations: 179 MB / 1.284 GB, free: 128.1 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.687e-05/2.114, allocations: 13 kB / 1.284 GB, free: 128.1 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003121/2.115, allocations: 63.23 kB / 1.284 GB, free: 128 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009564/2.116, allocations: 460.8 kB / 1.284 GB, free: 127.5 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.588e-05/2.116, allocations: 8 kB / 1.284 GB, free: 127.5 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.526e-05/2.116, allocations: 23.98 kB / 1.284 GB, free: 127.5 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002907/2.116, allocations: 145 kB / 1.284 GB, free: 127.4 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003169/2.116, allocations: 228.3 kB / 1.285 GB, free: 127.1 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.206e-05/2.116, allocations: 0 / 1.285 GB, free: 127.1 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.142e-05/2.116, allocations: 3.938 kB / 1.285 GB, free: 127.1 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/2.116, allocations: 8 kB / 1.285 GB, free: 127.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001918/2.118, allocations: 1.438 MB / 1.286 GB, free: 125.6 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002165/2.119, allocations: 134.8 kB / 1.286 GB, free: 125.5 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.635e-05/2.119, allocations: 68.84 kB / 1.286 GB, free: 125.4 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001394/2.12, allocations: 1.367 MB / 1.288 GB, free: 123.8 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.815e-05/2.12, allocations: 38.56 kB / 1.288 GB, free: 123.8 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=15): time 2.565e-06/2.12, allocations: 0 / 1.288 GB, free: 123.8 MB / 0.6982 GB Notification: Performance of matching and sorting (n=15): time 0.0005916/2.121, allocations: 185.1 kB / 1.288 GB, free: 123.6 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.272e-05/2.121, allocations: 51.41 kB / 1.288 GB, free: 123.5 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005459/2.121, allocations: 477.2 kB / 1.288 GB, free: 123 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.657e-05/2.121, allocations: 29.7 kB / 1.288 GB, free: 123 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/2.121, allocations: 207.9 kB / 1.288 GB, free: 122.8 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 2.899e-05/2.121, allocations: 43.36 kB / 1.289 GB, free: 122.8 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.118e-05/2.121, allocations: 0 / 1.289 GB, free: 122.8 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 8.533e-05/2.122, allocations: 362.7 kB / 1.289 GB, free: 122.4 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.237e-05/2.122, allocations: 48.56 kB / 1.289 GB, free: 122.3 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/2.122, allocations: 209.1 kB / 1.289 GB, free: 122.1 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003165/2.122, allocations: 95.86 kB / 1.289 GB, free: 122 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.075e-06/2.122, allocations: 0 / 1.289 GB, free: 122 MB / 0.6982 GB Notification: Performance of matching and sorting (n=33) (initialization): time 0.0005124/2.123, allocations: 267.9 kB / 1.289 GB, free: 121.7 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002052/2.123, allocations: 0.9676 MB / 1.29 GB, free: 120.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.247e-06/2.123, allocations: 3.906 kB / 1.29 GB, free: 120.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/2.123, allocations: 4 kB / 1.29 GB, free: 120.7 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002829/2.123, allocations: 63.91 kB / 1.29 GB, free: 120.6 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.366e-06/2.123, allocations: 4 kB / 1.29 GB, free: 120.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004161/2.124, allocations: 47.66 kB / 1.291 GB, free: 120.6 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.145e-05/2.124, allocations: 19.98 kB / 1.291 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/2.124, allocations: 4 kB / 1.291 GB, free: 120.5 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000398/2.124, allocations: 195.7 kB / 1.291 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/2.124, allocations: 7.984 kB / 1.291 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.111e-06/2.124, allocations: 4 kB / 1.291 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/2.124, allocations: 63.84 kB / 1.291 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.18e-06/2.124, allocations: 7.938 kB / 1.291 GB, free: 120.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003673/2.125, allocations: 40.03 kB / 1.291 GB, free: 120.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.204e-05/2.125, allocations: 16 kB / 1.291 GB, free: 120.2 MB / 0.6982 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 9.196e-05/2.125, allocations: 116.8 kB / 1.291 GB, free: 120.1 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.555e-05/2.125, allocations: 43.44 kB / 1.291 GB, free: 120 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005502/2.126, allocations: 241.2 kB / 1.291 GB, free: 119.8 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.817e-06/2.126, allocations: 7.938 kB / 1.291 GB, free: 119.8 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/2.126, allocations: 0 / 1.291 GB, free: 119.8 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.802e-06/2.126, allocations: 4.172 kB / 1.291 GB, free: 119.8 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009281/2.127, allocations: 0.6924 MB / 1.292 GB, free: 119 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.937e-06/2.127, allocations: 0 / 1.292 GB, free: 119 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001375/2.127, allocations: 35.92 kB / 1.292 GB, free: 119 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.17e-06/2.127, allocations: 3.984 kB / 1.292 GB, free: 119 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/2.127, allocations: 4 kB / 1.292 GB, free: 119 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/2.127, allocations: 4 kB / 1.292 GB, free: 119 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.587e-06/2.127, allocations: 128 / 1.292 GB, free: 119 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004067/2.127, allocations: 388.4 kB / 1.292 GB, free: 118.6 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004875/2.128, allocations: 0.7671 MB / 1.293 GB, free: 117.7 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001637/2.128, allocations: 156.4 kB / 1.293 GB, free: 117.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.1e-05/2.128, allocations: 0 / 1.293 GB, free: 117.6 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002505/2.128, allocations: 23.97 kB / 1.293 GB, free: 117.6 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.652e-05/2.128, allocations: 11.98 kB / 1.293 GB, free: 117.5 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.424e-05/2.128, allocations: 8 kB / 1.293 GB, free: 117.5 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0003499/2.129, allocations: 362.9 kB / 1.294 GB, free: 117.2 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002301/2.131, allocations: 339.4 kB / 1.294 GB, free: 116.8 MB / 0.6982 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.001266/2.132, allocations: 0.5092 MB / 1.294 GB, free: 116.4 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0005474/2.133, allocations: 294.8 kB / 1.295 GB, free: 116.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/2.133, allocations: 0 / 1.295 GB, free: 116.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.000111/2.133, allocations: 75.8 kB / 1.295 GB, free: 116.1 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001168/2.134, allocations: 223.9 kB / 1.295 GB, free: 115.9 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001293/2.135, allocations: 0.5866 MB / 1.296 GB, free: 115.2 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003778/2.136, allocations: 0.9016 MB / 1.296 GB, free: 114.3 MB / 0.6982 GB Notification: Performance of SimCode: time 1.052e-06/2.136, allocations: 0 / 1.296 GB, free: 114.3 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Actuators_Valves_Examples_TwoWayValveTable.fmu > BuildingSystems_BuildingSystems.Fluid.Actuators.Valves.Examples.TwoWayValveTable.pipe 2>&1)