Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.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.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_ResistanceVolumeFlowReversal",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.7424/0.7424, allocations: 141.8 MB / 149.1 MB, free: 11.48 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.001189/0.001189, allocations: 179.9 kB / 182 MB, free: 8.258 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.33/1.33, allocations: 221.3 MB / 436.1 MB, free: 0.5195 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.00101/0.00101, allocations: 99.42 kB / 0.507 GB, free: 9.52 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001854/0.001854, allocations: 282.5 kB / 0.5885 GB, free: 6.34 MB / 474.9 MB Notification: Performance of FrontEnd - loaded program: time 0.213/0.2149, allocations: 89.63 MB / 0.676 GB, free: 12.62 MB / 0.5575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5043/0.7192, allocations: 82.77 MB / 0.7568 GB, free: 137.5 MB / 0.5575 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7363/1.456, allocations: 377.1 MB / 1.125 GB, free: 6.992 MB / 0.6669 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003602/1.456, allocations: 91.08 kB / 1.125 GB, free: 6.953 MB / 0.6669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 834 * Number of variables: 834 Notification: Performance of Generate backend data structure: time 5.544/7, allocations: 1.48 GB / 2.605 GB, free: 83.78 MB / 0.7294 GB Notification: Performance of prepare preOptimizeDAE: time 4.138e-05/7, allocations: 15.22 kB / 2.605 GB, free: 83.77 MB / 0.7294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005232/7.005, allocations: 0.8288 MB / 2.606 GB, free: 83.46 MB / 0.7294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01885/7.024, allocations: 6.818 MB / 2.612 GB, free: 82.63 MB / 0.7294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000224/7.024, allocations: 109.7 kB / 2.612 GB, free: 82.62 MB / 0.7294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001326/7.026, allocations: 206.7 kB / 2.613 GB, free: 82.62 MB / 0.7294 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.008855/7.035, allocations: 4.85 MB / 2.617 GB, free: 82.61 MB / 0.7294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009607/7.044, allocations: 4.865 MB / 2.622 GB, free: 81.95 MB / 0.7294 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001162/7.044, allocations: 8.281 kB / 2.622 GB, free: 81.95 MB / 0.7294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008156/7.045, allocations: 7.594 kB / 2.622 GB, free: 81.95 MB / 0.7294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.354e-05/7.045, allocations: 117.5 kB / 2.622 GB, free: 81.94 MB / 0.7294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03255/7.078, allocations: 22.34 MB / 2.644 GB, free: 72.14 MB / 0.7294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002828/7.081, allocations: 2.353 MB / 2.646 GB, free: 72.1 MB / 0.7294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002099/7.083, allocations: 1.785 MB / 2.648 GB, free: 72.08 MB / 0.7294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0127/7.096, allocations: 6.937 MB / 2.655 GB, free: 69.85 MB / 0.7294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002245/7.098, allocations: 1.753 MB / 2.657 GB, free: 69.79 MB / 0.7294 GB Notification: Performance of pre-optimization done (n=158): time 4.579e-06/7.098, allocations: 0.5625 kB / 2.657 GB, free: 69.79 MB / 0.7294 GB Notification: Performance of matching and sorting (n=158): time 0.02095/7.119, allocations: 6.195 MB / 2.663 GB, free: 69.46 MB / 0.7294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.219e-05/7.119, allocations: 68.39 kB / 2.663 GB, free: 69.4 MB / 0.7294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01017/7.129, allocations: 4.039 MB / 2.667 GB, free: 69.08 MB / 0.7294 GB Notification: Performance of collectPreVariables (initialization): time 0.0008878/7.13, allocations: 30.95 kB / 2.667 GB, free: 69.05 MB / 0.7294 GB Notification: Performance of collectInitialEqns (initialization): time 0.002803/7.133, allocations: 1.607 MB / 2.668 GB, free: 68.2 MB / 0.7294 GB Notification: Performance of collectInitialBindings (initialization): time 0.001788/7.135, allocations: 0.5421 MB / 2.669 GB, free: 67.85 MB / 0.7294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004624/7.135, allocations: 0 / 2.669 GB, free: 67.85 MB / 0.7294 GB Notification: Performance of setup shared object (initialization): time 0.0002293/7.136, allocations: 412.4 kB / 2.669 GB, free: 67.54 MB / 0.7294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002415/7.138, allocations: 1.545 MB / 2.671 GB, free: 67.54 MB / 0.7294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003123/7.141, allocations: 2.802 MB / 2.673 GB, free: 65.99 MB / 0.7294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004287/7.145, allocations: 2.136 MB / 2.675 GB, free: 65.96 MB / 0.7294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.551e-05/7.145, allocations: 10.59 kB / 2.675 GB, free: 65.96 MB / 0.7294 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.06581/7.211, allocations: 11.78 MB / 2.687 GB, free: 65.61 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 0.004108/7.215, allocations: 14.94 MB / 2.702 GB, free: 49.88 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001366/7.216, allocations: 29.81 kB / 2.702 GB, free: 49.88 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.07233/7.288, allocations: 10.75 MB / 2.712 GB, free: 49.85 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003303/7.291, allocations: 0.6427 MB / 2.713 GB, free: 49.85 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0127/7.304, allocations: 5.853 MB / 2.718 GB, free: 48.26 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007161/7.311, allocations: 447.2 kB / 2.719 GB, free: 48.1 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001045/7.312, allocations: 195.3 kB / 2.719 GB, free: 48.1 MB / 0.7294 GB Notification: Performance of prepare postOptimizeDAE: time 1.512e-05/7.312, allocations: 7.609 kB / 2.719 GB, free: 48.1 MB / 0.7294 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0644/7.377, allocations: 11.06 MB / 2.73 GB, free: 47.84 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002065/7.377, allocations: 30.97 kB / 2.73 GB, free: 47.84 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.06819/7.445, allocations: 10.7 MB / 2.74 GB, free: 47.48 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003163/7.448, allocations: 0.638 MB / 2.741 GB, free: 47.48 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01573/7.464, allocations: 8.326 MB / 2.749 GB, free: 44.33 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006198/7.47, allocations: 373.6 kB / 2.749 GB, free: 44.2 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001024/7.472, allocations: 194.4 kB / 2.75 GB, free: 44.2 MB / 0.7294 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: 147 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,allowFlowReversal.y) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (282): * Single equations (assignments): 277 * Array equations: 1 * Algorithm blocks: 1 * Record equations: 0 * 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.00158/7.473, allocations: 201.3 kB / 2.75 GB, free: 44.07 MB / 0.7294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002089/7.475, allocations: 432.1 kB / 2.75 GB, free: 43.84 MB / 0.7294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01454/7.49, allocations: 4.816 MB / 2.755 GB, free: 42.68 MB / 0.7294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/7.49, allocations: 20 kB / 2.755 GB, free: 42.66 MB / 0.7294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/7.49, allocations: 0 / 2.755 GB, free: 42.66 MB / 0.7294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.008938/7.499, allocations: 5.121 MB / 2.76 GB, free: 39.25 MB / 0.7294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03031/7.529, allocations: 9.987 MB / 2.77 GB, free: 32.93 MB / 0.7294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.091e-05/7.529, allocations: 0 / 2.77 GB, free: 32.93 MB / 0.7294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002622/7.532, allocations: 371.5 kB / 2.77 GB, free: 32.65 MB / 0.7294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005752/7.538, allocations: 1.872 MB / 2.772 GB, free: 31.04 MB / 0.7294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004636/7.538, allocations: 31.97 kB / 2.772 GB, free: 31.01 MB / 0.7294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006589/7.545, allocations: 3.537 MB / 2.775 GB, free: 27.4 MB / 0.7294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.903e-06/7.545, allocations: 5.359 kB / 2.775 GB, free: 27.4 MB / 0.7294 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0231/7.568, allocations: 7.94 MB / 2.783 GB, free: 19.45 MB / 0.7294 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.02597/7.594, allocations: 10.73 MB / 2.794 GB, free: 8.699 MB / 0.7294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003976/7.598, allocations: 1.014 MB / 2.795 GB, free: 7.66 MB / 0.7294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001913/7.6, allocations: 10.25 kB / 2.795 GB, free: 7.652 MB / 0.7294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004679/7.605, allocations: 227.2 kB / 2.795 GB, free: 7.43 MB / 0.7294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004073/7.605, allocations: 105.7 kB / 2.795 GB, free: 7.328 MB / 0.7294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004071/7.605, allocations: 87.92 kB / 2.795 GB, free: 7.242 MB / 0.7294 GB Notification: Performance of sort global known variables: time 0.005614/7.611, allocations: 3.047 MB / 2.798 GB, free: 4.203 MB / 0.7294 GB Notification: Performance of remove unused functions: time 0.01417/7.625, allocations: 2.987 MB / 2.801 GB, free: 1.215 MB / 0.7294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (pump.vol.dynBal.U,hea.outCon.T,val.filter.s[1],val.filter.s[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 (139): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * 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.002688/7.628, allocations: 1.155 MB / 2.802 GB, free: 208 kB / 0.7294 GB Notification: Performance of simCode: created initialization part: time 0.01948/7.647, allocations: 7.001 MB / 2.809 GB, free: 9.23 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 1.861e-05/7.647, allocations: 11.55 kB / 2.809 GB, free: 9.223 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.005727/7.653, allocations: 2.122 MB / 2.811 GB, free: 7.105 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01301/7.666, allocations: 2.29 MB / 2.813 GB, free: 4.898 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3341/8, allocations: 7.765 MB / 2.821 GB, free: 142.2 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003645/8.004, allocations: 3.712 MB / 2.824 GB, free: 141.4 MB / 0.745 GB Notification: Performance of SimCode: time 1.112e-06/8.004, allocations: 0 / 2.824 GB, free: 141.4 MB / 0.745 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_ResistanceVolumeFlowReversal_fmu --startTime=0 --stopTime=10000 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_ResistanceVolumeFlowReversal.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.ResistanceVolumeFlowReversal.pipe 2>&1)