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.005326/0.005326, allocations: 100.2 kB / 15.73 MB, free: 6.004 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.001281/0.001281, allocations: 193.1 kB / 16.67 MB, free: 5.93 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.376/1.376, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002604/0.002604, allocations: 278.8 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.214/1.214, allocations: 178.5 MB / 0.5074 GB, free: 12.64 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00438/0.00438, allocations: 95.84 kB / 0.6943 GB, free: 15.24 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4506/0.455, allocations: 89.13 MB / 0.7813 GB, free: 1.18 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2224/0.6774, allocations: 194 MB / 0.9708 GB, free: 6.094 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01118/0.6887, allocations: 6.945 MB / 0.9776 GB, free: 15.13 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001484/0.6902, allocations: 47.69 kB / 0.9776 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001741/0.692, allocations: 0.6947 MB / 0.9783 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.005788/0.6978, allocations: 2.338 MB / 0.9806 GB, free: 12.04 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.003312/0.7011, allocations: 1.438 MB / 0.982 GB, free: 10.62 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.00413/0.7053, allocations: 2.99 MB / 0.9849 GB, free: 7.621 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001428/0.7067, allocations: 0.8864 MB / 0.9858 GB, free: 6.723 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.7096, allocations: 1.137 MB / 0.9869 GB, free: 5.586 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001549/0.7112, allocations: 0.8067 MB / 0.9877 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0001815/0.7114, allocations: 103.9 kB / 0.9878 GB, free: 4.684 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00398/0.7154, allocations: 2.05 MB / 0.9898 GB, free: 2.629 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0004431/0.7158, allocations: 370.9 kB / 0.9901 GB, free: 2.266 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0007427/0.7166, allocations: 0.583 MB / 0.9907 GB, free: 1.68 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.4168/1.133, allocations: 2.4 MB / 0.993 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 7.113e-06/1.133, allocations: 0 / 0.993 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.124e-06/1.133, allocations: 0.5 kB / 0.993 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 5.276e-05/1.134, allocations: 0 / 0.993 GB, free: 10.54 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.003633/1.137, allocations: 1.668 MB / 0.9947 GB, free: 9.637 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/1.137, allocations: 9.438 kB / 0.9947 GB, free: 9.637 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001467/1.137, allocations: 114.7 kB / 0.9948 GB, free: 9.598 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003067/1.14, allocations: 0.5382 MB / 0.9953 GB, free: 9.531 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002678/1.143, allocations: 1.047 MB / 0.9963 GB, free: 9.188 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.672e-05/1.143, allocations: 62.25 kB / 0.9964 GB, free: 9.188 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001557/1.143, allocations: 63.94 kB / 0.9965 GB, free: 9.188 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002478/1.146, allocations: 1.107 MB / 0.9975 GB, free: 9.078 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.036e-05/1.146, allocations: 1.031 kB / 0.9975 GB, free: 9.078 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.612e-05/1.146, allocations: 30.02 kB / 0.9976 GB, free: 9.078 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-05/1.146, allocations: 32.47 kB / 0.9976 GB, free: 9.078 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003078/1.149, allocations: 1.163 MB / 0.9987 GB, free: 9.07 MB / 0.7481 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.005522/1.155, allocations: 3.163 MB / 1.002 GB, free: 8.145 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001668/1.156, allocations: 0.6848 MB / 1.002 GB, free: 8.117 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007947/1.157, allocations: 425.6 kB / 1.003 GB, free: 8.105 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006688/1.158, allocations: 1.024 MB / 1.004 GB, free: 6.98 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001093/1.159, allocations: 0.5172 MB / 1.004 GB, free: 6.871 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=57): time 2.555e-06/1.159, allocations: 0 / 1.004 GB, free: 6.871 MB / 0.7481 GB Notification: Performance of matching and sorting (n=57): time 0.003373/1.162, allocations: 1.232 MB / 1.006 GB, free: 6.734 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/1.162, allocations: 140.4 kB / 1.006 GB, free: 6.578 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002079/1.165, allocations: 1.18 MB / 1.007 GB, free: 6.43 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 9.658e-05/1.165, allocations: 38.08 kB / 1.007 GB, free: 6.398 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002723/1.165, allocations: 446.4 kB / 1.007 GB, free: 6.266 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001385/1.165, allocations: 202.2 kB / 1.008 GB, free: 6.137 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002719/1.165, allocations: 144.4 kB / 1.008 GB, free: 6.117 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 5.446e-05/1.165, allocations: 332.4 kB / 1.008 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001205/1.167, allocations: 444.1 kB / 1.008 GB, free: 5.809 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001373/1.168, allocations: 0.5957 MB / 1.009 GB, free: 5.68 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001975/1.17, allocations: 0.9256 MB / 1.01 GB, free: 5.492 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.24e-06/1.17, allocations: 1.719 kB / 1.01 GB, free: 5.492 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003172/1.173, allocations: 1.199 MB / 1.011 GB, free: 5.363 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.108e-05/1.173, allocations: 37.77 kB / 1.011 GB, free: 5.332 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.157e-05/1.173, allocations: 3.156 kB / 1.011 GB, free: 5.332 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.296e-05/1.173, allocations: 6.844 kB / 1.011 GB, free: 5.332 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009439/1.174, allocations: 189.3 kB / 1.011 GB, free: 5.332 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.602e-05/1.174, allocations: 9.312 kB / 1.011 GB, free: 5.332 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001651/1.176, allocations: 244.6 kB / 1.012 GB, free: 5.285 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001022/1.176, allocations: 39 kB / 1.012 GB, free: 5.285 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.0005544/1.177, allocations: 333.6 kB / 1.012 GB, free: 5.129 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002417/1.177, allocations: 121.7 kB / 1.012 GB, free: 5.066 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002062/1.179, allocations: 0.9889 MB / 1.013 GB, free: 4.965 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-05/1.179, allocations: 9.625 kB / 1.013 GB, free: 4.965 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.835e-06/1.179, allocations: 4.375 kB / 1.013 GB, free: 4.965 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.125e-06/1.179, allocations: 4.359 kB / 1.013 GB, free: 4.965 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004583/1.184, allocations: 3.161 MB / 1.016 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/1.184, allocations: 7.156 kB / 1.016 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005989/1.184, allocations: 119.8 kB / 1.016 GB, free: 4.207 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-05/1.184, allocations: 14.69 kB / 1.016 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.863e-05/1.184, allocations: 26.88 kB / 1.016 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-05/1.184, allocations: 13.5 kB / 1.016 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.788e-06/1.184, allocations: 14.8 kB / 1.016 GB, free: 4.203 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002292/1.187, allocations: 1.35 MB / 1.018 GB, free: 19.64 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005381/1.187, allocations: 335 kB / 1.018 GB, free: 19.47 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001589/1.187, allocations: 29.41 kB / 1.018 GB, free: 19.47 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001039/1.188, allocations: 99.64 kB / 1.018 GB, free: 19.47 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001048/1.188, allocations: 58.86 kB / 1.018 GB, free: 19.47 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.176e-05/1.189, allocations: 40.06 kB / 1.018 GB, free: 19.47 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001361/1.19, allocations: 0.8455 MB / 1.019 GB, free: 19.36 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/1.19, allocations: 0 / 1.019 GB, free: 19.36 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001076/1.191, allocations: 305.8 kB / 1.019 GB, free: 19.33 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.002842/1.194, allocations: 2.13 MB / 1.021 GB, free: 18.23 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002219/1.196, allocations: 1.014 MB / 1.022 GB, free: 18.16 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.227e-05/1.196, allocations: 4.281 kB / 1.022 GB, free: 18.16 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0009307/1.197, allocations: 0.5101 MB / 1.023 GB, free: 18.09 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002838/1.2, allocations: 0.5566 MB / 1.023 GB, free: 18.01 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01414/1.214, allocations: 9.418 MB / 1.033 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006073/1.215, allocations: 1.072 MB / 1.034 GB, free: 14.44 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001006/1.216, allocations: 272 kB / 1.034 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004424/1.216, allocations: 360.3 kB / 1.034 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of SimCode: time 6.01e-07/1.216, allocations: 0 / 1.034 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05926/1.275, allocations: 31.8 MB / 1.065 GB, free: 5.168 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.23/11.5, allocations: 6.297 kB / 1.065 GB, free: 5.164 MB / 0.7637 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)