Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.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.Interfaces.Examples.ConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_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/BuildingSystems 2.0.0-master/package.mo): time 0.6913/0.6913, allocations: 141.8 MB / 149.1 MB, free: 3.742 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.001008/0.001008, allocations: 188.7 kB / 181.9 MB, free: 15.47 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.279/1.279, allocations: 221.3 MB / 436 MB, free: 8.617 MB / 331 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009319/0.0009319, allocations: 107.3 kB / 0.507 GB, free: 24.34 MB / 395 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001723/0.001723, allocations: 282.2 kB / 0.5884 GB, free: 11.68 MB / 443 MB Notification: Performance of FrontEnd - loaded program: time 0.1679/0.1697, allocations: 89.64 MB / 0.676 GB, free: 1.961 MB / 0.5108 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.5225, allocations: 82.76 MB / 0.7568 GB, free: 112.3 MB / 0.5264 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.5544/1.077, allocations: 359.6 MB / 1.108 GB, free: 5.477 MB / 0.6358 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002269/1.077, allocations: 91.56 kB / 1.108 GB, free: 5.434 MB / 0.6358 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 0.7965/1.874, allocations: 259.5 MB / 1.361 GB, free: 103.8 MB / 0.6983 GB Notification: Performance of prepare preOptimizeDAE: time 3.488e-05/1.874, allocations: 20.94 kB / 1.361 GB, free: 103.8 MB / 0.6983 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009368/1.875, allocations: 187 kB / 1.362 GB, free: 103.6 MB / 0.6983 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02639/1.901, allocations: 12.07 MB / 1.373 GB, free: 91.38 MB / 0.6983 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003349/1.902, allocations: 84.72 kB / 1.374 GB, free: 91.3 MB / 0.6983 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001277/1.902, allocations: 24 kB / 1.374 GB, free: 91.27 MB / 0.6983 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000675/1.902, allocations: 293.5 kB / 1.374 GB, free: 90.98 MB / 0.6983 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000705/1.903, allocations: 412.5 kB / 1.374 GB, free: 90.55 MB / 0.6983 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.031e-05/1.903, allocations: 0 / 1.374 GB, free: 90.55 MB / 0.6983 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.095e-05/1.903, allocations: 0 / 1.374 GB, free: 90.55 MB / 0.6983 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.807e-05/1.903, allocations: 20.64 kB / 1.374 GB, free: 90.54 MB / 0.6983 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002948/1.906, allocations: 2.222 MB / 1.376 GB, free: 88.12 MB / 0.6983 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004225/1.907, allocations: 258.9 kB / 1.377 GB, free: 87.86 MB / 0.6983 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002211/1.907, allocations: 184.9 kB / 1.377 GB, free: 87.68 MB / 0.6983 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000242/1.907, allocations: 344.7 kB / 1.377 GB, free: 87.27 MB / 0.6983 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002846/1.907, allocations: 238.8 kB / 1.377 GB, free: 87.02 MB / 0.6983 GB Notification: Performance of pre-optimization done (n=33): time 2.435e-06/1.907, allocations: 0 / 1.377 GB, free: 87.02 MB / 0.6983 GB Notification: Performance of matching and sorting (n=33): time 0.001093/1.909, allocations: 442 kB / 1.378 GB, free: 86.58 MB / 0.6983 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.077e-05/1.909, allocations: 85.11 kB / 1.378 GB, free: 86.48 MB / 0.6983 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003947/1.909, allocations: 373.3 kB / 1.378 GB, free: 86.11 MB / 0.6983 GB Notification: Performance of collectPreVariables (initialization): time 5.232e-05/1.909, allocations: 25.7 kB / 1.378 GB, free: 86.07 MB / 0.6983 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001181/1.909, allocations: 212.2 kB / 1.378 GB, free: 85.86 MB / 0.6983 GB Notification: Performance of collectInitialBindings (initialization): time 8.21e-05/1.909, allocations: 102.4 kB / 1.379 GB, free: 85.76 MB / 0.6983 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/1.909, allocations: 4 kB / 1.379 GB, free: 85.76 MB / 0.6983 GB Notification: Performance of setup shared object (initialization): time 9.234e-05/1.909, allocations: 358.8 kB / 1.379 GB, free: 85.4 MB / 0.6983 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001777/1.91, allocations: 123.9 kB / 1.379 GB, free: 85.28 MB / 0.6983 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000218/1.91, allocations: 223.1 kB / 1.379 GB, free: 85.02 MB / 0.6983 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003952/1.91, allocations: 176.2 kB / 1.379 GB, free: 84.85 MB / 0.6983 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/1.91, allocations: 3.938 kB / 1.379 GB, free: 84.84 MB / 0.6983 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008925/1.911, allocations: 461.7 kB / 1.38 GB, free: 84.38 MB / 0.6983 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001548/1.911, allocations: 0.6193 MB / 1.38 GB, free: 83.72 MB / 0.6983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/1.911, allocations: 3.984 kB / 1.38 GB, free: 83.71 MB / 0.6983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001888/1.911, allocations: 48.84 kB / 1.381 GB, free: 83.66 MB / 0.6983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003841/1.912, allocations: 87.88 kB / 1.381 GB, free: 83.58 MB / 0.6983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004074/1.912, allocations: 0.6224 MB / 1.381 GB, free: 82.93 MB / 0.6983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006215/1.913, allocations: 67.7 kB / 1.381 GB, free: 82.86 MB / 0.6983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.676e-05/1.913, allocations: 24.05 kB / 1.381 GB, free: 82.84 MB / 0.6983 GB Notification: Performance of prepare postOptimizeDAE: time 7.454e-06/1.913, allocations: 4 kB / 1.381 GB, free: 82.84 MB / 0.6983 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000727/1.914, allocations: 376.5 kB / 1.382 GB, free: 82.46 MB / 0.6983 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.147e-06/1.914, allocations: 4 kB / 1.382 GB, free: 82.46 MB / 0.6983 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001544/1.914, allocations: 44.83 kB / 1.382 GB, free: 82.41 MB / 0.6983 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003868/1.914, allocations: 88.06 kB / 1.382 GB, free: 82.33 MB / 0.6983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001148/1.915, allocations: 1.505 MB / 1.383 GB, free: 80.7 MB / 0.6983 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005646/1.916, allocations: 63.77 kB / 1.383 GB, free: 80.64 MB / 0.6983 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.312e-05/1.916, allocations: 20.17 kB / 1.383 GB, free: 80.62 MB / 0.6983 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.0001649/1.916, allocations: 150.7 kB / 1.383 GB, free: 80.46 MB / 0.6983 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-05/1.916, allocations: 55.34 kB / 1.384 GB, free: 80.4 MB / 0.6983 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009654/1.917, allocations: 0.4924 MB / 1.384 GB, free: 79.9 MB / 0.6983 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.454e-06/1.917, allocations: 0 / 1.384 GB, free: 79.9 MB / 0.6983 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/1.917, allocations: 4 kB / 1.384 GB, free: 79.89 MB / 0.6983 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007523/1.918, allocations: 0.6533 MB / 1.385 GB, free: 79.17 MB / 0.6983 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001756/1.92, allocations: 1.091 MB / 1.386 GB, free: 78.02 MB / 0.6983 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.739e-06/1.92, allocations: 4 kB / 1.386 GB, free: 78.02 MB / 0.6983 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003647/1.92, allocations: 72.05 kB / 1.386 GB, free: 77.95 MB / 0.6983 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.76e-05/1.92, allocations: 36.84 kB / 1.386 GB, free: 77.91 MB / 0.6983 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.524e-05/1.92, allocations: 11.97 kB / 1.386 GB, free: 77.9 MB / 0.6983 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002524/1.921, allocations: 0.5874 MB / 1.386 GB, free: 77.29 MB / 0.6983 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/1.921, allocations: 3.906 kB / 1.386 GB, free: 77.28 MB / 0.6983 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001048/1.922, allocations: 0.8075 MB / 1.387 GB, free: 76.43 MB / 0.6983 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001471/1.923, allocations: 1.409 MB / 1.389 GB, free: 74.96 MB / 0.6983 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002992/1.924, allocations: 184.3 kB / 1.389 GB, free: 74.77 MB / 0.6983 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001007/1.924, allocations: 4 kB / 1.389 GB, free: 74.76 MB / 0.6983 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006122/1.924, allocations: 71.84 kB / 1.389 GB, free: 74.69 MB / 0.6983 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.801e-05/1.924, allocations: 19.97 kB / 1.389 GB, free: 74.67 MB / 0.6983 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.729e-05/1.924, allocations: 19.98 kB / 1.389 GB, free: 74.65 MB / 0.6983 GB Notification: Performance of sort global known variables: time 0.0002779/1.925, allocations: 294.9 kB / 1.389 GB, free: 74.37 MB / 0.6983 GB Notification: Performance of remove unused functions: time 0.002697/1.927, allocations: 447.2 kB / 1.39 GB, free: 73.93 MB / 0.6983 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.00098/1.928, allocations: 427.7 kB / 1.39 GB, free: 73.52 MB / 0.6983 GB Notification: Performance of simCode: created initialization part: time 0.001202/1.93, allocations: 0.7076 MB / 1.391 GB, free: 72.79 MB / 0.6983 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/1.93, allocations: 0 / 1.391 GB, free: 72.79 MB / 0.6983 GB Notification: Performance of simCode: created simulation system equations: time 0.0003018/1.93, allocations: 241.5 kB / 1.391 GB, free: 72.54 MB / 0.6983 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001131/1.931, allocations: 212 kB / 1.391 GB, free: 72.34 MB / 0.6983 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001692/1.933, allocations: 0.7785 MB / 1.392 GB, free: 71.53 MB / 0.6983 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004099/1.933, allocations: 0.9562 MB / 1.393 GB, free: 70.55 MB / 0.6983 GB Notification: Performance of SimCode: time 3.7e-07/1.933, allocations: 0 / 1.393 GB, free: 70.55 MB / 0.6983 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_ConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)