Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.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.PressureDrop,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_PressureDrop",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_PressureDrop",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.7485/0.7485, allocations: 141.8 MB / 149.1 MB, free: 3.906 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.001139/0.001139, allocations: 184.2 kB / 181.9 MB, free: 15.62 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.358/1.358, allocations: 221.4 MB / 436 MB, free: 8.773 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.0009302/0.0009303, allocations: 98.75 kB / 0.507 GB, free: 24.24 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00187/0.00187, allocations: 284.3 kB / 0.5884 GB, free: 11.8 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.2073/0.2092, allocations: 89.64 MB / 0.676 GB, free: 2.078 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4358/0.645, allocations: 82.76 MB / 0.7568 GB, free: 112.4 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.792/4.437, allocations: 1.827 GB / 2.584 GB, free: 266.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000211/4.437, allocations: 91 kB / 2.584 GB, free: 266.2 MB / 0.6982 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.4104/4.848, allocations: 222.2 MB / 2.801 GB, free: 39.79 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.281e-05/4.848, allocations: 16 kB / 2.801 GB, free: 39.78 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004131/4.848, allocations: 55.58 kB / 2.801 GB, free: 39.72 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005481/4.849, allocations: 313.4 kB / 2.802 GB, free: 39.38 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/4.849, allocations: 4 kB / 2.802 GB, free: 39.38 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.115e-05/4.849, allocations: 8 kB / 2.802 GB, free: 39.37 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001775/4.849, allocations: 83.98 kB / 2.802 GB, free: 39.29 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002154/4.849, allocations: 164.1 kB / 2.802 GB, free: 39.11 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.011e-05/4.849, allocations: 0 / 2.802 GB, free: 39.11 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.914e-05/4.849, allocations: 0 / 2.802 GB, free: 39.11 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/4.849, allocations: 7.984 kB / 2.802 GB, free: 39.1 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008902/4.85, allocations: 0.7524 MB / 2.803 GB, free: 38.29 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000162/4.85, allocations: 62.5 kB / 2.803 GB, free: 38.22 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.785e-05/4.85, allocations: 56.89 kB / 2.803 GB, free: 38.16 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000245/4.851, allocations: 186.2 kB / 2.803 GB, free: 37.94 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.522e-05/4.851, allocations: 34.56 kB / 2.803 GB, free: 37.9 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=10): time 1.543e-06/4.851, allocations: 3.938 kB / 2.803 GB, free: 37.89 MB / 0.6982 GB Notification: Performance of matching and sorting (n=10): time 0.0004455/4.851, allocations: 145.5 kB / 2.803 GB, free: 37.75 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.886e-05/4.851, allocations: 55.41 kB / 2.803 GB, free: 37.68 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001366/4.851, allocations: 188.3 kB / 2.803 GB, free: 37.49 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/4.851, allocations: 25.7 kB / 2.803 GB, free: 37.46 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/4.851, allocations: 132.1 kB / 2.804 GB, free: 37.33 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 2.647e-05/4.851, allocations: 31.56 kB / 2.804 GB, free: 37.3 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-06/4.851, allocations: 0 / 2.804 GB, free: 37.3 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 5.445e-05/4.851, allocations: 330.8 kB / 2.804 GB, free: 36.96 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.415e-05/4.851, allocations: 27.98 kB / 2.804 GB, free: 36.94 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.302e-05/4.852, allocations: 82.86 kB / 2.804 GB, free: 36.83 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.06e-05/4.852, allocations: 43.91 kB / 2.804 GB, free: 36.79 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/4.852, allocations: 4 kB / 2.804 GB, free: 36.79 MB / 0.6982 GB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001739/4.852, allocations: 125.3 kB / 2.804 GB, free: 36.66 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 7.234e-05/4.852, allocations: 359.9 kB / 2.804 GB, free: 36.28 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/4.852, allocations: 4 kB / 2.804 GB, free: 36.27 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.272e-05/4.852, allocations: 4 kB / 2.804 GB, free: 36.27 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001415/4.852, allocations: 23.98 kB / 2.805 GB, free: 36.25 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.72e-06/4.852, allocations: 7.938 kB / 2.805 GB, free: 36.24 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002031/4.852, allocations: 19.97 kB / 2.805 GB, free: 36.22 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/4.852, allocations: 8 kB / 2.805 GB, free: 36.21 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 7.093e-06/4.852, allocations: 4 kB / 2.805 GB, free: 36.21 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0001179/4.852, allocations: 71.89 kB / 2.805 GB, free: 36.14 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.665e-06/4.852, allocations: 4.031 kB / 2.805 GB, free: 36.13 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.917e-06/4.852, allocations: 3.906 kB / 2.805 GB, free: 36.13 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000121/4.853, allocations: 23.98 kB / 2.805 GB, free: 36.11 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.474e-06/4.853, allocations: 4 kB / 2.805 GB, free: 36.1 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001849/4.853, allocations: 23.92 kB / 2.805 GB, free: 36.08 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.695e-05/4.853, allocations: 7.984 kB / 2.805 GB, free: 36.07 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (10): * Single equations (assignments): 10 * 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.918e-05/4.853, allocations: 117.8 kB / 2.805 GB, free: 35.95 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.179e-05/4.853, allocations: 15.81 kB / 2.805 GB, free: 35.93 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001985/4.853, allocations: 127.5 kB / 2.805 GB, free: 35.8 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.735e-06/4.853, allocations: 4 kB / 2.805 GB, free: 35.8 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/4.853, allocations: 3.906 kB / 2.805 GB, free: 35.8 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/4.853, allocations: 3.984 kB / 2.805 GB, free: 35.79 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000562/4.854, allocations: 0.5124 MB / 2.805 GB, free: 35.21 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/4.854, allocations: 4.219 kB / 2.805 GB, free: 35.21 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001201/4.854, allocations: 27.92 kB / 2.805 GB, free: 35.18 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.959e-06/4.854, allocations: 4 kB / 2.805 GB, free: 35.18 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/4.854, allocations: 4 kB / 2.805 GB, free: 35.18 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/4.854, allocations: 0 / 2.805 GB, free: 35.18 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.947e-06/4.854, allocations: 4 kB / 2.805 GB, free: 35.17 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002075/4.854, allocations: 345.1 kB / 2.806 GB, free: 34.75 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004102/4.855, allocations: 0.7478 MB / 2.807 GB, free: 33.92 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 7.368e-05/4.855, allocations: 104.8 kB / 2.807 GB, free: 33.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.806e-05/4.855, allocations: 4 kB / 2.807 GB, free: 33.8 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002239/4.855, allocations: 35.8 kB / 2.807 GB, free: 33.76 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.681e-05/4.855, allocations: 8 kB / 2.807 GB, free: 33.75 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.111e-05/4.855, allocations: 8.281 kB / 2.807 GB, free: 33.75 MB / 0.6982 GB Notification: Performance of sort global known variables: time 9.55e-05/4.855, allocations: 156.5 kB / 2.807 GB, free: 33.59 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.001979/4.857, allocations: 343.7 kB / 2.807 GB, free: 33.25 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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 Backend phase and start with SimCode phase: time 0.001373/4.858, allocations: 1.028 MB / 2.808 GB, free: 32.23 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.0002261/4.859, allocations: 117.2 kB / 2.808 GB, free: 32.12 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/4.859, allocations: 3.938 kB / 2.808 GB, free: 32.12 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 6.688e-05/4.859, allocations: 52.42 kB / 2.808 GB, free: 32.07 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006335/4.859, allocations: 106 kB / 2.808 GB, free: 31.96 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005417/4.86, allocations: 293.8 kB / 2.809 GB, free: 31.64 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/4.86, allocations: 0.7868 MB / 2.81 GB, free: 30.82 MB / 0.6982 GB Notification: Performance of SimCode: time 3.9e-07/4.86, allocations: 3.938 kB / 2.81 GB, free: 30.82 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_PressureDrop_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_PressureDrop.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.PressureDrop.pipe 2>&1)