Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_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.001013/0.001013, allocations: 92 kB / 15.36 MB, free: 0.7383 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.007772/0.007772, allocations: 169.9 kB / 16.26 MB, free: 6.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.472/1.472, allocations: 205.4 MB / 222.4 MB, free: 5.562 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.555/1.555, allocations: 252 MB / 0.5105 GB, free: 4.637 MB / 414.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.000531/0.0005311, allocations: 23.98 kB / 0.6249 GB, free: 0.7031 MB / 0.5137 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4359/0.4365, allocations: 106.3 MB / 0.7287 GB, free: 11.26 MB / 0.545 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.625/1.062, allocations: 189.3 MB / 0.9136 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.009356/1.071, allocations: 6.987 MB / 0.9204 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/1.072, allocations: 35.19 kB / 0.9205 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001628/1.074, allocations: 0.5685 MB / 0.921 GB, free: 2.078 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00564/1.08, allocations: 2.192 MB / 0.9232 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003364/1.083, allocations: 1.291 MB / 0.9244 GB, free: 1.922 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.006368/1.089, allocations: 3.701 MB / 0.9281 GB, free: 1.902 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001951/1.091, allocations: 0.7487 MB / 0.9288 GB, free: 1.809 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002786/1.094, allocations: 0.9325 MB / 0.9297 GB, free: 1.805 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003296/1.097, allocations: 0.8595 MB / 0.9305 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.000597/1.098, allocations: 42.03 kB / 0.9306 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005964/1.104, allocations: 2.222 MB / 0.9327 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0009449/1.105, allocations: 311 kB / 0.933 GB, free: 1.773 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001694/1.107, allocations: 0.5518 MB / 0.9336 GB, free: 1.742 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.005754/1.112, allocations: 2.408 MB / 0.9359 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/1.112, allocations: 0 / 0.9359 GB, free: 1.617 MB / 0.7169 GB Notification: Performance of FrontEnd: time 3.867e-06/1.113, allocations: 7.234 kB / 0.9359 GB, free: 1.613 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 5.777e-05/1.113, allocations: 0 / 0.9359 GB, free: 1.613 MB / 0.7169 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.004748/1.117, allocations: 1.412 MB / 0.9373 GB, free: 16.78 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/1.117, allocations: 11.69 kB / 0.9373 GB, free: 16.78 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003243/1.121, allocations: 0.6051 MB / 0.9379 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002744/1.123, allocations: 1.002 MB / 0.9389 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001218/1.125, allocations: 319.4 kB / 0.9392 GB, free: 16.32 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002171/1.125, allocations: 68.06 kB / 0.9393 GB, free: 16.32 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002777/1.128, allocations: 1.177 MB / 0.9404 GB, free: 16.22 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.998e-05/1.128, allocations: 0 / 0.9404 GB, free: 16.22 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.928e-05/1.128, allocations: 30.05 kB / 0.9404 GB, free: 16.22 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.03e-05/1.128, allocations: 35.98 kB / 0.9405 GB, free: 16.22 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003187/1.131, allocations: 1.329 MB / 0.9418 GB, free: 16.18 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00552/1.137, allocations: 3.072 MB / 0.9448 GB, free: 15.41 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001743/1.138, allocations: 0.7397 MB / 0.9455 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007805/1.139, allocations: 457.6 kB / 0.9459 GB, free: 15.36 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009732/1.14, allocations: 1.025 MB / 0.9469 GB, free: 14.23 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009892/1.141, allocations: 0.5372 MB / 0.9475 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=59): time 2.484e-06/1.141, allocations: 0 / 0.9475 GB, free: 14.12 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59): time 0.003028/1.144, allocations: 1.289 MB / 0.9487 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.435e-05/1.144, allocations: 116.4 kB / 0.9488 GB, free: 13.84 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001967/1.146, allocations: 1.218 MB / 0.95 GB, free: 13.68 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.000102/1.146, allocations: 38.52 kB / 0.9501 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003051/1.147, allocations: 429.1 kB / 0.9505 GB, free: 13.52 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001793/1.147, allocations: 199.2 kB / 0.9507 GB, free: 13.4 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001057/1.147, allocations: 55.05 kB / 0.9507 GB, free: 13.38 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001328/1.147, allocations: 332.6 kB / 0.951 GB, free: 13.07 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001319/1.148, allocations: 0.4974 MB / 0.9515 GB, free: 13.05 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001455/1.15, allocations: 0.6414 MB / 0.9521 GB, free: 12.93 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002104/1.152, allocations: 0.9989 MB / 0.9531 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.119e-06/1.152, allocations: 0 / 0.9531 GB, free: 12.73 MB / 0.7325 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003448/1.156, allocations: 1.31 MB / 0.9544 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 5.254e-05/1.156, allocations: 40.94 kB / 0.9544 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.314e-05/1.156, allocations: 2.875 kB / 0.9544 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/1.156, allocations: 7.859 kB / 0.9544 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009733/1.157, allocations: 218 kB / 0.9547 GB, free: 12.53 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.367e-05/1.157, allocations: 8.297 kB / 0.9547 GB, free: 12.52 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00181/1.158, allocations: 301 kB / 0.9549 GB, free: 12.46 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.328e-05/1.159, allocations: 42.88 kB / 0.955 GB, free: 12.46 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (69): * Single equations (assignments): 68 * 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.0005579/1.159, allocations: 329.2 kB / 0.9553 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001948/1.159, allocations: 119.2 kB / 0.9554 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002321/1.162, allocations: 1.073 MB / 0.9565 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.572e-05/1.162, allocations: 7.438 kB / 0.9565 GB, free: 12.13 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/1.162, allocations: 4 kB / 0.9565 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/1.162, allocations: 5.547 kB / 0.9565 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005237/1.167, allocations: 3.238 MB / 0.9596 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.326e-05/1.167, allocations: 10.38 kB / 0.9597 GB, free: 11.4 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005899/1.168, allocations: 128 kB / 0.9598 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-05/1.168, allocations: 11.94 kB / 0.9598 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/1.168, allocations: 27.27 kB / 0.9598 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.328e-05/1.168, allocations: 17.66 kB / 0.9598 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.684e-06/1.168, allocations: 10.91 kB / 0.9598 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002344/1.17, allocations: 1.337 MB / 0.9611 GB, free: 10.87 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005803/1.171, allocations: 333.3 kB / 0.9615 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001586/1.171, allocations: 25.89 kB / 0.9615 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001143/1.172, allocations: 128.1 kB / 0.9616 GB, free: 10.7 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001179/1.172, allocations: 59.23 kB / 0.9617 GB, free: 10.69 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.763e-05/1.172, allocations: 49.09 kB / 0.9617 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.00164/1.174, allocations: 0.8855 MB / 0.9626 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of sort global known variables: time 3.01e-07/1.174, allocations: 0 / 0.9626 GB, free: 10.56 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001221/1.175, allocations: 305 kB / 0.9629 GB, free: 10.54 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (58): * Single equations (assignments): 53 * 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.0007606/1.176, allocations: 338.8 kB / 0.9632 GB, free: 10.41 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00268/1.179, allocations: 1.081 MB / 0.9642 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.223e-06/1.179, allocations: 2.156 kB / 0.9642 GB, free: 10.32 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0009799/1.18, allocations: 0.5454 MB / 0.9648 GB, free: 10.24 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004115/1.184, allocations: 0.5414 MB / 0.9653 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003841/1.188, allocations: 2.388 MB / 0.9676 GB, free: 9.004 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006442/1.188, allocations: 1.071 MB / 0.9687 GB, free: 8.289 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001243/1.189, allocations: 284 kB / 0.969 GB, free: 8.227 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002568/1.19, allocations: 83.62 kB / 0.969 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of SimCode: time 6.31e-07/1.19, allocations: 0 / 0.969 GB, free: 8.219 MB / 0.7325 GB Notification: Performance of Templates: time 0.0359/1.226, allocations: 21.38 MB / 0.9899 GB, free: 13.27 MB / 0.7481 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile Environment - environmentSimulation: (rm -f Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) Environment - environmentSimulation: