Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.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) 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 Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_ConservationEquation",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/Buildings 10.0.0-master/package.mo): time 2.215/2.215, allocations: 390.4 MB / 397.7 MB, free: 11.3 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 185.2 kB / 490.8 MB, free: 1.984 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.541/1.541, allocations: 221.3 MB / 0.7863 GB, free: 13.75 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 91.8 kB / 0.9264 GB, free: 14.29 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 0.7114/0.7125, allocations: 149.1 MB / 1.072 GB, free: 182.6 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4366/1.149, allocations: 143 MB / 1.212 GB, free: 40.07 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.31/2.459, allocations: 401.2 MB / 1.603 GB, free: 13.96 MB / 1.026 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002649/2.459, allocations: 87.86 kB / 1.603 GB, free: 13.92 MB / 1.026 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 1.214/3.673, allocations: 259.8 MB / 1.857 GB, free: 295.4 MB / 1.151 GB Notification: Performance of prepare preOptimizeDAE: time 4.772e-05/3.673, allocations: 11.06 kB / 1.857 GB, free: 295.4 MB / 1.151 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001085/3.674, allocations: 192.8 kB / 1.857 GB, free: 295.4 MB / 1.151 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02997/3.704, allocations: 12.07 MB / 1.869 GB, free: 290.9 MB / 1.151 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003346/3.705, allocations: 89.95 kB / 1.869 GB, free: 290.8 MB / 1.151 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.898e-05/3.705, allocations: 23.12 kB / 1.869 GB, free: 290.8 MB / 1.151 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005906/3.705, allocations: 294.2 kB / 1.87 GB, free: 290.7 MB / 1.151 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005846/3.706, allocations: 412.1 kB / 1.87 GB, free: 290.5 MB / 1.151 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/3.706, allocations: 0 / 1.87 GB, free: 290.5 MB / 1.151 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.142e-05/3.706, allocations: 0 / 1.87 GB, free: 290.5 MB / 1.151 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/3.706, allocations: 25.73 kB / 1.87 GB, free: 290.4 MB / 1.151 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003025/3.709, allocations: 2.225 MB / 1.872 GB, free: 288.5 MB / 1.151 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004602/3.71, allocations: 258.4 kB / 1.872 GB, free: 288.4 MB / 1.151 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002217/3.71, allocations: 181.6 kB / 1.873 GB, free: 288.3 MB / 1.151 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002758/3.71, allocations: 343.9 kB / 1.873 GB, free: 287.9 MB / 1.151 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003014/3.71, allocations: 241.7 kB / 1.873 GB, free: 287.7 MB / 1.151 GB Notification: Performance of pre-optimization done (n=33): time 1.813e-06/3.71, allocations: 0 / 1.873 GB, free: 287.7 MB / 1.151 GB Notification: Performance of matching and sorting (n=33): time 0.001047/3.711, allocations: 441.2 kB / 1.874 GB, free: 287.5 MB / 1.151 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.708e-05/3.711, allocations: 84.89 kB / 1.874 GB, free: 287.4 MB / 1.151 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003661/3.712, allocations: 370.8 kB / 1.874 GB, free: 287.2 MB / 1.151 GB Notification: Performance of collectPreVariables (initialization): time 3.935e-05/3.712, allocations: 29.48 kB / 1.874 GB, free: 287.2 MB / 1.151 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001043/3.712, allocations: 207.2 kB / 1.874 GB, free: 287 MB / 1.151 GB Notification: Performance of collectInitialBindings (initialization): time 7.791e-05/3.712, allocations: 105.8 kB / 1.874 GB, free: 286.9 MB / 1.151 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.105e-05/3.712, allocations: 3.875 kB / 1.874 GB, free: 286.9 MB / 1.151 GB Notification: Performance of setup shared object (initialization): time 0.0001005/3.712, allocations: 358.2 kB / 1.875 GB, free: 286.5 MB / 1.151 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001879/3.712, allocations: 123.2 kB / 1.875 GB, free: 286.5 MB / 1.151 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002199/3.713, allocations: 223.5 kB / 1.875 GB, free: 286.3 MB / 1.151 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003473/3.713, allocations: 171.3 kB / 1.875 GB, free: 286.2 MB / 1.151 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.435e-06/3.713, allocations: 0 / 1.875 GB, free: 286.2 MB / 1.151 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.000834/3.714, allocations: 467.8 kB / 1.876 GB, free: 286 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001298/3.714, allocations: 0.626 MB / 1.876 GB, free: 285.3 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/3.714, allocations: 3.938 kB / 1.876 GB, free: 285.3 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002141/3.714, allocations: 44.91 kB / 1.876 GB, free: 285.3 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003873/3.715, allocations: 86.28 kB / 1.876 GB, free: 285.3 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003932/3.715, allocations: 0.6089 MB / 1.877 GB, free: 284.7 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005927/3.716, allocations: 66.45 kB / 1.877 GB, free: 284.7 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.233e-05/3.716, allocations: 20.92 kB / 1.877 GB, free: 284.7 MB / 1.151 GB Notification: Performance of prepare postOptimizeDAE: time 8.546e-06/3.716, allocations: 3.125 kB / 1.877 GB, free: 284.7 MB / 1.151 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007636/3.717, allocations: 369.4 kB / 1.877 GB, free: 284.5 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.407e-06/3.717, allocations: 3.75 kB / 1.877 GB, free: 284.5 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001509/3.717, allocations: 51.11 kB / 1.877 GB, free: 284.5 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003636/3.717, allocations: 91.41 kB / 1.878 GB, free: 284.5 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001172/3.718, allocations: 1.513 MB / 1.879 GB, free: 283 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005423/3.719, allocations: 68.64 kB / 1.879 GB, free: 283 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.552e-05/3.719, allocations: 25.95 kB / 1.879 GB, free: 283 MB / 1.151 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (32): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.000172/3.719, allocations: 146 kB / 1.879 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.813e-05/3.719, allocations: 54.41 kB / 1.879 GB, free: 282.8 MB / 1.151 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009731/3.72, allocations: 0.4955 MB / 1.88 GB, free: 282.5 MB / 1.151 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.573e-06/3.72, allocations: 4.125 kB / 1.88 GB, free: 282.5 MB / 1.151 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.375e-06/3.72, allocations: 4 kB / 1.88 GB, free: 282.5 MB / 1.151 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007339/3.721, allocations: 0.645 MB / 1.88 GB, free: 282 MB / 1.151 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001789/3.723, allocations: 1.099 MB / 1.881 GB, free: 281.2 MB / 1.151 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.559e-06/3.723, allocations: 1.375 kB / 1.881 GB, free: 281.2 MB / 1.151 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003812/3.723, allocations: 68.89 kB / 1.882 GB, free: 281.2 MB / 1.151 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001047/3.723, allocations: 39.53 kB / 1.882 GB, free: 281.2 MB / 1.151 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.95e-05/3.723, allocations: 14.55 kB / 1.882 GB, free: 281.2 MB / 1.151 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002979/3.724, allocations: 0.59 MB / 1.882 GB, free: 280.6 MB / 1.151 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/3.724, allocations: 1.125 kB / 1.882 GB, free: 280.6 MB / 1.151 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001249/3.725, allocations: 0.8014 MB / 1.883 GB, free: 280.1 MB / 1.151 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001919/3.727, allocations: 1.418 MB / 1.884 GB, free: 279.1 MB / 1.151 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002908/3.727, allocations: 188.9 kB / 1.885 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.889e-05/3.727, allocations: 4.156 kB / 1.885 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006052/3.728, allocations: 67.41 kB / 1.885 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.441e-05/3.728, allocations: 23.91 kB / 1.885 GB, free: 278.9 MB / 1.151 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.529e-05/3.728, allocations: 22.39 kB / 1.885 GB, free: 278.9 MB / 1.151 GB Notification: Performance of sort global known variables: time 0.0003377/3.728, allocations: 289.6 kB / 1.885 GB, free: 278.7 MB / 1.151 GB Notification: Performance of remove unused functions: time 0.002606/3.731, allocations: 439 kB / 1.885 GB, free: 278.5 MB / 1.151 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * 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 (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 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.0008553/3.732, allocations: 431.4 kB / 1.886 GB, free: 278.3 MB / 1.151 GB Notification: Performance of simCode: created initialization part: time 0.001262/3.733, allocations: 0.7116 MB / 1.886 GB, free: 277.9 MB / 1.151 GB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/3.733, allocations: 0 / 1.886 GB, free: 277.9 MB / 1.151 GB Notification: Performance of simCode: created simulation system equations: time 0.000351/3.733, allocations: 236.6 kB / 1.887 GB, free: 277.8 MB / 1.151 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001206/3.735, allocations: 218.2 kB / 1.887 GB, free: 277.7 MB / 1.151 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001822/3.736, allocations: 0.7796 MB / 1.888 GB, free: 277.2 MB / 1.151 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000499/3.737, allocations: 0.9498 MB / 1.889 GB, free: 276.4 MB / 1.151 GB Notification: Performance of SimCode: time 3.81e-07/3.737, allocations: 0 / 1.889 GB, free: 276.4 MB / 1.151 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_ConservationEquation.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)