Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance.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: translateModel(BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance") translateModel(BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance") [: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.8303/0.8303, allocations: 141.8 MB / 149.1 MB, free: 3.723 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.001213/0.001213, allocations: 182.5 kB / 181.9 MB, free: 15.48 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.437/1.437, allocations: 221.4 MB / 436 MB, free: 8.617 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.001149/0.001148, allocations: 100.5 kB / 0.507 GB, free: 24.3 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002084, allocations: 284.4 kB / 0.5884 GB, free: 11.7 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 9.067e-06/9.087e-06, allocations: 4 kB / 0.6759 GB, free: 2.059 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.474/0.474, allocations: 82.76 MB / 0.7567 GB, free: 112.3 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 4.286/4.76, allocations: 1.89 GB / 2.647 GB, free: 172.4 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000257/4.76, allocations: 79.95 kB / 2.647 GB, free: 172.4 MB / 0.6982 GB Notification: Performance of FrontEnd: time 4.097/8.858, allocations: 1.098 GB / 3.745 GB, free: 85.32 MB / 0.7138 GB Notification: Performance of Transformations before backend: time 0.0003209/8.858, allocations: 45.11 kB / 3.745 GB, free: 85.32 MB / 0.7138 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 351 * Number of variables: 351 Notification: Performance of Generate backend data structure: time 0.007257/8.865, allocations: 1.877 MB / 3.747 GB, free: 84.53 MB / 0.7138 GB Notification: Performance of prepare preOptimizeDAE: time 5.359e-05/8.865, allocations: 7.406 kB / 3.747 GB, free: 84.53 MB / 0.7138 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004627/8.87, allocations: 0.5259 MB / 3.748 GB, free: 84.43 MB / 0.7138 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005271/8.875, allocations: 1.556 MB / 3.749 GB, free: 84.09 MB / 0.7138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.394e-05/8.875, allocations: 44.25 kB / 3.749 GB, free: 84.09 MB / 0.7138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005907/8.876, allocations: 95.22 kB / 3.749 GB, free: 84.09 MB / 0.7138 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003023/8.879, allocations: 1.233 MB / 3.751 GB, free: 84.08 MB / 0.7138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003404/8.882, allocations: 1.501 MB / 3.752 GB, free: 83.78 MB / 0.7138 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.909e-05/8.882, allocations: 4.531 kB / 3.752 GB, free: 83.78 MB / 0.7138 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00023/8.883, allocations: 3.469 kB / 3.752 GB, free: 83.78 MB / 0.7138 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.337e-05/8.883, allocations: 49.73 kB / 3.752 GB, free: 83.77 MB / 0.7138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01093/8.894, allocations: 7.139 MB / 3.759 GB, free: 79.8 MB / 0.7138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001138/8.895, allocations: 0.7413 MB / 3.76 GB, free: 79.68 MB / 0.7138 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000865/8.896, allocations: 0.6539 MB / 3.76 GB, free: 79.63 MB / 0.7138 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002674/8.896, allocations: 109.3 kB / 3.76 GB, free: 79.54 MB / 0.7138 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.309e-05/8.896, allocations: 61.52 kB / 3.761 GB, free: 79.49 MB / 0.7138 GB Notification: Performance of pre-optimization done (n=106): time 3.817e-06/8.896, allocations: 0 / 3.761 GB, free: 79.49 MB / 0.7138 GB Notification: Performance of matching and sorting (n=112): time 0.01053/8.907, allocations: 3.613 MB / 3.764 GB, free: 78.2 MB / 0.7138 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.786e-05/8.907, allocations: 172.4 kB / 3.764 GB, free: 78.02 MB / 0.7138 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001699/8.909, allocations: 0.7824 MB / 3.765 GB, free: 77.87 MB / 0.7138 GB Notification: Performance of collectPreVariables (initialization): time 0.0001653/8.909, allocations: 25.7 kB / 3.765 GB, free: 77.84 MB / 0.7138 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004029/8.909, allocations: 0.5188 MB / 3.766 GB, free: 77.53 MB / 0.7138 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004575/8.91, allocations: 385.2 kB / 3.766 GB, free: 77.27 MB / 0.7138 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.038e-05/8.91, allocations: 3.469 kB / 3.766 GB, free: 77.27 MB / 0.7138 GB Notification: Performance of setup shared object (initialization): time 0.0001276/8.91, allocations: 358.5 kB / 3.766 GB, free: 76.97 MB / 0.7138 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007556/8.911, allocations: 490.4 kB / 3.767 GB, free: 76.96 MB / 0.7138 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009136/8.912, allocations: 0.7953 MB / 3.767 GB, free: 76.61 MB / 0.7138 GB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol2.dynBal.medium.p = vol2.dynBal.p_start (sin.p = vol2.dynBal.p_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol1.dynBal.medium.p = vol1.dynBal.p_start (sin.p = vol1.dynBal.p_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: vol.dynBal.medium.p = vol.dynBal.p_start (sin.p = vol.dynBal.p_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.02003/8.932, allocations: 4.142 MB / 3.772 GB, free: 76.29 MB / 0.7138 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-05/8.932, allocations: 0 / 3.772 GB, free: 76.29 MB / 0.7138 GB Notification: Performance of matching and sorting (n=163) (initialization): time 0.003045/8.935, allocations: 1.422 MB / 3.773 GB, free: 76.17 MB / 0.7138 GB Notification: Performance of prepare postOptimizeDAE: time 1.865e-05/8.935, allocations: 10.84 kB / 3.773 GB, free: 76.17 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.188e-05/8.935, allocations: 8.75 kB / 3.773 GB, free: 76.17 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.237e-05/8.935, allocations: 21.69 kB / 3.773 GB, free: 76.17 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001255/8.936, allocations: 288.6 kB / 3.773 GB, free: 76.17 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.206e-05/8.936, allocations: 19.84 kB / 3.773 GB, free: 76.17 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001977/8.938, allocations: 65.98 kB / 3.773 GB, free: 76.16 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000237/8.938, allocations: 57.25 kB / 3.773 GB, free: 76.16 MB / 0.7138 GB Warning: Assuming redundant initial conditions for the following 3 initial equations: vol2.dynBal.medium.p = vol2.dynBal.p_start vol1.dynBal.medium.p = vol1.dynBal.p_start vol.dynBal.medium.p = vol.dynBal.p_start Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * Number of states: 0 () * Number of discrete variables: 6 (intMasVapOut.local_reset,intEntIn.local_reset,intEntOut.local_reset,intMasFloIn.local_reset,intMasFloOut.local_reset,intMasFloVapIn.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (163): * Single equations (assignments): 163 * 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 0.0003946/8.939, allocations: 152 kB / 3.774 GB, free: 76.04 MB / 0.7138 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005906/8.939, allocations: 139.5 kB / 3.774 GB, free: 75.97 MB / 0.7138 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002335/8.942, allocations: 1.172 MB / 3.775 GB, free: 75.89 MB / 0.7138 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.44e-05/8.942, allocations: 14.38 kB / 3.775 GB, free: 75.89 MB / 0.7138 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/8.942, allocations: 0 / 3.775 GB, free: 75.89 MB / 0.7138 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001342/8.943, allocations: 1.169 MB / 3.776 GB, free: 75.52 MB / 0.7138 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006904/8.95, allocations: 3.493 MB / 3.779 GB, free: 74.57 MB / 0.7138 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-05/8.95, allocations: 10.72 kB / 3.779 GB, free: 74.57 MB / 0.7138 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001273/8.951, allocations: 253.2 kB / 3.78 GB, free: 74.57 MB / 0.7138 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.095e-05/8.951, allocations: 19.67 kB / 3.78 GB, free: 74.57 MB / 0.7138 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001026/8.951, allocations: 23.41 kB / 3.78 GB, free: 74.57 MB / 0.7138 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.929e-05/8.951, allocations: 22.39 kB / 3.78 GB, free: 74.57 MB / 0.7138 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.409e-05/8.952, allocations: 19.31 kB / 3.78 GB, free: 74.56 MB / 0.7138 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003288/8.955, allocations: 2.662 MB / 3.782 GB, free: 73.25 MB / 0.7138 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001092/8.956, allocations: 328.7 kB / 3.783 GB, free: 73.09 MB / 0.7138 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004678/8.956, allocations: 19.27 kB / 3.783 GB, free: 73.09 MB / 0.7138 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001737/8.958, allocations: 78.2 kB / 3.783 GB, free: 73.08 MB / 0.7138 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001402/8.958, allocations: 87.03 kB / 3.783 GB, free: 73.07 MB / 0.7138 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001384/8.958, allocations: 51.27 kB / 3.783 GB, free: 73.07 MB / 0.7138 GB Notification: Performance of sort global known variables: time 0.001341/8.96, allocations: 0.5842 MB / 3.783 GB, free: 72.96 MB / 0.7138 GB Notification: Performance of remove unused functions: time 0.002931/8.963, allocations: 0.5165 MB / 3.784 GB, free: 72.95 MB / 0.7138 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 44 * Number of states: 12 (vol.dynBal.U,vol.dynBal.mXi[1],vol1.dynBal.U,vol1.dynBal.mXi[1],vol2.dynBal.U,vol2.dynBal.mXi[1],intMasFloVapIn.y,intMasFloOut.y,intMasFloIn.y,intEntOut.y,intEntIn.y,intMasVapOut.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 115 * 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.004397/8.967, allocations: 2.341 MB / 3.786 GB, free: 72.27 MB / 0.7138 GB Notification: Performance of simCode: created initialization part: time 0.002328/8.97, allocations: 1.128 MB / 3.787 GB, free: 72.26 MB / 0.7138 GB Notification: Performance of simCode: created event and clocks part: time 1.946e-05/8.97, allocations: 6.875 kB / 3.787 GB, free: 72.26 MB / 0.7138 GB Notification: Performance of simCode: created simulation system equations: time 0.0008068/8.97, allocations: 0.5225 MB / 3.788 GB, free: 72.26 MB / 0.7138 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004231/8.975, allocations: 0.6792 MB / 3.788 GB, free: 72.24 MB / 0.7138 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006217/8.981, allocations: 2.72 MB / 3.791 GB, free: 71.32 MB / 0.7138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001833/8.983, allocations: 1.527 MB / 3.793 GB, free: 70.6 MB / 0.7138 GB Notification: Performance of SimCode: time 1.864e-06/8.983, allocations: 0 / 3.793 GB, free: 70.6 MB / 0.7138 GB Notification: Performance of Templates: time 0.06728/9.05, allocations: 35.87 MB / 3.828 GB, free: 51.68 MB / 0.7138 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance.sim & ./BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MoistureMixingConservationDynamicBalance.pipe 2>&1)