Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.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.Movers.Validation.FlowControlled_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Movers_Validation_FlowControlled_m_flow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Movers_Validation_FlowControlled_m_flow",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.7073/0.7073, allocations: 141.8 MB / 149.1 MB, free: 2.383 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.001035/0.001036, allocations: 178.2 kB / 181.9 MB, free: 14.33 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.227/1.227, allocations: 221.3 MB / 436 MB, free: 7.273 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.001018/0.001018, allocations: 100.3 kB / 0.507 GB, free: 24.59 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001814/0.001814, allocations: 277.5 kB / 0.5884 GB, free: 10.52 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1794/0.1813, allocations: 89.65 MB / 0.676 GB, free: 0.7812 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3426/0.5239, allocations: 82.75 MB / 0.7568 GB, free: 111.1 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.484/4.008, allocations: 1.905 GB / 2.662 GB, free: 142 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/4.008, allocations: 91.94 kB / 2.662 GB, free: 141.9 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: 341 * Number of variables: 341 Notification: Performance of Generate backend data structure: time 5.186/9.194, allocations: 1.676 GB / 4.337 GB, free: 69.69 MB / 0.745 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/9.194, allocations: 11.28 kB / 4.337 GB, free: 69.69 MB / 0.745 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006618/9.2, allocations: 0.891 MB / 4.338 GB, free: 69.55 MB / 0.745 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008458/9.209, allocations: 2.696 MB / 4.341 GB, free: 68.97 MB / 0.745 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001147/9.209, allocations: 47.28 kB / 4.341 GB, free: 68.97 MB / 0.745 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005684/9.21, allocations: 89.59 kB / 4.341 GB, free: 68.97 MB / 0.745 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003153/9.213, allocations: 1.231 MB / 4.342 GB, free: 68.96 MB / 0.745 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003489/9.216, allocations: 1.406 MB / 4.344 GB, free: 68.77 MB / 0.745 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.44e-05/9.216, allocations: 3.125 kB / 4.344 GB, free: 68.77 MB / 0.745 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002373/9.217, allocations: 3.469 kB / 4.344 GB, free: 68.77 MB / 0.745 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.095e-05/9.217, allocations: 44.92 kB / 4.344 GB, free: 68.77 MB / 0.745 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01234/9.229, allocations: 7.622 MB / 4.351 GB, free: 64.86 MB / 0.745 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001308/9.23, allocations: 0.87 MB / 4.352 GB, free: 64.82 MB / 0.745 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000882/9.231, allocations: 0.5392 MB / 4.353 GB, free: 64.8 MB / 0.745 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003378/9.232, allocations: 284.5 kB / 4.353 GB, free: 64.52 MB / 0.745 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.304e-05/9.232, allocations: 42.53 kB / 4.353 GB, free: 64.48 MB / 0.745 GB Notification: Performance of pre-optimization done (n=78): time 3.366e-06/9.232, allocations: 0 / 4.353 GB, free: 64.48 MB / 0.745 GB Notification: Performance of matching and sorting (n=78): time 0.004075/9.236, allocations: 1.141 MB / 4.354 GB, free: 64.33 MB / 0.745 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.647e-05/9.236, allocations: 58.81 kB / 4.354 GB, free: 64.27 MB / 0.745 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002636/9.238, allocations: 1.298 MB / 4.355 GB, free: 63.81 MB / 0.745 GB Notification: Performance of collectPreVariables (initialization): time 0.000182/9.239, allocations: 29.42 kB / 4.355 GB, free: 63.78 MB / 0.745 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005303/9.239, allocations: 0.6192 MB / 4.356 GB, free: 63.35 MB / 0.745 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003299/9.24, allocations: 264.3 kB / 4.356 GB, free: 63.14 MB / 0.745 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.466e-05/9.24, allocations: 2.688 kB / 4.356 GB, free: 63.14 MB / 0.745 GB Notification: Performance of setup shared object (initialization): time 8.335e-05/9.24, allocations: 343.4 kB / 4.357 GB, free: 62.82 MB / 0.745 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005494/9.24, allocations: 356.9 kB / 4.357 GB, free: 62.68 MB / 0.745 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007504/9.241, allocations: 0.7605 MB / 4.358 GB, free: 62.01 MB / 0.745 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001174/9.242, allocations: 0.5191 MB / 4.358 GB, free: 61.83 MB / 0.745 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.939e-06/9.242, allocations: 0 / 4.358 GB, free: 61.83 MB / 0.745 GB Notification: Performance of matching and sorting (n=128) (initialization): time 0.003282/9.246, allocations: 1.344 MB / 4.359 GB, free: 61.34 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 0.0007818/9.246, allocations: 3.835 MB / 4.363 GB, free: 57.29 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.825e-05/9.246, allocations: 12.47 kB / 4.363 GB, free: 57.29 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004129/9.247, allocations: 105.8 kB / 4.363 GB, free: 57.25 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00132/9.248, allocations: 267.1 kB / 4.364 GB, free: 57.23 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002253/9.25, allocations: 2.232 MB / 4.366 GB, free: 55.24 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002107/9.253, allocations: 163.4 kB / 4.366 GB, free: 55.19 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001818/9.253, allocations: 64.66 kB / 4.366 GB, free: 55.18 MB / 0.745 GB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/9.253, allocations: 3.875 kB / 4.366 GB, free: 55.18 MB / 0.745 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002766/9.256, allocations: 1.046 MB / 4.367 GB, free: 54.84 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.937e-05/9.256, allocations: 8.656 kB / 4.367 GB, free: 54.84 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003012/9.256, allocations: 103.6 kB / 4.367 GB, free: 54.82 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/9.257, allocations: 246.5 kB / 4.367 GB, free: 54.79 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002051/9.259, allocations: 1.65 MB / 4.369 GB, free: 53.38 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002167/9.261, allocations: 143.5 kB / 4.369 GB, free: 53.34 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/9.261, allocations: 52.16 kB / 4.369 GB, free: 53.34 MB / 0.745 GB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: floMacSta.vol.heaFloSen.Q_flow:VARIABLE(unit = "W" protected = true ) "Heat flow from port_a to port_b as output signal" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 42 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 118 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0005034/9.262, allocations: 137.2 kB / 4.369 GB, free: 53.21 MB / 0.745 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007267/9.263, allocations: 184.2 kB / 4.369 GB, free: 53.11 MB / 0.745 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003887/9.267, allocations: 1.101 MB / 4.37 GB, free: 52.71 MB / 0.745 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.509e-05/9.267, allocations: 8.656 kB / 4.37 GB, free: 52.71 MB / 0.745 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.2e-06/9.267, allocations: 0 / 4.37 GB, free: 52.71 MB / 0.745 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002311/9.269, allocations: 0.9202 MB / 4.371 GB, free: 52.3 MB / 0.745 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008188/9.277, allocations: 2.64 MB / 4.374 GB, free: 51.02 MB / 0.745 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.486e-06/9.277, allocations: 0.875 kB / 4.374 GB, free: 51.02 MB / 0.745 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001196/9.278, allocations: 202.4 kB / 4.374 GB, free: 51 MB / 0.745 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003515/9.279, allocations: 95 kB / 4.374 GB, free: 50.98 MB / 0.745 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.605e-05/9.279, allocations: 16.78 kB / 4.374 GB, free: 50.97 MB / 0.745 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002261/9.281, allocations: 2.216 MB / 4.376 GB, free: 48.79 MB / 0.745 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/9.281, allocations: 0 / 4.376 GB, free: 48.79 MB / 0.745 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003274/9.284, allocations: 1.682 MB / 4.378 GB, free: 47.2 MB / 0.745 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.004469/9.289, allocations: 2.762 MB / 4.381 GB, free: 44.55 MB / 0.745 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001202/9.29, allocations: 348.6 kB / 4.381 GB, free: 44.22 MB / 0.745 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006033/9.291, allocations: 4.562 kB / 4.381 GB, free: 44.22 MB / 0.745 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001743/9.292, allocations: 107 kB / 4.381 GB, free: 44.15 MB / 0.745 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/9.293, allocations: 42.75 kB / 4.381 GB, free: 44.13 MB / 0.745 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.46e-05/9.293, allocations: 32.88 kB / 4.381 GB, free: 44.1 MB / 0.745 GB Notification: Performance of sort global known variables: time 0.00232/9.295, allocations: 0.9817 MB / 4.382 GB, free: 43.2 MB / 0.745 GB Notification: Performance of remove unused functions: time 0.009904/9.305, allocations: 2.299 MB / 4.384 GB, free: 40.93 MB / 0.745 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (floMacDyn.vol.dynBal.U,floMacDyn.vol.dynBal.m,floMacDyn.vol.dynBal.mXi[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (77): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.006776/9.312, allocations: 4.406 MB / 4.389 GB, free: 37.16 MB / 0.745 GB Notification: Performance of simCode: created initialization part: time 0.003616/9.315, allocations: 1.679 MB / 4.39 GB, free: 35.56 MB / 0.745 GB Notification: Performance of simCode: created event and clocks part: time 7.254e-06/9.315, allocations: 3.938 kB / 4.39 GB, free: 35.56 MB / 0.745 GB Notification: Performance of simCode: created simulation system equations: time 0.0009516/9.316, allocations: 0.5139 MB / 4.391 GB, free: 35.07 MB / 0.745 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004732/9.321, allocations: 0.8461 MB / 4.392 GB, free: 34.43 MB / 0.745 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007284/9.329, allocations: 2.734 MB / 4.394 GB, free: 31.91 MB / 0.745 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002804/9.331, allocations: 1.77 MB / 4.396 GB, free: 30.46 MB / 0.745 GB Notification: Performance of SimCode: time 9.92e-07/9.331, allocations: 0 / 4.396 GB, free: 30.46 MB / 0.745 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Movers_Validation_FlowControlled_m_flow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Movers_Validation_FlowControlled_m_flow.fmu > BuildingSystems_BuildingSystems.Fluid.Movers.Validation.FlowControlled_m_flow.pipe 2>&1)