Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolume.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.MixingVolumes.Validation.MixingVolume,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_MixingVolume",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolume,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_MixingVolume",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.7317/0.7317, allocations: 141.8 MB / 149.1 MB, free: 12.98 MB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001022/0.001021, allocations: 188.3 kB / 181.9 MB, free: 9.68 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.293/1.293, allocations: 221.3 MB / 436 MB, free: 2.145 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.0009857/0.0009857, allocations: 100.1 kB / 0.507 GB, free: 10.9 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001758/0.001758, allocations: 267.7 kB / 0.5884 GB, free: 7.742 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.4134/0.4152, allocations: 89.64 MB / 0.676 GB, free: 168.4 MB / 0.5419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1572/0.5724, allocations: 82.78 MB / 0.7568 GB, free: 118.9 MB / 0.5419 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.263/3.835, allocations: 1.892 GB / 2.648 GB, free: 105.2 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002403/3.836, allocations: 87.94 kB / 2.648 GB, free: 105.1 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: 363 * Number of variables: 363 Notification: Performance of Generate backend data structure: time 4.231/8.067, allocations: 1.357 GB / 4.006 GB, free: 72.19 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 3.787e-05/8.067, allocations: 7.688 kB / 4.006 GB, free: 72.19 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004193/8.071, allocations: 0.5302 MB / 4.006 GB, free: 71.98 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004569/8.076, allocations: 1.444 MB / 4.008 GB, free: 71.01 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002456/8.076, allocations: 123.3 kB / 4.008 GB, free: 70.94 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006057/8.076, allocations: 89.31 kB / 4.008 GB, free: 70.94 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003086/8.08, allocations: 1.223 MB / 4.009 GB, free: 70.4 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003995/8.084, allocations: 1.483 MB / 4.011 GB, free: 69.54 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.936e-05/8.084, allocations: 1.719 kB / 4.011 GB, free: 69.54 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/8.084, allocations: 2.656 kB / 4.011 GB, free: 69.54 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.05e-05/8.084, allocations: 59.66 kB / 4.011 GB, free: 69.54 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01089/8.095, allocations: 8.214 MB / 4.019 GB, free: 61.38 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008118/8.096, allocations: 0.5557 MB / 4.019 GB, free: 60.83 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006115/8.096, allocations: 0.4903 MB / 4.02 GB, free: 60.33 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006325/8.097, allocations: 407.6 kB / 4.02 GB, free: 59.88 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.913e-05/8.097, allocations: 55.33 kB / 4.02 GB, free: 59.81 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=96): time 3.176e-06/8.097, allocations: 2.094 kB / 4.02 GB, free: 59.81 MB / 0.7294 GB Notification: Performance of matching and sorting (n=102): time 0.006686/8.104, allocations: 2.648 MB / 4.023 GB, free: 57.11 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.473e-05/8.104, allocations: 64.41 kB / 4.023 GB, free: 57.04 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001627/8.105, allocations: 0.8953 MB / 4.024 GB, free: 56.14 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0001231/8.106, allocations: 29.7 kB / 4.024 GB, free: 56.11 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.000296/8.106, allocations: 0.5858 MB / 4.024 GB, free: 55.51 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002827/8.106, allocations: 350.8 kB / 4.025 GB, free: 55.16 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.358e-05/8.106, allocations: 0 / 4.025 GB, free: 55.16 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 8.695e-05/8.106, allocations: 353.8 kB / 4.025 GB, free: 54.81 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005434/8.107, allocations: 389.1 kB / 4.025 GB, free: 54.43 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007058/8.108, allocations: 0.7744 MB / 4.026 GB, free: 53.49 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008739/8.109, allocations: 0.563 MB / 4.027 GB, free: 52.95 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/8.109, allocations: 4 kB / 4.027 GB, free: 52.94 MB / 0.7294 GB Notification: Performance of matching and sorting (n=150) (initialization): time 0.001997/8.111, allocations: 1.275 MB / 4.028 GB, free: 51.66 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007085/8.111, allocations: 3.636 MB / 4.031 GB, free: 47.84 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/8.111, allocations: 11.72 kB / 4.031 GB, free: 47.83 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.095e-05/8.111, allocations: 16 kB / 4.031 GB, free: 47.82 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001264/8.113, allocations: 287.5 kB / 4.032 GB, free: 47.54 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.131e-05/8.113, allocations: 19.92 kB / 4.032 GB, free: 47.52 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001856/8.114, allocations: 151.5 kB / 4.032 GB, free: 47.38 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001177/8.115, allocations: 55.98 kB / 4.032 GB, free: 47.33 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 9.297e-06/8.115, allocations: 4 kB / 4.032 GB, free: 47.32 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00157/8.116, allocations: 1.078 MB / 4.033 GB, free: 46.25 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.269e-05/8.116, allocations: 12 kB / 4.033 GB, free: 46.24 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.736e-05/8.116, allocations: 16 kB / 4.033 GB, free: 46.23 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001138/8.117, allocations: 286.5 kB / 4.033 GB, free: 45.95 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.824e-05/8.117, allocations: 23.88 kB / 4.033 GB, free: 45.93 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00183/8.119, allocations: 147 kB / 4.033 GB, free: 45.79 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001057/8.119, allocations: 51.44 kB / 4.033 GB, free: 45.75 MB / 0.7294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * Number of states: 0 () * Number of discrete variables: 4 (vol.regularFlow[1],vol.regularFlow[2],vol.inFlow[2],vol.inFlow[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (150): * Single equations (assignments): 150 * 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.0002665/8.12, allocations: 144.5 kB / 4.034 GB, free: 45.6 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003531/8.12, allocations: 158.1 kB / 4.034 GB, free: 45.44 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001909/8.122, allocations: 1.073 MB / 4.035 GB, free: 44.35 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.095e-05/8.122, allocations: 12 kB / 4.035 GB, free: 44.34 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.165e-06/8.122, allocations: 3.75 kB / 4.035 GB, free: 44.34 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001201/8.123, allocations: 1.024 MB / 4.036 GB, free: 43.27 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004588/8.128, allocations: 2.548 MB / 4.038 GB, free: 40.68 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/8.128, allocations: 0 / 4.038 GB, free: 40.68 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001297/8.129, allocations: 258.5 kB / 4.039 GB, free: 40.43 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.927e-05/8.129, allocations: 6.875 kB / 4.039 GB, free: 40.42 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.526e-05/8.129, allocations: 15.98 kB / 4.039 GB, free: 40.41 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.597e-06/8.129, allocations: 7.938 kB / 4.039 GB, free: 40.4 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/8.129, allocations: 4 kB / 4.039 GB, free: 40.39 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002445/8.132, allocations: 1.824 MB / 4.04 GB, free: 38.49 MB / 0.7294 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003444/8.135, allocations: 2.951 MB / 4.043 GB, free: 35.45 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008436/8.136, allocations: 327.3 kB / 4.044 GB, free: 35.11 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003651/8.136, allocations: 8 kB / 4.044 GB, free: 35.1 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00167/8.138, allocations: 142.8 kB / 4.044 GB, free: 34.97 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001214/8.138, allocations: 59.25 kB / 4.044 GB, free: 34.91 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-05/8.138, allocations: 35.98 kB / 4.044 GB, free: 34.88 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.0009457/8.139, allocations: 0.6601 MB / 4.044 GB, free: 34.21 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.005986/8.145, allocations: 1.699 MB / 4.046 GB, free: 32.52 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 9 (vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mXi[1],vol.medium.Xi[1],vol.medium.T,vol.m,vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (102): * Single equations (assignments): 102 * 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.00411/8.149, allocations: 3.359 MB / 4.049 GB, free: 29.34 MB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.002307/8.152, allocations: 1.605 MB / 4.051 GB, free: 27.74 MB / 0.7294 GB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/8.152, allocations: 4.125 kB / 4.051 GB, free: 27.74 MB / 0.7294 GB Notification: Performance of simCode: created simulation system equations: time 0.0005723/8.152, allocations: 490.6 kB / 4.051 GB, free: 27.26 MB / 0.7294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004336/8.157, allocations: 0.8232 MB / 4.052 GB, free: 26.45 MB / 0.7294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005488/8.162, allocations: 2.774 MB / 4.055 GB, free: 23.64 MB / 0.7294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/8.164, allocations: 1.637 MB / 4.057 GB, free: 21.97 MB / 0.7294 GB Notification: Performance of SimCode: time 9.02e-07/8.164, allocations: 0 / 4.057 GB, free: 21.97 MB / 0.7294 GB (rm -f BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolume.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolume.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolume.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolume.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_MixingVolume_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-09 BuildingSystems_BuildingSystems_Fluid_MixingVolumes_Validation_MixingVolume.fmu > BuildingSystems_BuildingSystems.Fluid.MixingVolumes.Validation.MixingVolume.pipe 2>&1)