Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.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.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal",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.7537/0.7537, allocations: 127.4 MB / 134.6 MB, free: 4.086 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.001104/0.001104, allocations: 185.3 kB / 164.4 MB, free: 6.879 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.727/1.727, allocations: 205.1 MB / 399.1 MB, free: 6.16 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.001059/0.001059, allocations: 96.05 kB / 476.3 MB, free: 8.898 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.3685/0.3696, allocations: 82.86 MB / 0.546 GB, free: 42.69 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1942/0.5638, allocations: 76.75 MB / 0.621 GB, free: 13.86 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 1.334/1.898, allocations: 388.1 MB / 1 GB, free: 91.24 MB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000339/1.898, allocations: 91.27 kB / 1 GB, free: 91.2 MB / 0.6198 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 832 * Number of variables: 832 Notification: Performance of Generate backend data structure: time 6.885/8.783, allocations: 1.465 GB / 2.465 GB, free: 75.52 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 8.147e-05/8.783, allocations: 10.66 kB / 2.465 GB, free: 75.52 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00825/8.791, allocations: 0.8724 MB / 2.466 GB, free: 75.22 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.032/8.823, allocations: 7.959 MB / 2.474 GB, free: 74.3 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005039/8.824, allocations: 106.2 kB / 2.474 GB, free: 74.3 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002516/8.827, allocations: 208 kB / 2.474 GB, free: 74.3 MB / 0.6823 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.01454/8.841, allocations: 4.735 MB / 2.479 GB, free: 74.28 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02025/8.862, allocations: 4.825 MB / 2.484 GB, free: 73.59 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003371/8.862, allocations: 11.28 kB / 2.484 GB, free: 73.59 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002039/8.864, allocations: 10.38 kB / 2.484 GB, free: 73.59 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001149/8.864, allocations: 80.34 kB / 2.484 GB, free: 73.59 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05965/8.924, allocations: 22.1 MB / 2.505 GB, free: 63.55 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006163/8.93, allocations: 2.502 MB / 2.508 GB, free: 63.5 MB / 0.6823 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0031/8.933, allocations: 1.657 MB / 2.509 GB, free: 63.49 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.01679/8.95, allocations: 6.007 MB / 2.515 GB, free: 61.49 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003306/8.953, allocations: 1.684 MB / 2.517 GB, free: 61.43 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=154): time 8.105e-06/8.953, allocations: 2.156 kB / 2.517 GB, free: 61.43 MB / 0.6823 GB Notification: Performance of matching and sorting (n=154): time 0.0815/9.035, allocations: 12.22 MB / 2.529 GB, free: 61.07 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.259e-05/9.035, allocations: 144 kB / 2.529 GB, free: 60.91 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01038/9.046, allocations: 3.841 MB / 2.533 GB, free: 60.59 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 0.001003/9.047, allocations: 33.14 kB / 2.533 GB, free: 60.56 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 0.002797/9.049, allocations: 1.614 MB / 2.534 GB, free: 59.71 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 0.001792/9.051, allocations: 0.528 MB / 2.535 GB, free: 59.37 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000656/9.052, allocations: 2.562 kB / 2.535 GB, free: 59.37 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0002863/9.052, allocations: 410.2 kB / 2.535 GB, free: 59.07 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002758/9.055, allocations: 1.573 MB / 2.537 GB, free: 59.06 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003901/9.059, allocations: 2.825 MB / 2.54 GB, free: 57.48 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005116/9.064, allocations: 2.156 MB / 2.542 GB, free: 57.45 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.893e-05/9.064, allocations: 11.25 kB / 2.542 GB, free: 57.45 MB / 0.6823 GB Notification: Performance of matching and sorting (n=340) (initialization): time 0.07876/9.143, allocations: 13.21 MB / 2.555 GB, free: 57.1 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 0.004876/9.148, allocations: 15.22 MB / 2.569 GB, free: 41.14 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001682/9.148, allocations: 34.62 kB / 2.569 GB, free: 41.14 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07134/9.219, allocations: 10.88 MB / 2.58 GB, free: 40.87 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004121/9.224, allocations: 0.6888 MB / 2.581 GB, free: 40.86 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01991/9.244, allocations: 6.271 MB / 2.587 GB, free: 39.24 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007796/9.251, allocations: 424.9 kB / 2.587 GB, free: 39.06 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001443/9.253, allocations: 200.5 kB / 2.587 GB, free: 39.06 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.367e-05/9.253, allocations: 2.844 kB / 2.587 GB, free: 39.06 MB / 0.6823 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.07838/9.331, allocations: 11.87 MB / 2.599 GB, free: 38.53 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002295/9.332, allocations: 39.72 kB / 2.599 GB, free: 38.53 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.08016/9.412, allocations: 10.64 MB / 2.609 GB, free: 37.76 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004239/9.416, allocations: 0.6844 MB / 2.61 GB, free: 37.61 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01643/9.433, allocations: 8.037 MB / 2.618 GB, free: 31.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007117/9.44, allocations: 314.1 kB / 2.618 GB, free: 30.9 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001374/9.441, allocations: 192.8 kB / 2.618 GB, free: 30.73 MB / 0.6823 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: val.port_internal.h_outflow:VARIABLE(min = -10000000000.0 max = 10000000000.0 unit = "J/kg" nominal = 1000000.0 protected = true ) "Specific thermodynamic enthalpy close to the connection point if m_flow < 0" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 149 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,nRes.y,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (284): * Single equations (assignments): 277 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 15,10 11,2 5} Notification: Performance of prepare postOptimizeDAE: time 0.00264/9.444, allocations: 217.9 kB / 2.619 GB, free: 30.52 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003431/9.447, allocations: 430.7 kB / 2.619 GB, free: 30.1 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02315/9.47, allocations: 5.42 MB / 2.624 GB, free: 26 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.519e-05/9.471, allocations: 20.25 kB / 2.624 GB, free: 25.98 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.465e-05/9.471, allocations: 0 / 2.624 GB, free: 25.98 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.01956/9.49, allocations: 5.873 MB / 2.63 GB, free: 19.95 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01523/9.506, allocations: 4.001 MB / 2.634 GB, free: 15.94 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.27e-05/9.506, allocations: 0 / 2.634 GB, free: 15.94 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003404/9.509, allocations: 427.4 kB / 2.634 GB, free: 15.52 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006779/9.516, allocations: 2.003 MB / 2.636 GB, free: 13.54 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008304/9.517, allocations: 31.95 kB / 2.636 GB, free: 13.51 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02799/9.545, allocations: 8.69 MB / 2.645 GB, free: 20.58 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.123e-06/9.545, allocations: 0 / 2.645 GB, free: 20.58 MB / 0.698 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.02329/9.568, allocations: 7.641 MB / 2.652 GB, free: 12.92 MB / 0.698 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02908/9.597, allocations: 10.49 MB / 2.663 GB, free: 2.395 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005165/9.603, allocations: 0.9792 MB / 2.664 GB, free: 1.391 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002552/9.605, allocations: 0 / 2.664 GB, free: 1.391 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005846/9.611, allocations: 223.2 kB / 2.664 GB, free: 1.172 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006641/9.612, allocations: 108.8 kB / 2.664 GB, free: 1.07 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006406/9.612, allocations: 94.81 kB / 2.664 GB, free: 0.9805 MB / 0.698 GB Notification: Performance of sort global known variables: time 0.4793/10.09, allocations: 2.901 MB / 2.667 GB, free: 152.2 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.01846/10.11, allocations: 2.971 MB / 2.67 GB, free: 152.2 MB / 0.698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.x[1],val.filter.x[2]) * 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 (134): * Single equations (assignments): 126 * 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: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {12 5,2 5,10 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.00381/10.11, allocations: 1.195 MB / 2.671 GB, free: 152 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.02435/10.14, allocations: 7.349 MB / 2.678 GB, free: 151.6 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 1.388e-05/10.14, allocations: 7.312 kB / 2.678 GB, free: 151.6 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.00954/10.15, allocations: 2.659 MB / 2.681 GB, free: 151.4 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01408/10.16, allocations: 2.143 MB / 2.683 GB, free: 151.4 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02573/10.19, allocations: 8.296 MB / 2.691 GB, free: 149.9 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005117/10.19, allocations: 3.709 MB / 2.695 GB, free: 149.1 MB / 0.698 GB Notification: Performance of SimCode: time 3.337e-06/10.19, allocations: 0 / 2.695 GB, free: 149.1 MB / 0.698 GB (rm -f BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > BuildSysPro_BuildSysPro.IBPSA.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)