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.004971/0.004972, allocations: 101.5 kB / 15.73 MB, free: 6.031 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.001151/0.001151, allocations: 188.6 kB / 16.67 MB, free: 5.969 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.232/1.232, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002121/0.002121, allocations: 290.5 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8814/0.8814, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001562, allocations: 100.8 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1361/0.1377, allocations: 86.98 MB / 0.7659 GB, free: 8.938 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.498/0.6357, allocations: 194 MB / 0.9554 GB, free: 1.016 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01486/0.6506, allocations: 6.933 MB / 0.9621 GB, free: 10.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001064/0.6517, allocations: 43.69 kB / 0.9622 GB, free: 10.03 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001498/0.6532, allocations: 0.6908 MB / 0.9628 GB, free: 9.332 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004565/0.6578, allocations: 2.345 MB / 0.9651 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002787/0.6606, allocations: 1.427 MB / 0.9665 GB, free: 5.578 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003147/0.6637, allocations: 2.994 MB / 0.9695 GB, free: 2.574 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001089/0.6648, allocations: 0.8874 MB / 0.9703 GB, free: 1.68 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0021/0.667, allocations: 1.151 MB / 0.9714 GB, free: 0.5312 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009966/0.668, allocations: 0.7916 MB / 0.9722 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.6681, allocations: 100 kB / 0.9723 GB, free: 15.64 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003363/0.6715, allocations: 2.062 MB / 0.9743 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0003285/0.6718, allocations: 362.9 kB / 0.9747 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0005679/0.6724, allocations: 0.5908 MB / 0.9753 GB, free: 12.63 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002969/0.6754, allocations: 2.423 MB / 0.9776 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 2.786e-06/0.6754, allocations: 0 / 0.9776 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.002e-06/0.6754, allocations: 0 / 0.9776 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.683e-05/0.6754, allocations: 0 / 0.9776 GB, free: 10.2 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.003186/0.6786, allocations: 1.629 MB / 0.9792 GB, free: 8.512 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.6787, allocations: 8.031 kB / 0.9792 GB, free: 8.504 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001386/0.6788, allocations: 118.4 kB / 0.9793 GB, free: 8.379 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002821/0.6816, allocations: 0.537 MB / 0.9799 GB, free: 7.84 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002225/0.6839, allocations: 1.044 MB / 0.9809 GB, free: 6.75 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.173e-05/0.684, allocations: 53.31 kB / 0.9809 GB, free: 6.699 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001217/0.6841, allocations: 68 kB / 0.981 GB, free: 6.633 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002245/0.6863, allocations: 1.112 MB / 0.9821 GB, free: 5.496 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.735e-05/0.6864, allocations: 3.938 kB / 0.9821 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.253e-05/0.6865, allocations: 28 kB / 0.9821 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.86e-05/0.6865, allocations: 29.3 kB / 0.9821 GB, free: 5.438 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002695/0.6892, allocations: 1.164 MB / 0.9833 GB, free: 4.273 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.005436/0.6946, allocations: 3.162 MB / 0.9864 GB, free: 1.031 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001538/0.6962, allocations: 0.6807 MB / 0.987 GB, free: 352 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007469/0.697, allocations: 432.2 kB / 0.9874 GB, free: 15.92 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008517/0.6978, allocations: 1.017 MB / 0.9884 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009642/0.6988, allocations: 0.5104 MB / 0.9889 GB, free: 14.15 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=57): time 2.504e-06/0.6988, allocations: 4 kB / 0.9889 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of matching and sorting (n=57): time 0.002765/0.7016, allocations: 1.225 MB / 0.9901 GB, free: 12.91 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.348e-05/0.7017, allocations: 148.7 kB / 0.9903 GB, free: 12.73 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001832/0.7035, allocations: 1.172 MB / 0.9914 GB, free: 11.54 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 8.417e-05/0.7036, allocations: 41.7 kB / 0.9915 GB, free: 11.5 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003794/0.704, allocations: 449.4 kB / 0.9919 GB, free: 11.05 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001732/0.7042, allocations: 185.3 kB / 0.9921 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002658/0.7045, allocations: 146 kB / 0.9922 GB, free: 10.72 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.7046, allocations: 330 kB / 0.9925 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0011/0.7057, allocations: 436.9 kB / 0.9929 GB, free: 9.961 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001291/0.707, allocations: 0.5938 MB / 0.9935 GB, free: 9.32 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001958/0.709, allocations: 0.9301 MB / 0.9944 GB, free: 8.34 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.709, allocations: 4 kB / 0.9944 GB, free: 8.336 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00283/0.7118, allocations: 1.198 MB / 0.9956 GB, free: 7.121 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.122e-05/0.7119, allocations: 36.36 kB / 0.9956 GB, free: 7.082 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.7119, allocations: 4 kB / 0.9956 GB, free: 7.078 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.892e-05/0.7119, allocations: 4 kB / 0.9956 GB, free: 7.074 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009241/0.7129, allocations: 192 kB / 0.9958 GB, free: 6.887 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.47e-05/0.7129, allocations: 11.92 kB / 0.9958 GB, free: 6.875 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.7143, allocations: 242.9 kB / 0.9961 GB, free: 6.637 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.212e-05/0.7144, allocations: 39.97 kB / 0.9961 GB, free: 6.598 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.0004645/0.7148, allocations: 324 kB / 0.9964 GB, free: 6.266 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002014/0.7151, allocations: 114.6 kB / 0.9965 GB, free: 6.152 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001944/0.717, allocations: 0.9915 MB / 0.9975 GB, free: 5.152 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-05/0.717, allocations: 15.98 kB / 0.9975 GB, free: 5.137 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.665e-06/0.717, allocations: 7.938 kB / 0.9975 GB, free: 5.129 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.563e-06/0.7171, allocations: 0 / 0.9975 GB, free: 5.129 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004545/0.7216, allocations: 3.165 MB / 1.001 GB, free: 1.809 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.065e-05/0.7216, allocations: 8 kB / 1.001 GB, free: 1.801 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006076/0.7222, allocations: 120.1 kB / 1.001 GB, free: 1.684 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-05/0.7223, allocations: 12 kB / 1.001 GB, free: 1.672 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.188e-05/0.7223, allocations: 23.98 kB / 1.001 GB, free: 1.648 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.038e-05/0.7223, allocations: 15.94 kB / 1.001 GB, free: 1.633 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.238e-06/0.7224, allocations: 15.92 kB / 1.001 GB, free: 1.617 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001943/0.7243, allocations: 1.345 MB / 1.002 GB, free: 160 kB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004831/0.7248, allocations: 327.5 kB / 1.002 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001753/0.725, allocations: 23.98 kB / 1.002 GB, free: 15.79 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001061/0.726, allocations: 99.91 kB / 1.003 GB, free: 15.69 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.955e-05/0.7262, allocations: 59.75 kB / 1.003 GB, free: 15.63 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.405e-05/0.7262, allocations: 43.92 kB / 1.003 GB, free: 15.59 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001329/0.7276, allocations: 0.8443 MB / 1.003 GB, free: 14.74 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.352e-06/0.7276, allocations: 4 kB / 1.003 GB, free: 14.73 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.000936/0.7285, allocations: 307.7 kB / 1.004 GB, free: 14.43 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.002752/0.7313, allocations: 2.121 MB / 1.006 GB, free: 12.21 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002094/0.7334, allocations: 1.025 MB / 1.007 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.7334, allocations: 0 / 1.007 GB, free: 11.17 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0008642/0.7343, allocations: 0.5125 MB / 1.007 GB, free: 10.64 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002368/0.7367, allocations: 0.5489 MB / 1.008 GB, free: 10.1 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01536/0.752, allocations: 9.367 MB / 1.017 GB, free: 340 kB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000771/0.7528, allocations: 1.073 MB / 1.018 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0009709/0.7538, allocations: 271.3 kB / 1.018 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005452/0.7544, allocations: 366.8 kB / 1.019 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of SimCode: time 7.61e-07/0.7544, allocations: 0 / 1.019 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05748/0.8119, allocations: 32.26 MB / 1.05 GB, free: 14.79 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.165/9.977, allocations: 4.062 kB / 1.05 GB, free: 14.78 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)