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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8251/0.8251, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 178.6 kB / 187.3 MB, free: 11.89 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.618/1.618, allocations: 221.3 MB / 441.4 MB, free: 4.621 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000911/0.0009111, allocations: 92.94 kB / 0.5124 GB, free: 24.25 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001824/0.001824, allocations: 271.2 kB / 0.5939 GB, free: 7.98 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.072e-05/4.085e-05, allocations: 4 kB / 0.6834 GB, free: 12.27 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4984/0.4984, allocations: 82.77 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7962/1.295, allocations: 360.3 MB / 1.116 GB, free: 13.65 MB / 0.6511 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002648/1.295, allocations: 92.2 kB / 1.116 GB, free: 13.61 MB / 0.6511 GB Notification: Performance of FrontEnd - DAE generated: time 0.9613/2.256, allocations: 259 MB / 1.369 GB, free: 93.7 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.645e-06/2.256, allocations: 0 / 1.369 GB, free: 93.7 MB / 0.698 GB Notification: Performance of Transformations before backend: time 0.0001147/2.257, allocations: 19.98 kB / 1.369 GB, free: 93.68 MB / 0.698 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.002951/2.259, allocations: 0.9174 MB / 1.37 GB, free: 92.71 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 6.435e-05/2.26, allocations: 16.02 kB / 1.37 GB, free: 92.7 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001255/2.261, allocations: 171.1 kB / 1.37 GB, free: 92.53 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02428/2.285, allocations: 12.04 MB / 1.382 GB, free: 80.32 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003408/2.286, allocations: 92.72 kB / 1.382 GB, free: 80.22 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001825/2.286, allocations: 40 kB / 1.382 GB, free: 80.18 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008674/2.287, allocations: 454.3 kB / 1.383 GB, free: 79.72 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.291e-05/2.287, allocations: 3.938 kB / 1.383 GB, free: 79.71 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.965e-05/2.287, allocations: 23.97 kB / 1.383 GB, free: 79.69 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.16e-05/2.287, allocations: 16.78 kB / 1.383 GB, free: 79.67 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005955/2.287, allocations: 315 kB / 1.383 GB, free: 79.37 MB / 0.698 GB Warning: The model contains alias variables with conflicting start and/or nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003228/2.291, allocations: 2.264 MB / 1.385 GB, free: 76.89 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004888/2.291, allocations: 271.1 kB / 1.385 GB, free: 76.62 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002481/2.291, allocations: 177.6 kB / 1.386 GB, free: 76.45 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002729/2.292, allocations: 348.7 kB / 1.386 GB, free: 76.03 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003618/2.292, allocations: 263.8 kB / 1.386 GB, free: 75.75 MB / 0.698 GB Notification: Performance of pre-optimization done (n=33): time 2.956e-06/2.292, allocations: 4 kB / 1.386 GB, free: 75.75 MB / 0.698 GB Notification: Performance of matching and sorting (n=33): time 0.001009/2.293, allocations: 498.2 kB / 1.387 GB, free: 75.25 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/2.293, allocations: 85.11 kB / 1.387 GB, free: 75.15 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005112/2.294, allocations: 420.9 kB / 1.387 GB, free: 74.73 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 5.509e-05/2.294, allocations: 33.7 kB / 1.387 GB, free: 74.69 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001638/2.294, allocations: 280.4 kB / 1.387 GB, free: 74.41 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 8.362e-05/2.294, allocations: 110.4 kB / 1.388 GB, free: 74.3 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.966e-05/2.294, allocations: 12 kB / 1.388 GB, free: 74.29 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 8.756e-05/2.294, allocations: 362.8 kB / 1.388 GB, free: 73.93 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000185/2.294, allocations: 128 kB / 1.388 GB, free: 73.8 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002233/2.295, allocations: 227 kB / 1.388 GB, free: 73.54 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002291/2.295, allocations: 173.8 kB / 1.388 GB, free: 73.36 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/2.295, allocations: 0 / 1.388 GB, free: 73.36 MB / 0.698 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008313/2.296, allocations: 0.5264 MB / 1.389 GB, free: 72.82 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001516/2.296, allocations: 0.6453 MB / 1.39 GB, free: 72.12 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/2.296, allocations: 8 kB / 1.39 GB, free: 72.11 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002243/2.296, allocations: 50.58 kB / 1.39 GB, free: 72.06 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003576/2.296, allocations: 79.89 kB / 1.39 GB, free: 71.98 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003882/2.297, allocations: 0.6031 MB / 1.39 GB, free: 71.36 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006508/2.297, allocations: 83.59 kB / 1.39 GB, free: 71.27 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.022e-05/2.298, allocations: 27.92 kB / 1.39 GB, free: 71.25 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/2.298, allocations: 4 kB / 1.39 GB, free: 71.24 MB / 0.698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007261/2.298, allocations: 485.8 kB / 1.391 GB, free: 70.76 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/2.298, allocations: 0 / 1.391 GB, free: 70.76 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.000148/2.298, allocations: 52.77 kB / 1.391 GB, free: 70.7 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003389/2.299, allocations: 88.06 kB / 1.391 GB, free: 70.62 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001245/2.3, allocations: 1.619 MB / 1.393 GB, free: 68.85 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000597/2.301, allocations: 79.88 kB / 1.393 GB, free: 68.77 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.023e-05/2.301, allocations: 31.98 kB / 1.393 GB, free: 68.74 MB / 0.698 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.0001693/2.301, allocations: 154.6 kB / 1.393 GB, free: 68.57 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/2.301, allocations: 59.28 kB / 1.393 GB, free: 68.52 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009124/2.302, allocations: 0.5722 MB / 1.393 GB, free: 67.93 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/2.302, allocations: 4 kB / 1.393 GB, free: 67.93 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/2.302, allocations: 0 / 1.393 GB, free: 67.93 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006795/2.303, allocations: 0.7236 MB / 1.394 GB, free: 67.12 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001717/2.304, allocations: 1.229 MB / 1.395 GB, free: 65.82 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.628e-06/2.304, allocations: 4 kB / 1.395 GB, free: 65.82 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003385/2.305, allocations: 68.05 kB / 1.395 GB, free: 65.75 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001198/2.305, allocations: 48.75 kB / 1.395 GB, free: 65.7 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.719e-05/2.305, allocations: 12 kB / 1.395 GB, free: 65.69 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000255/2.305, allocations: 0.5758 MB / 1.396 GB, free: 65.09 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/2.305, allocations: 3.953 kB / 1.396 GB, free: 65.08 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001027/2.306, allocations: 0.8832 MB / 1.397 GB, free: 64.14 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00026/2.306, allocations: 192.4 kB / 1.397 GB, free: 63.94 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.61e-05/2.307, allocations: 8 kB / 1.397 GB, free: 63.93 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005933/2.307, allocations: 63.94 kB / 1.397 GB, free: 63.87 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.197e-05/2.307, allocations: 27.86 kB / 1.397 GB, free: 63.84 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-05/2.307, allocations: 23.98 kB / 1.397 GB, free: 63.82 MB / 0.698 GB Notification: Performance of sorting global known variables: time 0.0003411/2.308, allocations: 337.5 kB / 1.398 GB, free: 63.49 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.3e-07/2.308, allocations: 4 kB / 1.398 GB, free: 63.48 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.001352/2.309, allocations: 379.4 kB / 1.398 GB, free: 63.11 MB / 0.698 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.001/2.31, allocations: 434 kB / 1.398 GB, free: 62.69 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 0.001318/2.311, allocations: 0.8515 MB / 1.399 GB, free: 61.8 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/2.311, allocations: 0.75 kB / 1.399 GB, free: 61.8 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 0.0003354/2.312, allocations: 282.7 kB / 1.399 GB, free: 61.52 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001279/2.313, allocations: 222.7 kB / 1.4 GB, free: 61.29 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001725/2.315, allocations: 0.7827 MB / 1.4 GB, free: 60.48 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004356/2.315, allocations: 0.8911 MB / 1.401 GB, free: 59.56 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 0.0008492/2.316, allocations: 164.2 kB / 1.401 GB, free: 59.4 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000133/2.316, allocations: 43.42 kB / 1.401 GB, free: 59.36 MB / 0.698 GB Notification: Performance of SimCode: time 1.313e-06/2.316, allocations: 0 / 1.401 GB, free: 59.36 MB / 0.698 GB Notification: Performance of Templates: time 0.02345/2.34, allocations: 13.28 MB / 1.414 GB, free: 46.17 MB / 0.698 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)