Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json 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/IBPSA 4.0.0-master/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) 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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) Running command: "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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/Complex 4.0.0+maint.om/package.mo): time 0.001824/0.001824, allocations: 193 kB / 7.806 MB, free: 2.484 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4682/0.4682, allocations: 90.85 MB / 99.07 MB, free: 14.93 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.27/1.27, allocations: 221.4 MB / 342.7 MB, free: 5.512 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009149/0.000915, allocations: 94.52 kB / 415.5 MB, free: 9.902 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1656/0.1666, allocations: 78.45 MB / 494 MB, free: 11.54 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3715/0.5381, allocations: 72.3 MB / 0.553 GB, free: 44.79 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 4.274/4.813, allocations: 2.107 GB / 2.66 GB, free: 183.7 MB / 0.6042 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002279/4.813, allocations: 83.95 kB / 2.661 GB, free: 183.6 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 2.259/7.072, allocations: 0.6589 GB / 3.319 GB, free: 89.2 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.223e-05/7.072, allocations: 11.03 kB / 3.319 GB, free: 89.2 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002856/7.075, allocations: 0.5861 MB / 3.32 GB, free: 89.14 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02914/7.104, allocations: 13.19 MB / 3.333 GB, free: 88.43 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001122/7.105, allocations: 320.8 kB / 3.333 GB, free: 88.43 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000131/7.105, allocations: 41.44 kB / 3.333 GB, free: 88.43 MB / 0.6042 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001272/7.106, allocations: 0.7379 MB / 3.334 GB, free: 88.43 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001271/7.108, allocations: 0.9077 MB / 3.335 GB, free: 88.29 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.724e-05/7.108, allocations: 0 / 3.335 GB, free: 88.29 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.016e-05/7.108, allocations: 3.5 kB / 3.335 GB, free: 88.29 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.709e-05/7.108, allocations: 29.42 kB / 3.335 GB, free: 88.29 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005681/7.113, allocations: 3.167 MB / 3.338 GB, free: 87.48 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000886/7.114, allocations: 0.5464 MB / 3.338 GB, free: 87.44 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004735/7.115, allocations: 358.9 kB / 3.339 GB, free: 87.43 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008335/7.116, allocations: 1.03 MB / 3.34 GB, free: 86.31 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005796/7.116, allocations: 479.6 kB / 3.34 GB, free: 86.21 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=57): time 2.234e-06/7.116, allocations: 0 / 3.34 GB, free: 86.21 MB / 0.6042 GB Notification: Performance of matching and sorting (n=57): time 0.001702/7.118, allocations: 0.7681 MB / 3.341 GB, free: 86.12 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.956e-05/7.118, allocations: 143.3 kB / 3.341 GB, free: 85.96 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007393/7.119, allocations: 0.6511 MB / 3.342 GB, free: 85.84 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 6.436e-05/7.119, allocations: 25.7 kB / 3.342 GB, free: 85.8 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001771/7.119, allocations: 322.2 kB / 3.342 GB, free: 85.65 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001307/7.119, allocations: 185.9 kB / 3.342 GB, free: 85.55 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/7.119, allocations: 0 / 3.342 GB, free: 85.55 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.506e-05/7.119, allocations: 333.9 kB / 3.343 GB, free: 85.25 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000432/7.12, allocations: 309.1 kB / 3.343 GB, free: 85.25 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005373/7.12, allocations: 0.5029 MB / 3.343 GB, free: 85.05 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007735/7.121, allocations: 413.8 kB / 3.344 GB, free: 85.05 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/7.121, allocations: 3.062 kB / 3.344 GB, free: 85.05 MB / 0.6042 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.001553/7.123, allocations: 0.9015 MB / 3.345 GB, free: 84.96 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/7.123, allocations: 4.906 kB / 3.345 GB, free: 84.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.054e-05/7.123, allocations: 7.688 kB / 3.345 GB, free: 84.96 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.908e-05/7.123, allocations: 7.656 kB / 3.345 GB, free: 84.96 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001067/7.124, allocations: 224.5 kB / 3.345 GB, free: 84.96 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/7.124, allocations: 10.03 kB / 3.345 GB, free: 84.96 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001552/7.125, allocations: 285.2 kB / 3.345 GB, free: 84.95 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/7.125, allocations: 45.62 kB / 3.345 GB, free: 84.95 MB / 0.6042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002077/7.126, allocations: 157.8 kB / 3.345 GB, free: 84.81 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001412/7.126, allocations: 91.94 kB / 3.346 GB, free: 84.77 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001559/7.127, allocations: 0.8362 MB / 3.346 GB, free: 84.71 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.225e-05/7.127, allocations: 10.25 kB / 3.346 GB, free: 84.71 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.524e-06/7.127, allocations: 5.422 kB / 3.346 GB, free: 84.71 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.464e-06/7.127, allocations: 0 / 3.346 GB, free: 84.71 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003963/7.131, allocations: 2.98 MB / 3.349 GB, free: 84.03 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.827e-06/7.131, allocations: 7.812 kB / 3.349 GB, free: 84.03 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000643/7.132, allocations: 131.1 kB / 3.349 GB, free: 84.03 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/7.132, allocations: 10.78 kB / 3.349 GB, free: 84.03 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.47e-05/7.132, allocations: 24.38 kB / 3.349 GB, free: 84.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.796e-06/7.132, allocations: 10.53 kB / 3.349 GB, free: 84.03 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.127e-06/7.132, allocations: 12.12 kB / 3.349 GB, free: 84.03 MB / 0.6042 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001541/7.134, allocations: 1.538 MB / 3.351 GB, free: 83.02 MB / 0.6042 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001857/7.136, allocations: 1.993 MB / 3.353 GB, free: 81.62 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000479/7.136, allocations: 311.4 kB / 3.353 GB, free: 81.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/7.136, allocations: 15.12 kB / 3.353 GB, free: 81.48 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001208/7.138, allocations: 127.6 kB / 3.353 GB, free: 81.48 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/7.138, allocations: 69.83 kB / 3.353 GB, free: 81.47 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.136e-05/7.138, allocations: 40.25 kB / 3.353 GB, free: 81.47 MB / 0.6042 GB Notification: Performance of sort global known variables: time 0.000613/7.138, allocations: 0.5002 MB / 3.354 GB, free: 81.38 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.002443/7.141, allocations: 0.5995 MB / 3.354 GB, free: 81.35 MB / 0.6042 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002233/7.143, allocations: 1.742 MB / 3.356 GB, free: 80.93 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.001209/7.144, allocations: 0.7722 MB / 3.357 GB, free: 80.89 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/7.144, allocations: 0 / 3.357 GB, free: 80.89 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0005108/7.145, allocations: 450 kB / 3.357 GB, free: 80.86 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001645/7.146, allocations: 343.6 kB / 3.358 GB, free: 80.84 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/7.15, allocations: 1.518 MB / 3.359 GB, free: 80.28 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008747/7.15, allocations: 1.183 MB / 3.36 GB, free: 79.57 MB / 0.6042 GB Notification: Performance of SimCode: time 8.52e-07/7.15, allocations: 3.656 kB / 3.36 GB, free: 79.57 MB / 0.6042 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)