Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.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.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter",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.8054/0.8054, allocations: 141.8 MB / 149.1 MB, free: 3.918 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.001272/0.001272, allocations: 186.5 kB / 181.9 MB, free: 15.63 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.398/1.398, allocations: 221.4 MB / 436 MB, free: 8.758 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: 103 kB / 0.507 GB, free: 24.23 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001842/0.001842, allocations: 277.6 kB / 0.5884 GB, free: 11.83 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1929/0.1948, allocations: 89.64 MB / 0.676 GB, free: 2.113 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4032/0.598, allocations: 82.77 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.6912/1.289, allocations: 371.7 MB / 1.12 GB, free: 10.15 MB / 0.6513 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002452/1.29, allocations: 95 kB / 1.12 GB, free: 10.1 MB / 0.6513 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 40 * Number of variables: 40 Notification: Performance of Generate backend data structure: time 0.6755/1.965, allocations: 171.7 MB / 1.288 GB, free: 180.4 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/1.965, allocations: 9 kB / 1.288 GB, free: 180.4 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/1.965, allocations: 43.44 kB / 1.288 GB, free: 180.3 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03644/2.002, allocations: 14.67 MB / 1.302 GB, free: 165.7 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.179e-05/2.002, allocations: 8 kB / 1.302 GB, free: 165.7 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.152e-05/2.002, allocations: 12 kB / 1.302 GB, free: 165.7 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002355/2.002, allocations: 104.5 kB / 1.302 GB, free: 165.6 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002294/2.002, allocations: 131.9 kB / 1.302 GB, free: 165.4 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/2.002, allocations: 0 / 1.302 GB, free: 165.4 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.985e-05/2.002, allocations: 0 / 1.302 GB, free: 165.4 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.257e-06/2.002, allocations: 8 kB / 1.302 GB, free: 165.4 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001232/2.004, allocations: 0.8067 MB / 1.303 GB, free: 164.5 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002425/2.004, allocations: 94.67 kB / 1.303 GB, free: 164.4 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.394e-05/2.004, allocations: 52.75 kB / 1.303 GB, free: 164.4 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002886/2.004, allocations: 348.2 kB / 1.304 GB, free: 164 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.612e-05/2.004, allocations: 30.56 kB / 1.304 GB, free: 163.9 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=12): time 2.344e-06/2.004, allocations: 3.938 kB / 1.304 GB, free: 163.9 MB / 0.6982 GB Notification: Performance of matching and sorting (n=12): time 0.0004803/2.005, allocations: 141.4 kB / 1.304 GB, free: 163.8 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.104e-05/2.005, allocations: 51.41 kB / 1.304 GB, free: 163.7 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002366/2.005, allocations: 242.1 kB / 1.304 GB, free: 163.5 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 2.095e-05/2.005, allocations: 33.69 kB / 1.304 GB, free: 163.4 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 6.086e-05/2.005, allocations: 140.3 kB / 1.304 GB, free: 163.3 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 3.612e-05/2.005, allocations: 51.3 kB / 1.304 GB, free: 163.2 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/2.005, allocations: 0 / 1.304 GB, free: 163.2 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 7.473e-05/2.005, allocations: 334.8 kB / 1.304 GB, free: 162.9 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.706e-05/2.005, allocations: 31.98 kB / 1.305 GB, free: 162.9 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.571e-05/2.005, allocations: 79.14 kB / 1.305 GB, free: 162.8 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/2.006, allocations: 55.94 kB / 1.305 GB, free: 162.7 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/2.006, allocations: 0 / 1.305 GB, free: 162.7 MB / 0.6982 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0002637/2.006, allocations: 141.2 kB / 1.305 GB, free: 162.6 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 5.226e-05/2.006, allocations: 185.9 kB / 1.305 GB, free: 162.4 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.311e-06/2.006, allocations: 0 / 1.305 GB, free: 162.4 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/2.006, allocations: 4 kB / 1.305 GB, free: 162.4 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001429/2.006, allocations: 27.98 kB / 1.305 GB, free: 162.4 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/2.006, allocations: 3.938 kB / 1.305 GB, free: 162.3 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000225/2.006, allocations: 27.97 kB / 1.305 GB, free: 162.3 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.499e-05/2.006, allocations: 8 kB / 1.305 GB, free: 162.3 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/2.006, allocations: 7.906 kB / 1.305 GB, free: 162.3 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001923/2.007, allocations: 75.89 kB / 1.305 GB, free: 162.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-06/2.007, allocations: 0 / 1.305 GB, free: 162.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.775e-06/2.007, allocations: 0 / 1.305 GB, free: 162.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/2.007, allocations: 31.98 kB / 1.305 GB, free: 162.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.923e-06/2.007, allocations: 7.938 kB / 1.305 GB, free: 162.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001878/2.007, allocations: 23.97 kB / 1.305 GB, free: 162.2 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.523e-05/2.007, allocations: 4 kB / 1.305 GB, free: 162.2 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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.691e-05/2.007, allocations: 116.8 kB / 1.305 GB, free: 162 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.975e-05/2.007, allocations: 31.61 kB / 1.305 GB, free: 162 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003948/2.008, allocations: 192.6 kB / 1.305 GB, free: 161.8 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/2.008, allocations: 7.984 kB / 1.306 GB, free: 161.8 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/2.008, allocations: 0 / 1.306 GB, free: 161.8 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/2.008, allocations: 0 / 1.306 GB, free: 161.8 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006144/2.008, allocations: 0.5247 MB / 1.306 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.606e-06/2.008, allocations: 0 / 1.306 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/2.008, allocations: 31.92 kB / 1.306 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.9e-06/2.008, allocations: 7.906 kB / 1.306 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.185e-05/2.008, allocations: 4 kB / 1.306 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.304e-06/2.008, allocations: 4 kB / 1.306 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/2.008, allocations: 3.938 kB / 1.306 GB, free: 161.2 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003009/2.009, allocations: 318.4 kB / 1.306 GB, free: 160.8 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003851/2.009, allocations: 0.6983 MB / 1.307 GB, free: 160.1 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001015/2.009, allocations: 120.6 kB / 1.307 GB, free: 159.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.206e-05/2.009, allocations: 8 kB / 1.307 GB, free: 159.9 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002032/2.009, allocations: 19.89 kB / 1.307 GB, free: 159.9 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.848e-05/2.01, allocations: 7.984 kB / 1.307 GB, free: 159.9 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.461e-05/2.01, allocations: 12 kB / 1.307 GB, free: 159.9 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0001424/2.01, allocations: 204.5 kB / 1.307 GB, free: 159.7 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.00177/2.011, allocations: 203.7 kB / 1.308 GB, free: 159.5 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (14): * Single equations (assignments): 12 * 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.0006294/2.012, allocations: 284.2 kB / 1.308 GB, free: 159.2 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0003016/2.012, allocations: 146 kB / 1.308 GB, free: 159.1 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/2.012, allocations: 3.938 kB / 1.308 GB, free: 159.1 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 8.768e-05/2.013, allocations: 60.11 kB / 1.308 GB, free: 159 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000641/2.013, allocations: 117.4 kB / 1.308 GB, free: 158.9 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000684/2.014, allocations: 384.2 kB / 1.309 GB, free: 158.5 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002614/2.014, allocations: 0.8343 MB / 1.309 GB, free: 157.7 MB / 0.6982 GB Notification: Performance of SimCode: time 2.71e-07/2.014, allocations: 0 / 1.309 GB, free: 157.7 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_HydraulicDiameter.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.HydraulicDiameter.pipe 2>&1)