Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlow.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.Performance.PressureDrop.SeriesFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesFlow",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlow,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesFlow",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.7292/0.7292, allocations: 141.8 MB / 149.1 MB, free: 4.605 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.001056/0.001056, allocations: 177.8 kB / 181.9 MB, free: 256 kB / 138.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 221.3 MB / 436 MB, free: 9.438 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.0009994/0.0009994, allocations: 102 kB / 0.507 GB, free: 24.17 MB / 394.9 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00188/0.00188, allocations: 281.8 kB / 0.5885 GB, free: 12.45 MB / 442.9 MB Notification: Performance of FrontEnd - loaded program: time 0.1838/0.1857, allocations: 89.64 MB / 0.676 GB, free: 2.723 MB / 0.5107 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3885/0.5742, allocations: 82.77 MB / 0.7568 GB, free: 113 MB / 0.5263 GB Notification: Performance of FrontEnd - scodeFlatten: time 3.563/4.138, allocations: 1.829 GB / 2.586 GB, free: 194.3 MB / 0.6982 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002767/4.138, allocations: 91.77 kB / 2.586 GB, free: 194.3 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: 126 * Number of variables: 126 Notification: Performance of Generate backend data structure: time 3.026/7.164, allocations: 0.9699 GB / 3.556 GB, free: 45.66 MB / 0.6982 GB Notification: Performance of prepare preOptimizeDAE: time 4.679e-05/7.164, allocations: 12.94 kB / 3.556 GB, free: 45.65 MB / 0.6982 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008922/7.165, allocations: 194.4 kB / 3.556 GB, free: 45.46 MB / 0.6982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001995/7.167, allocations: 1.085 MB / 3.557 GB, free: 44.32 MB / 0.6982 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/7.167, allocations: 19.98 kB / 3.557 GB, free: 44.3 MB / 0.6982 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.283e-05/7.167, allocations: 39.98 kB / 3.557 GB, free: 44.26 MB / 0.6982 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000653/7.168, allocations: 497.6 kB / 3.557 GB, free: 43.77 MB / 0.6982 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007248/7.169, allocations: 0.6912 MB / 3.558 GB, free: 43 MB / 0.6982 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.793e-05/7.169, allocations: 7.984 kB / 3.558 GB, free: 43 MB / 0.6982 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.226e-05/7.169, allocations: 4 kB / 3.558 GB, free: 42.99 MB / 0.6982 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.222e-05/7.169, allocations: 12 kB / 3.558 GB, free: 42.98 MB / 0.6982 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002998/7.172, allocations: 4.667 MB / 3.563 GB, free: 37.95 MB / 0.6982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000467/7.172, allocations: 443.9 kB / 3.563 GB, free: 37.51 MB / 0.6982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002439/7.173, allocations: 248.7 kB / 3.563 GB, free: 37.26 MB / 0.6982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002714/7.173, allocations: 195.7 kB / 3.563 GB, free: 37.04 MB / 0.6982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002661/7.173, allocations: 259.6 kB / 3.564 GB, free: 36.76 MB / 0.6982 GB Notification: Performance of pre-optimization done (n=31): time 2.304e-06/7.173, allocations: 0 / 3.564 GB, free: 36.76 MB / 0.6982 GB Notification: Performance of matching and sorting (n=31): time 0.0008432/7.174, allocations: 0.5009 MB / 3.564 GB, free: 36.26 MB / 0.6982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.476e-05/7.174, allocations: 89 kB / 3.564 GB, free: 36.15 MB / 0.6982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008023/7.175, allocations: 0.8714 MB / 3.565 GB, free: 35.26 MB / 0.6982 GB Notification: Performance of collectPreVariables (initialization): time 3.664e-05/7.175, allocations: 29.7 kB / 3.565 GB, free: 35.23 MB / 0.6982 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001557/7.175, allocations: 340.1 kB / 3.566 GB, free: 34.89 MB / 0.6982 GB Notification: Performance of collectInitialBindings (initialization): time 6.066e-05/7.175, allocations: 110.5 kB / 3.566 GB, free: 34.78 MB / 0.6982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.023e-05/7.175, allocations: 0 / 3.566 GB, free: 34.78 MB / 0.6982 GB Notification: Performance of setup shared object (initialization): time 5.88e-05/7.175, allocations: 322 kB / 3.566 GB, free: 34.46 MB / 0.6982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002043/7.175, allocations: 192.7 kB / 3.566 GB, free: 34.27 MB / 0.6982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003377/7.176, allocations: 0.5038 MB / 3.567 GB, free: 33.63 MB / 0.6982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002682/7.176, allocations: 278 kB / 3.567 GB, free: 33.36 MB / 0.6982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/7.176, allocations: 4 kB / 3.567 GB, free: 33.36 MB / 0.6982 GB Notification: Performance of matching and sorting (n=54) (initialization): time 0.0007283/7.177, allocations: 0.6282 MB / 3.567 GB, free: 32.72 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003471/7.177, allocations: 2.097 MB / 3.57 GB, free: 30.46 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.817e-06/7.177, allocations: 8 kB / 3.57 GB, free: 30.46 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.882e-05/7.177, allocations: 8 kB / 3.57 GB, free: 30.45 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00169/7.179, allocations: 283.4 kB / 3.57 GB, free: 30.17 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002478/7.181, allocations: 6.235 MB / 3.576 GB, free: 23.7 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008849/7.182, allocations: 83.62 kB / 3.576 GB, free: 23.62 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.668e-05/7.182, allocations: 24 kB / 3.576 GB, free: 23.6 MB / 0.6982 GB Notification: Performance of prepare postOptimizeDAE: time 1.13e-05/7.182, allocations: 5.094 kB / 3.576 GB, free: 23.59 MB / 0.6982 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005083/7.183, allocations: 416.1 kB / 3.576 GB, free: 23.19 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.141e-06/7.183, allocations: 12.09 kB / 3.576 GB, free: 23.18 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.887e-06/7.183, allocations: 8 kB / 3.576 GB, free: 23.17 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005336/7.183, allocations: 147.8 kB / 3.577 GB, free: 23.02 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/7.183, allocations: 19.83 kB / 3.577 GB, free: 23 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000669/7.184, allocations: 79.62 kB / 3.577 GB, free: 22.93 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.699e-05/7.184, allocations: 24 kB / 3.577 GB, free: 22.9 MB / 0.6982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.pulse_p.T_start,pulse_p.T_start,$PRE.pulse_p.count,pulse_p.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 42 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 10 {1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001856/7.184, allocations: 128.7 kB / 3.577 GB, free: 22.77 MB / 0.6982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001069/7.184, allocations: 94.78 kB / 3.577 GB, free: 22.68 MB / 0.6982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007056/7.185, allocations: 462.5 kB / 3.577 GB, free: 22.21 MB / 0.6982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.925e-06/7.185, allocations: 4 kB / 3.577 GB, free: 22.21 MB / 0.6982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.981e-06/7.185, allocations: 0 / 3.577 GB, free: 22.21 MB / 0.6982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.29e-06/7.185, allocations: 0 / 3.577 GB, free: 22.21 MB / 0.6982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001556/7.187, allocations: 1.28 MB / 3.579 GB, free: 20.86 MB / 0.6982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/7.187, allocations: 0 / 3.579 GB, free: 20.86 MB / 0.6982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006655/7.187, allocations: 159.7 kB / 3.579 GB, free: 20.7 MB / 0.6982 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.851e-06/7.187, allocations: 4 kB / 3.579 GB, free: 20.7 MB / 0.6982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.333e-05/7.188, allocations: 8.203 kB / 3.579 GB, free: 20.69 MB / 0.6982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001876/7.189, allocations: 6.083 MB / 3.585 GB, free: 14.38 MB / 0.6982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.898e-06/7.189, allocations: 0 / 3.585 GB, free: 14.38 MB / 0.6982 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005546/7.19, allocations: 0.6475 MB / 3.585 GB, free: 13.65 MB / 0.6982 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006855/7.191, allocations: 1.066 MB / 3.586 GB, free: 12.5 MB / 0.6982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003645/7.191, allocations: 219.7 kB / 3.587 GB, free: 12.27 MB / 0.6982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/7.191, allocations: 4 kB / 3.587 GB, free: 12.26 MB / 0.6982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005134/7.192, allocations: 47.86 kB / 3.587 GB, free: 12.21 MB / 0.6982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.796e-05/7.192, allocations: 31.95 kB / 3.587 GB, free: 12.18 MB / 0.6982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.18e-05/7.192, allocations: 8 kB / 3.587 GB, free: 12.18 MB / 0.6982 GB Notification: Performance of sort global known variables: time 0.0007361/7.193, allocations: 0.6845 MB / 3.587 GB, free: 11.48 MB / 0.6982 GB Notification: Performance of remove unused functions: time 0.002734/7.195, allocations: 0.6322 MB / 3.588 GB, free: 10.85 MB / 0.6982 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,pulse_p.T_start,pulse_p.count) * Number of discrete states: 1 (pulse_p.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (31): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 10 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 10 {1,1,1,1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001405/7.197, allocations: 1.033 MB / 3.589 GB, free: 9.82 MB / 0.6982 GB Notification: Performance of simCode: created initialization part: time 0.002839/7.2, allocations: 0.9501 MB / 3.59 GB, free: 8.855 MB / 0.6982 GB Notification: Performance of simCode: created event and clocks part: time 3.868e-06/7.2, allocations: 0 / 3.59 GB, free: 8.855 MB / 0.6982 GB Notification: Performance of simCode: created simulation system equations: time 0.0007797/7.2, allocations: 293.5 kB / 3.59 GB, free: 8.57 MB / 0.6982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001764/7.202, allocations: 379 kB / 3.591 GB, free: 8.203 MB / 0.6982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002245/7.204, allocations: 1.385 MB / 3.592 GB, free: 6.762 MB / 0.6982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006341/7.205, allocations: 1.263 MB / 3.593 GB, free: 5.473 MB / 0.6982 GB Notification: Performance of SimCode: time 9.42e-07/7.205, allocations: 0 / 3.593 GB, free: 5.473 MB / 0.6982 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlow.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlow.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlow.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlow.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesFlow_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Examples_Performance_PressureDrop_SeriesFlow.fmu > BuildingSystems_BuildingSystems.Fluid.Examples.Performance.PressureDrop.SeriesFlow.pipe 2>&1)