Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource",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/BuildSysPro 3.5.0/package.mo): time 0.7267/0.7267, allocations: 127.4 MB / 134.6 MB, free: 4.094 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001328/0.001327, allocations: 181.3 kB / 164.4 MB, free: 6.91 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.628/1.628, allocations: 205.1 MB / 399.1 MB, free: 6.098 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009366/0.0009369, allocations: 90.27 kB / 476.3 MB, free: 8.844 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3415/0.3425, allocations: 82.88 MB / 0.5461 GB, free: 42.68 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.175/0.5175, allocations: 76.75 MB / 0.621 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 5.384/5.901, allocations: 2.166 GB / 2.787 GB, free: 436 kB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002813/5.902, allocations: 91.94 kB / 2.787 GB, free: 344 kB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 757 * Number of variables: 757 Notification: Performance of Generate backend data structure: time 8.701/14.6, allocations: 2.038 GB / 4.826 GB, free: 50.83 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.314e-05/14.6, allocations: 8.062 kB / 4.826 GB, free: 50.83 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01018/14.61, allocations: 1.021 MB / 4.827 GB, free: 50.62 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01014/14.62, allocations: 2.664 MB / 4.829 GB, free: 49.94 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002583/14.62, allocations: 186.8 kB / 4.829 GB, free: 49.87 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008703/14.62, allocations: 192.8 kB / 4.83 GB, free: 49.86 MB / 0.7448 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.006548/14.63, allocations: 2.737 MB / 4.832 GB, free: 49.85 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006201/14.64, allocations: 3.055 MB / 4.835 GB, free: 49.59 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.908e-05/14.64, allocations: 0 / 4.835 GB, free: 49.59 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003572/14.64, allocations: 6.812 kB / 4.835 GB, free: 49.59 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001306/14.64, allocations: 115.7 kB / 4.835 GB, free: 49.58 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02813/14.67, allocations: 14.98 MB / 4.85 GB, free: 41.46 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00319/14.67, allocations: 1.803 MB / 4.852 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001451/14.67, allocations: 1.053 MB / 4.853 GB, free: 41.39 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005654/14.67, allocations: 333.1 kB / 4.853 GB, free: 41.11 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.741e-05/14.67, allocations: 64.2 kB / 4.853 GB, free: 41.06 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=192): time 5.851e-06/14.67, allocations: 2.656 kB / 4.853 GB, free: 41.06 MB / 0.7448 GB Notification: Performance of matching and sorting (n=192): time 0.007703/14.68, allocations: 2.214 MB / 4.855 GB, free: 40.86 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.602e-05/14.68, allocations: 71.25 kB / 4.855 GB, free: 40.79 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003679/14.68, allocations: 1.488 MB / 4.857 GB, free: 40.57 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 0.0005669/14.68, allocations: 32.36 kB / 4.857 GB, free: 40.54 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 0.000782/14.68, allocations: 1.094 MB / 4.858 GB, free: 39.92 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009246/14.69, allocations: 0.6553 MB / 4.859 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001119/14.69, allocations: 0 / 4.859 GB, free: 39.48 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 0.0001402/14.69, allocations: 394.6 kB / 4.859 GB, free: 39.18 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/14.69, allocations: 0.8169 MB / 4.86 GB, free: 39.17 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001731/14.69, allocations: 1.514 MB / 4.861 GB, free: 38.36 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001998/14.69, allocations: 1.109 MB / 4.862 GB, free: 38.32 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.067e-05/14.69, allocations: 3.75 kB / 4.862 GB, free: 38.32 MB / 0.7448 GB Notification: Performance of matching and sorting (n=282) (initialization): time 0.005372/14.7, allocations: 2.503 MB / 4.865 GB, free: 38.04 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 0.002075/14.7, allocations: 6.579 MB / 4.871 GB, free: 31.01 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-05/14.7, allocations: 20.02 kB / 4.871 GB, free: 31.01 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001382/14.7, allocations: 28.47 kB / 4.871 GB, free: 31.01 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009551/14.71, allocations: 1.163 MB / 4.872 GB, free: 30.98 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006055/14.71, allocations: 4.651 MB / 4.877 GB, free: 26.87 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007083/14.72, allocations: 383.6 kB / 4.877 GB, free: 26.77 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009287/14.72, allocations: 106.1 kB / 4.877 GB, free: 26.77 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 2.931e-05/14.72, allocations: 4 kB / 4.877 GB, free: 26.77 MB / 0.7448 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005921/14.73, allocations: 2.128 MB / 4.879 GB, free: 26.64 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.354e-05/14.73, allocations: 15.06 kB / 4.879 GB, free: 26.64 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.604e-05/14.73, allocations: 29.25 kB / 4.879 GB, free: 26.64 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003029/14.73, allocations: 0.5178 MB / 4.88 GB, free: 26.61 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.039e-05/14.73, allocations: 33.7 kB / 4.88 GB, free: 26.61 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005272/14.74, allocations: 320.5 kB / 4.88 GB, free: 26.52 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003977/14.74, allocations: 102.3 kB / 4.88 GB, free: 26.52 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 272 * Array equations: 0 * Algorithm blocks: 3 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001208/14.74, allocations: 174.2 kB / 4.881 GB, free: 26.36 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001526/14.74, allocations: 269.2 kB / 4.881 GB, free: 26.23 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001044/14.74, allocations: 288.2 kB / 4.881 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.074e-05/14.74, allocations: 18.31 kB / 4.881 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.695e-05/14.74, allocations: 0.875 kB / 4.881 GB, free: 26.2 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.003857/14.75, allocations: 1.867 MB / 4.883 GB, free: 25.89 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01592/14.76, allocations: 4.959 MB / 4.888 GB, free: 24.23 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.228e-05/14.76, allocations: 2.906 kB / 4.888 GB, free: 24.23 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.009046/14.77, allocations: 1.235 MB / 4.889 GB, free: 24.19 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.122e-05/14.77, allocations: 13.19 kB / 4.889 GB, free: 24.19 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004508/14.77, allocations: 35.2 kB / 4.889 GB, free: 24.18 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01764/14.79, allocations: 9.807 MB / 4.899 GB, free: 31.03 MB / 0.7605 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.118e-05/14.79, allocations: 3.531 kB / 4.899 GB, free: 31.03 MB / 0.7605 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.008968/14.8, allocations: 3.649 MB / 4.902 GB, free: 28.98 MB / 0.7605 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.008666/14.81, allocations: 5.536 MB / 4.908 GB, free: 23.72 MB / 0.7605 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002996/14.81, allocations: 0.5877 MB / 4.908 GB, free: 23.18 MB / 0.7605 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009713/14.81, allocations: 15.47 kB / 4.908 GB, free: 23.17 MB / 0.7605 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004355/14.82, allocations: 273 kB / 4.908 GB, free: 23 MB / 0.7605 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003328/14.82, allocations: 105.3 kB / 4.909 GB, free: 22.94 MB / 0.7605 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000284/14.82, allocations: 85.41 kB / 4.909 GB, free: 22.87 MB / 0.7605 GB Notification: Performance of sort global known variables: time 0.00233/14.82, allocations: 1.104 MB / 4.91 GB, free: 21.88 MB / 0.7605 GB Notification: Performance of remove unused functions: time 0.01618/14.83, allocations: 3.289 MB / 4.913 GB, free: 18.61 MB / 0.7605 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol1.dynBal.mC[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1],vol2.dynBal.mC[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mXi[1],vol3.dynBal.mC[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mXi[1],vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (192): * Single equations (assignments): 185 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.009498/14.84, allocations: 5.316 MB / 4.918 GB, free: 14.17 MB / 0.7605 GB Notification: Performance of simCode: created initialization part: time 0.01736/14.86, allocations: 4.407 MB / 4.922 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of simCode: created event and clocks part: time 1.577e-05/14.86, allocations: 0 / 4.922 GB, free: 10.19 MB / 0.7605 GB Notification: Performance of simCode: created simulation system equations: time 0.01006/14.87, allocations: 1.984 MB / 4.924 GB, free: 8.527 MB / 0.7605 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01092/14.88, allocations: 1.428 MB / 4.926 GB, free: 7.492 MB / 0.7605 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01888/14.9, allocations: 5.743 MB / 4.931 GB, free: 2.426 MB / 0.7605 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00505/14.91, allocations: 2.616 MB / 4.934 GB, free: 372 kB / 0.7605 GB Notification: Performance of SimCode: time 3.707e-06/14.91, allocations: 0 / 4.934 GB, free: 372 kB / 0.7605 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource_fmu --startTime=0 --stopTime=600 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Sources_Examples_TraceSubstancesFlowSource.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1)