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: "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001117/0.001117, allocations: 105.4 kB / 15.7 MB, free: 24 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 189.2 kB / 16.64 MB, free: 6.594 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.429/1.429, allocations: 205.1 MB / 222.5 MB, free: 4.57 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.742/1.742, allocations: 292.3 MB / 0.549 GB, free: 12.77 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.001472/0.001472, allocations: 72.53 kB / 0.6718 GB, free: 26.36 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.24/0.2415, allocations: 114.5 MB / 0.7836 GB, free: 13.29 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.655/0.8966, allocations: 194 MB / 0.9731 GB, free: 344 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01207/0.9087, allocations: 6.885 MB / 0.9798 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002118/0.9109, allocations: 45.81 kB / 0.9799 GB, free: 15.62 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.002121/0.9131, allocations: 0.6869 MB / 0.9805 GB, free: 15.37 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.007158/0.9203, allocations: 2.291 MB / 0.9828 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.004021/0.9243, allocations: 1.434 MB / 0.9842 GB, free: 14.73 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.005164/0.9295, allocations: 2.925 MB / 0.987 GB, free: 13.65 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001603/0.9311, allocations: 0.9181 MB / 0.9879 GB, free: 13.23 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002879/0.934, allocations: 1.15 MB / 0.989 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001492/0.9356, allocations: 0.8087 MB / 0.9898 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0002125/0.9358, allocations: 102.1 kB / 0.9899 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004257/0.94, allocations: 2.056 MB / 0.9919 GB, free: 11.23 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0005458/0.9406, allocations: 372 kB / 0.9923 GB, free: 10.98 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0008835/0.9415, allocations: 0.5921 MB / 0.9929 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.004661/0.9462, allocations: 2.437 MB / 0.9952 GB, free: 9.133 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.81e-06/0.9462, allocations: 0 / 0.9952 GB, free: 9.133 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.924e-06/0.9462, allocations: 0 / 0.9952 GB, free: 9.133 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 3.675e-05/0.9463, allocations: 0 / 0.9952 GB, free: 9.133 MB / 0.7325 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.004074/0.9504, allocations: 1.659 MB / 0.9969 GB, free: 7.875 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.318e-05/0.9504, allocations: 9.812 kB / 0.9969 GB, free: 7.875 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001476/0.9506, allocations: 119.8 kB / 0.997 GB, free: 7.773 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002938/0.9535, allocations: 0.5362 MB / 0.9975 GB, free: 7.535 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002316/0.9559, allocations: 1.039 MB / 0.9985 GB, free: 6.754 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.832e-05/0.956, allocations: 56.91 kB / 0.9986 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001764/0.9562, allocations: 68.69 kB / 0.9987 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002604/0.9588, allocations: 1.13 MB / 0.9998 GB, free: 6.055 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.134e-05/0.9588, allocations: 3.938 kB / 0.9998 GB, free: 6.051 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.802e-05/0.9589, allocations: 29.16 kB / 0.9998 GB, free: 6.027 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.581e-05/0.959, allocations: 35.38 kB / 0.9998 GB, free: 6.02 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003247/0.9622, allocations: 1.24 MB / 1.001 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00619/0.9685, allocations: 2.886 MB / 1.004 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001893/0.9704, allocations: 0.7234 MB / 1.005 GB, free: 2.977 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009077/0.9713, allocations: 446.2 kB / 1.005 GB, free: 2.766 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001053/0.9724, allocations: 1.027 MB / 1.006 GB, free: 1.594 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001226/0.9736, allocations: 0.5284 MB / 1.007 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=59): time 2.785e-06/0.9737, allocations: 2.094 kB / 1.007 GB, free: 1.242 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59): time 0.003303/0.977, allocations: 1.269 MB / 1.008 GB, free: 0.6094 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.687e-05/0.9771, allocations: 121.3 kB / 1.008 GB, free: 484 kB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002316/0.9794, allocations: 1.183 MB / 1.009 GB, free: 15.82 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0001872/0.9797, allocations: 38.58 kB / 1.009 GB, free: 15.78 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003583/0.98, allocations: 433 kB / 1.009 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002465/0.9803, allocations: 199.2 kB / 1.01 GB, free: 15.24 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002892/0.9806, allocations: 147.5 kB / 1.01 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001099/0.9807, allocations: 329.7 kB / 1.01 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.9819, allocations: 460 kB / 1.011 GB, free: 14.62 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001425/0.9834, allocations: 0.5942 MB / 1.011 GB, free: 14.25 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002101/0.9855, allocations: 0.9459 MB / 1.012 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.343e-06/0.9855, allocations: 2.594 kB / 1.012 GB, free: 13.67 MB / 0.7481 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00332/0.9889, allocations: 1.219 MB / 1.013 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.908e-05/0.989, allocations: 40.97 kB / 1.013 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.194e-05/0.989, allocations: 3.031 kB / 1.013 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.989, allocations: 4.812 kB / 1.013 GB, free: 13.02 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009799/0.99, allocations: 203.5 kB / 1.013 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.306e-05/0.99, allocations: 2.75 kB / 1.013 GB, free: 12.96 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001586/0.9916, allocations: 239.3 kB / 1.014 GB, free: 12.84 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001082/0.9917, allocations: 36.97 kB / 1.014 GB, free: 12.83 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.0006026/0.9923, allocations: 333.3 kB / 1.014 GB, free: 12.57 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003151/0.9927, allocations: 114 kB / 1.014 GB, free: 12.51 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002275/0.995, allocations: 1.05 MB / 1.015 GB, free: 11.91 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.815e-05/0.995, allocations: 17.02 kB / 1.015 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.643e-06/0.995, allocations: 0 / 1.015 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.995, allocations: 2.656 kB / 1.015 GB, free: 11.9 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005096/1, allocations: 3.221 MB / 1.018 GB, free: 9.652 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/1, allocations: 11.84 kB / 1.018 GB, free: 9.648 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000606/1.001, allocations: 123.7 kB / 1.018 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/1.001, allocations: 9.938 kB / 1.019 GB, free: 9.613 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.783e-05/1.001, allocations: 28.91 kB / 1.019 GB, free: 9.602 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.32e-05/1.001, allocations: 18.41 kB / 1.019 GB, free: 9.594 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.014e-05/1.001, allocations: 17.91 kB / 1.019 GB, free: 9.586 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002213/1.003, allocations: 1.313 MB / 1.02 GB, free: 8.66 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005546/1.004, allocations: 335.9 kB / 1.02 GB, free: 8.379 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001668/1.004, allocations: 26.64 kB / 1.02 GB, free: 8.367 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001063/1.005, allocations: 97.09 kB / 1.02 GB, free: 8.332 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001104/1.005, allocations: 64.59 kB / 1.02 GB, free: 8.293 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.776e-05/1.005, allocations: 39.28 kB / 1.02 GB, free: 8.281 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001432/1.007, allocations: 0.8488 MB / 1.021 GB, free: 7.812 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.543e-06/1.007, allocations: 0 / 1.021 GB, free: 7.812 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.001292/1.008, allocations: 300.7 kB / 1.022 GB, free: 7.762 MB / 0.7481 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.003223/1.011, allocations: 2.097 MB / 1.024 GB, free: 6.199 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002594/1.014, allocations: 1.05 MB / 1.025 GB, free: 5.656 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.687e-05/1.014, allocations: 6.375 kB / 1.025 GB, free: 5.652 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.001013/1.015, allocations: 0.5398 MB / 1.025 GB, free: 5.246 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002963/1.018, allocations: 0.5512 MB / 1.026 GB, free: 4.703 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01752/1.035, allocations: 9.396 MB / 1.035 GB, free: 10.92 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006001/1.036, allocations: 1.069 MB / 1.036 GB, free: 9.82 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001124/1.037, allocations: 287.5 kB / 1.036 GB, free: 9.539 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005258/1.038, allocations: 363.3 kB / 1.036 GB, free: 9.188 MB / 0.7637 GB Notification: Performance of SimCode: time 1.252e-06/1.038, allocations: 0 / 1.036 GB, free: 9.188 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05921/1.097, allocations: 31.8 MB / 1.068 GB, free: 9.789 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.15/11.25, allocations: 3.938 kB / 1.068 GB, free: 9.785 MB / 0.795 GB (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 & python3 -m fmpy simulate --output-file Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)