Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json 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/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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 97.8 kB / 15.36 MB, free: 0.7344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00554/0.00554, allocations: 170.1 kB / 16.27 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.429/1.429, allocations: 223.2 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.07/3.07, allocations: 473.4 MB / 0.7469 GB, free: 6.066 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003946/0.0003946, allocations: 14.41 kB / 0.9158 GB, free: 33.08 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4104/0.4108, allocations: 162.1 MB / 1.074 GB, free: 7.582 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 1.055/1.466, allocations: 189.1 MB / 1.259 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.01061/1.477, allocations: 6.926 MB / 1.266 GB, free: 6.184 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002123/1.479, allocations: 40.59 kB / 1.266 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.002058/1.481, allocations: 0.5634 MB / 1.266 GB, free: 6.172 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.007593/1.488, allocations: 2.182 MB / 1.268 GB, free: 6.074 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003914/1.492, allocations: 1.289 MB / 1.27 GB, free: 6.035 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.005195/1.498, allocations: 3.748 MB / 1.273 GB, free: 6.02 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001431/1.499, allocations: 0.7708 MB / 1.274 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002022/1.501, allocations: 0.9496 MB / 1.275 GB, free: 5.922 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00178/1.503, allocations: 0.7904 MB / 1.276 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001415/1.503, allocations: 40.69 kB / 1.276 GB, free: 5.918 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00472/1.508, allocations: 2.221 MB / 1.278 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0004918/1.508, allocations: 308 kB / 1.278 GB, free: 5.895 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.001117/1.509, allocations: 0.5463 MB / 1.279 GB, free: 21.86 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.005351/1.515, allocations: 2.396 MB / 1.281 GB, free: 21.73 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 6.792e-06/1.515, allocations: 0 / 1.281 GB, free: 21.73 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.314e-06/1.515, allocations: 0 / 1.281 GB, free: 21.73 MB / 1.014 GB Notification: Performance of Transformations before backend: time 3.493e-05/1.515, allocations: 0.875 kB / 1.281 GB, free: 21.73 MB / 1.014 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 0.004031/1.519, allocations: 1.385 MB / 1.282 GB, free: 20.9 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/1.519, allocations: 9.312 kB / 1.282 GB, free: 20.9 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003979/1.523, allocations: 0.6081 MB / 1.283 GB, free: 20.81 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003207/1.526, allocations: 0.9882 MB / 1.284 GB, free: 20.47 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001309/1.527, allocations: 314.3 kB / 1.284 GB, free: 20.45 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002351/1.528, allocations: 68.73 kB / 1.284 GB, free: 20.45 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003407/1.531, allocations: 1.151 MB / 1.285 GB, free: 20.31 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.243e-05/1.531, allocations: 3.938 kB / 1.285 GB, free: 20.31 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001061/1.531, allocations: 32.59 kB / 1.285 GB, free: 20.31 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.526e-05/1.531, allocations: 38.7 kB / 1.286 GB, free: 20.3 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003618/1.535, allocations: 1.253 MB / 1.287 GB, free: 20.27 MB / 1.014 GB Warning: The model contains alias variables with redundant start and/or conflicting 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.006898/1.542, allocations: 3.263 MB / 1.29 GB, free: 19.28 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001844/1.544, allocations: 0.703 MB / 1.291 GB, free: 19.25 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008201/1.545, allocations: 434.5 kB / 1.291 GB, free: 19.23 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001019/1.546, allocations: 1.025 MB / 1.292 GB, free: 18.1 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001017/1.547, allocations: 0.5151 MB / 1.293 GB, free: 17.99 MB / 1.014 GB Notification: Performance of pre-optimization done (n=57): time 2.314e-06/1.547, allocations: 0 / 1.293 GB, free: 17.99 MB / 1.014 GB Notification: Performance of matching and sorting (n=57): time 0.003126/1.55, allocations: 1.24 MB / 1.294 GB, free: 17.84 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.805e-05/1.55, allocations: 144.6 kB / 1.294 GB, free: 17.68 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002125/1.552, allocations: 1.225 MB / 1.295 GB, free: 17.52 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 9.968e-05/1.552, allocations: 38.05 kB / 1.295 GB, free: 17.48 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003226/1.552, allocations: 436.7 kB / 1.296 GB, free: 17.36 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001489/1.553, allocations: 189 kB / 1.296 GB, free: 17.24 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.148e-05/1.553, allocations: 48.83 kB / 1.296 GB, free: 17.23 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.000129/1.553, allocations: 335.8 kB / 1.296 GB, free: 16.92 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001374/1.554, allocations: 486.4 kB / 1.297 GB, free: 16.9 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/1.556, allocations: 0.6447 MB / 1.297 GB, free: 16.75 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002197/1.558, allocations: 0.9808 MB / 1.298 GB, free: 16.54 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.448e-06/1.558, allocations: 1 kB / 1.298 GB, free: 16.54 MB / 1.014 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003349/1.561, allocations: 1.286 MB / 1.299 GB, free: 16.37 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.391e-05/1.561, allocations: 38.06 kB / 1.299 GB, free: 16.34 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/1.561, allocations: 3.094 kB / 1.299 GB, free: 16.34 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.363e-05/1.561, allocations: 10.33 kB / 1.299 GB, free: 16.34 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001001/1.562, allocations: 213.7 kB / 1.3 GB, free: 16.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.31e-05/1.562, allocations: 10.02 kB / 1.3 GB, free: 16.32 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001797/1.564, allocations: 303.8 kB / 1.3 GB, free: 16.26 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.555e-05/1.564, allocations: 38 kB / 1.3 GB, free: 16.26 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005378/1.565, allocations: 333.2 kB / 1.3 GB, free: 16.11 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001768/1.565, allocations: 116.5 kB / 1.3 GB, free: 16.05 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002115/1.567, allocations: 1.006 MB / 1.301 GB, free: 15.93 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/1.567, allocations: 6.531 kB / 1.301 GB, free: 15.93 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.294e-06/1.567, allocations: 1.188 kB / 1.301 GB, free: 15.93 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/1.567, allocations: 3.891 kB / 1.301 GB, free: 15.93 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004545/1.572, allocations: 3.177 MB / 1.305 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.181e-05/1.572, allocations: 8.031 kB / 1.305 GB, free: 15.15 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005698/1.572, allocations: 129.2 kB / 1.305 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.206e-05/1.572, allocations: 12.72 kB / 1.305 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-05/1.573, allocations: 32 kB / 1.305 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.281e-05/1.573, allocations: 15.44 kB / 1.305 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/1.573, allocations: 11.22 kB / 1.305 GB, free: 15.14 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002083/1.575, allocations: 1.358 MB / 1.306 GB, free: 14.55 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005043/1.575, allocations: 334.7 kB / 1.306 GB, free: 14.38 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001622/1.575, allocations: 21.47 kB / 1.306 GB, free: 14.38 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00119/1.577, allocations: 130.1 kB / 1.306 GB, free: 14.37 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.857e-05/1.577, allocations: 52.39 kB / 1.307 GB, free: 14.37 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.066e-05/1.577, allocations: 44.75 kB / 1.307 GB, free: 14.36 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001562/1.578, allocations: 0.8967 MB / 1.307 GB, free: 14.24 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.9e-07/1.578, allocations: 2.906 kB / 1.307 GB, free: 14.24 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.001189/1.579, allocations: 290.2 kB / 1.308 GB, free: 14.22 MB / 1.014 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006857/1.58, allocations: 346.2 kB / 1.308 GB, free: 14.08 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.002348/1.583, allocations: 1.057 MB / 1.309 GB, free: 13.98 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.813e-06/1.583, allocations: 1.781 kB / 1.309 GB, free: 13.98 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0008726/1.583, allocations: 0.5203 MB / 1.31 GB, free: 13.91 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003776/1.587, allocations: 0.535 MB / 1.31 GB, free: 13.88 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003595/1.591, allocations: 2.372 MB / 1.312 GB, free: 12.68 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006881/1.592, allocations: 1.072 MB / 1.314 GB, free: 11.96 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001275/1.593, allocations: 275.4 kB / 1.314 GB, free: 11.9 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002456/1.593, allocations: 79.97 kB / 1.314 GB, free: 11.89 MB / 1.014 GB Notification: Performance of SimCode: time 6.91e-07/1.593, allocations: 2.844 kB / 1.314 GB, free: 11.89 MB / 1.014 GB Notification: Performance of Templates: time 0.03736/1.63, allocations: 21.14 MB / 1.334 GB, free: 5.391 MB / 1.014 GB make -j1 -f Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)