Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.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.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading",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.7076/0.7076, allocations: 141.8 MB / 149.1 MB, free: 0.8242 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.001075/0.001075, allocations: 180.7 kB / 181.9 MB, free: 12.97 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.25/1.25, allocations: 221.3 MB / 436 MB, free: 5.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.0009679/0.0009679, allocations: 91.67 kB / 0.507 GB, free: 19.07 MB / 378.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001936/0.001937, allocations: 277.5 kB / 0.5885 GB, free: 6.898 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.3205/0.3225, allocations: 89.63 MB / 0.676 GB, free: 139.8 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1269/0.4494, allocations: 82.77 MB / 0.7568 GB, free: 88.86 MB / 0.5107 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5747/1.024, allocations: 377.6 MB / 1.126 GB, free: 10.92 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002565/1.024, allocations: 93.36 kB / 1.126 GB, free: 10.88 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: 1564 * Number of variables: 1564 Notification: Performance of Generate backend data structure: time 6.892/7.916, allocations: 2.226 GB / 3.352 GB, free: 13.87 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 3.85e-05/7.916, allocations: 9 kB / 3.352 GB, free: 13.86 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004338/7.921, allocations: 0.8462 MB / 3.353 GB, free: 13.01 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01672/7.938, allocations: 7.806 MB / 3.36 GB, free: 5.273 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000325/7.938, allocations: 196 kB / 3.361 GB, free: 5.082 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002369/7.94, allocations: 359.9 kB / 3.361 GB, free: 4.73 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.3165/8.257, allocations: 6.507 MB / 3.367 GB, free: 128.9 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02227/8.279, allocations: 7.587 MB / 3.375 GB, free: 128 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002839/8.28, allocations: 23.08 kB / 3.375 GB, free: 128 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00201/8.282, allocations: 15.53 kB / 3.375 GB, free: 128 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002292/8.282, allocations: 240.9 kB / 3.375 GB, free: 128 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05262/8.334, allocations: 33.91 MB / 3.408 GB, free: 113.4 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005864/8.34, allocations: 3.966 MB / 3.412 GB, free: 113.4 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004086/8.344, allocations: 3.158 MB / 3.415 GB, free: 113.4 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001141/8.346, allocations: 0.963 MB / 3.416 GB, free: 112.4 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00328/8.349, allocations: 2.248 MB / 3.418 GB, free: 112.3 MB / 0.745 GB Notification: Performance of pre-optimization done (n=317): time 5.5e-06/8.349, allocations: 3.469 kB / 3.418 GB, free: 112.3 MB / 0.745 GB Notification: Performance of matching and sorting (n=317): time 0.008191/8.357, allocations: 4.746 MB / 3.423 GB, free: 112 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.244e-05/8.357, allocations: 90.44 kB / 3.423 GB, free: 111.9 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00783/8.365, allocations: 4.349 MB / 3.427 GB, free: 111.6 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.001046/8.366, allocations: 31.64 kB / 3.427 GB, free: 111.6 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.003249/8.369, allocations: 2.417 MB / 3.43 GB, free: 110.6 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.002587/8.372, allocations: 1.072 MB / 3.431 GB, free: 110 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003085/8.372, allocations: 0 / 3.431 GB, free: 110 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 0.0003296/8.373, allocations: 495.2 kB / 3.431 GB, free: 109.7 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002672/8.375, allocations: 2.059 MB / 3.433 GB, free: 109.7 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003286/8.379, allocations: 3.558 MB / 3.437 GB, free: 107.8 MB / 0.745 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00439/8.383, allocations: 3.126 MB / 3.44 GB, free: 107.8 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.608e-05/8.383, allocations: 12.62 kB / 3.44 GB, free: 107.8 MB / 0.745 GB Notification: Performance of matching and sorting (n=569) (initialization): time 0.01027/8.393, allocations: 6.449 MB / 3.446 GB, free: 107.4 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/8.393, allocations: 3.656 kB / 3.446 GB, free: 107.4 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.09e-05/8.393, allocations: 52.66 kB / 3.446 GB, free: 107.4 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008341/8.394, allocations: 443.8 kB / 3.446 GB, free: 107.4 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003787/8.398, allocations: 1.02 MB / 3.447 GB, free: 107.4 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004685/8.403, allocations: 5.016 MB / 3.452 GB, free: 104.8 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006288/8.409, allocations: 0.5995 MB / 3.453 GB, free: 104.5 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001009/8.41, allocations: 216.4 kB / 3.453 GB, free: 104.5 MB / 0.745 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 222 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,dHTan.local_reset,dHTanEnh.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (540): * Single equations (assignments): 537 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001027/8.411, allocations: 250.1 kB / 3.453 GB, free: 104.4 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001506/8.413, allocations: 475.1 kB / 3.454 GB, free: 104.1 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008828/8.422, allocations: 5.288 MB / 3.459 GB, free: 103.9 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-05/8.422, allocations: 36 kB / 3.459 GB, free: 103.9 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.328e-05/8.422, allocations: 7.562 kB / 3.459 GB, free: 103.9 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.006105/8.428, allocations: 4.627 MB / 3.464 GB, free: 103.5 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02238/8.45, allocations: 11.5 MB / 3.475 GB, free: 102.6 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.217e-05/8.45, allocations: 5.422 kB / 3.475 GB, free: 102.6 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002898/8.453, allocations: 0.6137 MB / 3.475 GB, free: 102.6 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008758/8.454, allocations: 364 kB / 3.476 GB, free: 102.6 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002553/8.454, allocations: 44.97 kB / 3.476 GB, free: 102.6 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004425/8.459, allocations: 4.929 MB / 3.481 GB, free: 100 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.907e-06/8.459, allocations: 0 / 3.481 GB, free: 100 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.01078/8.469, allocations: 7.949 MB / 3.488 GB, free: 99.26 MB / 0.745 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.01434/8.484, allocations: 11.34 MB / 3.499 GB, free: 98.12 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00412/8.488, allocations: 1.251 MB / 3.501 GB, free: 97.75 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001439/8.489, allocations: 24.45 kB / 3.501 GB, free: 97.75 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004528/8.494, allocations: 317.9 kB / 3.501 GB, free: 97.72 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004005/8.494, allocations: 170.2 kB / 3.501 GB, free: 97.72 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000373/8.495, allocations: 143 kB / 3.501 GB, free: 97.72 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.005298/8.5, allocations: 3.302 MB / 3.504 GB, free: 97.54 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.01147/8.512, allocations: 2.135 MB / 3.507 GB, free: 97.23 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 16 (tanEnh.vol[1].dynBal.U,tanEnh.vol[2].dynBal.U,tanEnh.vol[3].dynBal.U,tanEnh.vol[4].dynBal.U,tanEnh.vol[5].dynBal.U,tanEnh.vol[6].dynBal.U,tanEnh.vol[7].dynBal.U,tan.vol[1].dynBal.U,tan.vol[2].dynBal.U,tan.vol[3].dynBal.U,tan.vol[4].dynBal.U,tan.vol[5].dynBal.U,tan.vol[6].dynBal.U,tan.vol[7].dynBal.U,dHTanEnh.y,dHTan.y) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (296): * Single equations (assignments): 289 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 14,(1,100.0%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002252/8.514, allocations: 0.7831 MB / 3.507 GB, free: 97.09 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.007601/8.522, allocations: 5.102 MB / 3.512 GB, free: 96.79 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 1.108e-05/8.522, allocations: 5.344 kB / 3.512 GB, free: 96.79 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.003515/8.525, allocations: 2.398 MB / 3.515 GB, free: 96.57 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01415/8.539, allocations: 2.378 MB / 3.517 GB, free: 96.54 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02938/8.569, allocations: 11.67 MB / 3.528 GB, free: 94.57 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009964/8.579, allocations: 5.208 MB / 3.533 GB, free: 109.7 MB / 0.7607 GB Notification: Performance of SimCode: time 1.583e-06/8.579, allocations: 0 / 3.533 GB, free: 109.7 MB / 0.7607 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading_fmu --startTime=0 --stopTime=14400 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Storage_Validation_StratifiedLoadingUnloading.fmu > BuildingSystems_BuildingSystems.Fluid.Storage.Validation.StratifiedLoadingUnloading.pipe 2>&1)