Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.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_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_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.001427/0.001427, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001697/0.001697, allocations: 191 kB / 16.14 MB, free: 6.711 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.457/1.457, allocations: 205.1 MB / 222 MB, free: 4.754 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.706/1.706, allocations: 292.2 MB / 0.5484 GB, free: 13.68 MB / 462.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.0013/0.0013, allocations: 63.31 kB / 0.6708 GB, free: 26.45 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2178/0.2191, allocations: 114.5 MB / 0.7827 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6634/0.8825, allocations: 191.7 MB / 0.9698 GB, free: 0.9688 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.009563/0.8921, allocations: 6.949 MB / 0.9766 GB, free: 344 kB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001526/0.8937, allocations: 44.81 kB / 0.9766 GB, free: 320 kB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001692/0.8954, allocations: 0.5663 MB / 0.9772 GB, free: 140 kB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.005824/0.9013, allocations: 2.137 MB / 0.9793 GB, free: 15.69 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003558/0.9048, allocations: 1.29 MB / 0.9805 GB, free: 15.62 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.005253/0.9101, allocations: 3.682 MB / 0.9841 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001285/0.9114, allocations: 0.7629 MB / 0.9849 GB, free: 15.11 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002545/0.914, allocations: 0.977 MB / 0.9858 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001758/0.9157, allocations: 0.8148 MB / 0.9866 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001937/0.916, allocations: 47.94 kB / 0.9867 GB, free: 14.95 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005256/0.9212, allocations: 2.232 MB / 0.9889 GB, free: 14.74 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0005872/0.9218, allocations: 322.8 kB / 0.9892 GB, free: 14.69 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0008723/0.9227, allocations: 0.5422 MB / 0.9897 GB, free: 14.5 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.004482/0.9272, allocations: 2.445 MB / 0.9921 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.9272, allocations: 0 / 0.9921 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of FrontEnd: time 9.82e-07/0.9272, allocations: 0 / 0.9921 GB, free: 13.92 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 1.615e-05/0.9273, allocations: 0 / 0.9921 GB, free: 13.92 MB / 0.7481 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.00419/0.9315, allocations: 1.654 MB / 0.9937 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 5.47e-05/0.9315, allocations: 10.66 kB / 0.9937 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003185/0.9347, allocations: 0.5383 MB / 0.9942 GB, free: 12.61 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002186/0.9369, allocations: 0.9933 MB / 0.9952 GB, free: 12.06 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00117/0.9381, allocations: 277.4 kB / 0.9955 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001182/0.9382, allocations: 67.19 kB / 0.9955 GB, free: 11.97 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002683/0.9409, allocations: 1.15 MB / 0.9967 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.034e-05/0.941, allocations: 3.938 kB / 0.9967 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.402e-05/0.9411, allocations: 26.09 kB / 0.9967 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.893e-05/0.9411, allocations: 34.69 kB / 0.9967 GB, free: 11.62 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003295/0.9444, allocations: 1.273 MB / 0.998 GB, free: 11.27 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005853/0.9503, allocations: 2.934 MB / 1.001 GB, free: 9.191 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001792/0.9521, allocations: 0.718 MB / 1.002 GB, free: 8.816 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008075/0.9529, allocations: 440.2 kB / 1.002 GB, free: 8.605 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008802/0.9538, allocations: 1.023 MB / 1.003 GB, free: 7.438 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001123/0.9549, allocations: 0.5306 MB / 1.003 GB, free: 7.09 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=59): time 2.324e-06/0.955, allocations: 0 / 1.003 GB, free: 7.09 MB / 0.7481 GB Notification: Performance of matching and sorting (n=59): time 0.003112/0.9581, allocations: 1.272 MB / 1.005 GB, free: 6.453 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.186e-05/0.9581, allocations: 118.9 kB / 1.005 GB, free: 6.316 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002026/0.9602, allocations: 1.201 MB / 1.006 GB, free: 5.664 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.000103/0.9603, allocations: 38.73 kB / 1.006 GB, free: 5.625 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004007/0.9607, allocations: 430 kB / 1.006 GB, free: 5.254 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001909/0.9609, allocations: 195.8 kB / 1.007 GB, free: 5.09 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000317/0.9612, allocations: 150.8 kB / 1.007 GB, free: 5 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.00015/0.9614, allocations: 341.8 kB / 1.007 GB, free: 4.668 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.9628, allocations: 471.4 kB / 1.008 GB, free: 4.449 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001466/0.9642, allocations: 0.6197 MB / 1.008 GB, free: 4.07 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00213/0.9664, allocations: 0.9647 MB / 1.009 GB, free: 3.484 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.9664, allocations: 3.312 kB / 1.009 GB, free: 3.484 MB / 0.7481 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.003257/0.9696, allocations: 1.262 MB / 1.01 GB, free: 2.859 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.498e-05/0.9697, allocations: 41.69 kB / 1.01 GB, free: 2.82 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.136e-06/0.9697, allocations: 2.625 kB / 1.01 GB, free: 2.82 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.922e-05/0.9698, allocations: 7.469 kB / 1.01 GB, free: 2.82 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000997/0.9708, allocations: 206 kB / 1.011 GB, free: 2.754 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.108e-05/0.9708, allocations: 4.875 kB / 1.011 GB, free: 2.754 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001619/0.9724, allocations: 273.1 kB / 1.011 GB, free: 2.621 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001051/0.9725, allocations: 41.19 kB / 1.011 GB, free: 2.605 MB / 0.7481 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.0005935/0.9731, allocations: 330.8 kB / 1.011 GB, free: 2.348 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.9734, allocations: 116.5 kB / 1.011 GB, free: 2.289 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002278/0.9756, allocations: 1.055 MB / 1.012 GB, free: 1.691 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.828e-05/0.9757, allocations: 9.75 kB / 1.012 GB, free: 1.688 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.494e-06/0.9757, allocations: 0 / 1.012 GB, free: 1.688 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.551e-05/0.9757, allocations: 10.41 kB / 1.012 GB, free: 1.68 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005234/0.9809, allocations: 3.216 MB / 1.016 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.981, allocations: 4.844 kB / 1.016 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006168/0.9816, allocations: 122.7 kB / 1.016 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.412e-05/0.9816, allocations: 14.06 kB / 1.016 GB, free: 15.4 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.678e-05/0.9817, allocations: 27.08 kB / 1.016 GB, free: 15.39 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.589e-05/0.9817, allocations: 13.16 kB / 1.016 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.816e-05/0.9817, allocations: 14.06 kB / 1.016 GB, free: 15.38 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002193/0.9839, allocations: 1.325 MB / 1.017 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005035/0.9845, allocations: 329.7 kB / 1.017 GB, free: 14.16 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001604/0.9846, allocations: 24.2 kB / 1.017 GB, free: 14.15 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001067/0.9857, allocations: 112.2 kB / 1.017 GB, free: 14.11 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001112/0.9858, allocations: 60.61 kB / 1.017 GB, free: 14.07 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.836e-05/0.9859, allocations: 39.75 kB / 1.018 GB, free: 14.06 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001592/0.9875, allocations: 0.8712 MB / 1.018 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.2e-07/0.9875, allocations: 0 / 1.018 GB, free: 13.58 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001123/0.9886, allocations: 302.6 kB / 1.019 GB, free: 13.53 MB / 0.7637 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.0007414/0.9894, allocations: 359.8 kB / 1.019 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002399/0.9918, allocations: 1.048 MB / 1.02 GB, free: 12.81 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.039e-06/0.9918, allocations: 0 / 1.02 GB, free: 12.81 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008936/0.9927, allocations: 0.5426 MB / 1.021 GB, free: 12.5 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002557/0.9953, allocations: 0.5333 MB / 1.021 GB, free: 12.25 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003689/0.999, allocations: 2.376 MB / 1.023 GB, free: 10.56 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006064/0.9996, allocations: 1.065 MB / 1.024 GB, free: 9.695 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001164/1.001, allocations: 284.3 kB / 1.025 GB, free: 9.566 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002549/1.001, allocations: 84.97 kB / 1.025 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of SimCode: time 6.92e-07/1.001, allocations: 0 / 1.025 GB, free: 9.547 MB / 0.7637 GB Notification: Performance of Templates: time 0.03222/1.033, allocations: 21.51 MB / 1.046 GB, free: 8.617 MB / 0.7794 GB make -j1 -f Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & ./Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)