Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_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.005671/0.005671, allocations: 99.81 kB / 15.73 MB, free: 6.492 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.001305/0.001305, allocations: 201.5 kB / 16.68 MB, free: 6.375 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.378/1.378, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00246/0.00246, allocations: 278.1 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9844/0.9844, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002735/0.002735, allocations: 103.8 kB / 0.681 GB, free: 15.95 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1626/0.1654, allocations: 86.97 MB / 0.7659 GB, free: 8.91 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5277/0.6931, allocations: 194 MB / 0.9554 GB, free: 1 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01087/0.704, allocations: 6.934 MB / 0.9621 GB, free: 10.05 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001066/0.7051, allocations: 47.69 kB / 0.9622 GB, free: 10 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001647/0.7068, allocations: 0.683 MB / 0.9628 GB, free: 9.316 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.00516/0.712, allocations: 2.338 MB / 0.9651 GB, free: 6.969 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003202/0.7152, allocations: 1.44 MB / 0.9665 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.004005/0.7192, allocations: 2.988 MB / 0.9695 GB, free: 2.559 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001283/0.7205, allocations: 0.8897 MB / 0.9703 GB, free: 1.664 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002554/0.7231, allocations: 1.144 MB / 0.9714 GB, free: 0.5234 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001259/0.7243, allocations: 0.7911 MB / 0.9722 GB, free: 15.73 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001819/0.7245, allocations: 100 kB / 0.9723 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003733/0.7283, allocations: 2.066 MB / 0.9743 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003881/0.7287, allocations: 359 kB / 0.9747 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0006712/0.7294, allocations: 0.5947 MB / 0.9752 GB, free: 12.62 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.003468/0.7328, allocations: 2.429 MB / 0.9776 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.246e-06/0.7329, allocations: 0 / 0.9776 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.393e-06/0.7329, allocations: 0 / 0.9776 GB, free: 10.18 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.484e-05/0.7329, allocations: 0 / 0.9776 GB, free: 10.18 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.003371/0.7363, allocations: 1.673 MB / 0.9793 GB, free: 8.449 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.7363, allocations: 8.031 kB / 0.9793 GB, free: 8.441 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001564/0.7365, allocations: 118.4 kB / 0.9794 GB, free: 8.316 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002796/0.7393, allocations: 0.5416 MB / 0.9799 GB, free: 7.773 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002218/0.7415, allocations: 1.058 MB / 0.9809 GB, free: 6.668 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.125e-05/0.7416, allocations: 49.31 kB / 0.981 GB, free: 6.621 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.7417, allocations: 68 kB / 0.981 GB, free: 6.555 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002524/0.7442, allocations: 1.105 MB / 0.9821 GB, free: 5.426 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.7443, allocations: 7.938 kB / 0.9821 GB, free: 5.418 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.583e-05/0.7444, allocations: 24 kB / 0.9822 GB, free: 5.395 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.774e-05/0.7444, allocations: 41.28 kB / 0.9822 GB, free: 5.355 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003078/0.7475, allocations: 1.161 MB / 0.9833 GB, free: 4.195 MB / 0.7325 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.005628/0.7531, allocations: 3.168 MB / 0.9864 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001756/0.7549, allocations: 0.6864 MB / 0.9871 GB, free: 264 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008459/0.7558, allocations: 428.1 kB / 0.9875 GB, free: 15.84 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001018/0.7568, allocations: 1.021 MB / 0.9885 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001062/0.7579, allocations: 0.5143 MB / 0.989 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=57): time 4.448e-06/0.7579, allocations: 0 / 0.989 GB, free: 14.06 MB / 0.7481 GB Notification: Performance of matching and sorting (n=57): time 0.003083/0.761, allocations: 1.225 MB / 0.9902 GB, free: 12.82 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/0.7611, allocations: 148.8 kB / 0.9903 GB, free: 12.64 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002012/0.7631, allocations: 1.176 MB / 0.9915 GB, free: 11.45 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.691e-05/0.7632, allocations: 37.7 kB / 0.9915 GB, free: 11.41 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004198/0.7637, allocations: 445.8 kB / 0.992 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001915/0.7638, allocations: 198.3 kB / 0.9921 GB, free: 10.77 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003075/0.7642, allocations: 146.2 kB / 0.9923 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000164/0.7643, allocations: 326 kB / 0.9926 GB, free: 10.3 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.7656, allocations: 440.9 kB / 0.993 GB, free: 9.867 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001449/0.7671, allocations: 0.5938 MB / 0.9936 GB, free: 9.227 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002077/0.7691, allocations: 0.9223 MB / 0.9945 GB, free: 8.254 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.7692, allocations: 0 / 0.9945 GB, free: 8.254 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003094/0.7723, allocations: 1.21 MB / 0.9957 GB, free: 7.027 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 5.002e-05/0.7723, allocations: 41.7 kB / 0.9957 GB, free: 6.98 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.7723, allocations: 3.984 kB / 0.9957 GB, free: 6.977 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.228e-05/0.7724, allocations: 8 kB / 0.9957 GB, free: 6.969 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008905/0.7733, allocations: 192 kB / 0.9959 GB, free: 6.781 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.7733, allocations: 11.92 kB / 0.9959 GB, free: 6.77 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001381/0.7747, allocations: 243.1 kB / 0.9962 GB, free: 6.531 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.829e-05/0.7748, allocations: 35.97 kB / 0.9962 GB, free: 6.496 MB / 0.7481 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.0004774/0.7753, allocations: 324 kB / 0.9965 GB, free: 6.164 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002059/0.7755, allocations: 127.2 kB / 0.9966 GB, free: 6.039 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002158/0.7777, allocations: 0.993 MB / 0.9976 GB, free: 5.035 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.38e-05/0.7777, allocations: 7.984 kB / 0.9976 GB, free: 5.027 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.7777, allocations: 11.88 kB / 0.9976 GB, free: 5.016 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.7777, allocations: 0 / 0.9976 GB, free: 5.016 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005126/0.7828, allocations: 3.174 MB / 1.001 GB, free: 1.688 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.187e-06/0.7829, allocations: 8 kB / 1.001 GB, free: 1.68 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005622/0.7834, allocations: 120 kB / 1.001 GB, free: 1.562 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.352e-05/0.7835, allocations: 8 kB / 1.001 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.023e-05/0.7835, allocations: 27.98 kB / 1.001 GB, free: 1.527 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.285e-05/0.7835, allocations: 15.94 kB / 1.001 GB, free: 1.512 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/0.7836, allocations: 11.94 kB / 1.001 GB, free: 1.5 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002276/0.7858, allocations: 1.346 MB / 1.002 GB, free: 40 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005553/0.7864, allocations: 344 kB / 1.003 GB, free: 15.68 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/0.7866, allocations: 23.98 kB / 1.003 GB, free: 15.66 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001035/0.7876, allocations: 99.91 kB / 1.003 GB, free: 15.56 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.7877, allocations: 59.77 kB / 1.003 GB, free: 15.5 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.362e-05/0.7878, allocations: 39.97 kB / 1.003 GB, free: 15.46 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001662/0.7895, allocations: 0.8481 MB / 1.004 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7895, allocations: 0 / 1.004 GB, free: 14.61 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001217/0.7907, allocations: 299.7 kB / 1.004 GB, free: 14.32 MB / 0.7637 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.003256/0.794, allocations: 2.142 MB / 1.006 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002487/0.7965, allocations: 1.025 MB / 1.007 GB, free: 11.03 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 5.681e-06/0.7965, allocations: 0 / 1.007 GB, free: 11.03 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0009795/0.7975, allocations: 0.5086 MB / 1.007 GB, free: 10.51 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002668/0.8002, allocations: 0.546 MB / 1.008 GB, free: 9.969 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01669/0.8169, allocations: 9.407 MB / 1.017 GB, free: 168 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007772/0.8177, allocations: 1.069 MB / 1.018 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0009957/0.8187, allocations: 270.8 kB / 1.018 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005836/0.8193, allocations: 359.3 kB / 1.019 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of SimCode: time 4.61e-07/0.8193, allocations: 0 / 1.019 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06627/0.8856, allocations: 31.8 MB / 1.05 GB, free: 15.07 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.1/10.98, allocations: 7.062 kB / 1.05 GB, free: 15.07 MB / 0.8106 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)