Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IBPSA_latest_IBPSA_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.006368/0.006367, allocations: 101.6 kB / 15.88 MB, free: 6.312 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.001403/0.001403, allocations: 198.2 kB / 16.79 MB, free: 6.242 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.427/1.427, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6945/0.6945, allocations: 115.3 MB / 406 MB, free: 2.762 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001575/0.001576, allocations: 68.81 kB / 493 MB, free: 6.691 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1675/0.1691, allocations: 76.18 MB / 0.5558 GB, free: 10.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5465/0.7156, allocations: 191.6 MB / 0.743 GB, free: 7.152 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01143/0.7271, allocations: 6.989 MB / 0.7498 GB, free: 152 kB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001904/0.729, allocations: 43.69 kB / 0.7498 GB, free: 108 kB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.002427/0.7315, allocations: 0.5672 MB / 0.7504 GB, free: 15.53 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006414/0.7379, allocations: 2.183 MB / 0.7525 GB, free: 13.34 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003603/0.7416, allocations: 1.286 MB / 0.7538 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.004779/0.7464, allocations: 3.738 MB / 0.7574 GB, free: 8.34 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001587/0.748, allocations: 0.7913 MB / 0.7582 GB, free: 7.535 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002494/0.7505, allocations: 0.9803 MB / 0.7592 GB, free: 6.551 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002141/0.7526, allocations: 0.8101 MB / 0.76 GB, free: 5.742 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0002548/0.7529, allocations: 48 kB / 0.76 GB, free: 5.695 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004266/0.7572, allocations: 2.225 MB / 0.7622 GB, free: 3.465 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.0004753/0.7577, allocations: 314.8 kB / 0.7625 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.0009092/0.7586, allocations: 0.5361 MB / 0.763 GB, free: 2.617 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.003992/0.7626, allocations: 2.419 MB / 0.7654 GB, free: 196 kB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.499e-06/0.7626, allocations: 0 / 0.7654 GB, free: 196 kB / 0.5762 GB Notification: Performance of FrontEnd: time 9.72e-07/0.7626, allocations: 0 / 0.7654 GB, free: 196 kB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.883e-05/0.7627, allocations: 4 kB / 0.7654 GB, free: 192 kB / 0.5762 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.004368/0.7671, allocations: 1.625 MB / 0.767 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.931e-05/0.7671, allocations: 12.03 kB / 0.767 GB, free: 14.49 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002672/0.7674, allocations: 118.4 kB / 0.7671 GB, free: 14.37 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003281/0.7707, allocations: 0.5331 MB / 0.7676 GB, free: 13.83 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002394/0.7731, allocations: 0.9868 MB / 0.7686 GB, free: 12.8 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001146/0.7743, allocations: 277 kB / 0.7688 GB, free: 12.53 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.7744, allocations: 68 kB / 0.7689 GB, free: 12.46 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002645/0.7771, allocations: 1.128 MB / 0.77 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.834e-05/0.7771, allocations: 0 / 0.77 GB, free: 11.3 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001072/0.7773, allocations: 28 kB / 0.77 GB, free: 11.28 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.262e-05/0.7773, allocations: 33.3 kB / 0.7701 GB, free: 11.25 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003312/0.7806, allocations: 1.207 MB / 0.7712 GB, free: 10.04 MB / 0.5919 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.006313/0.787, allocations: 3.201 MB / 0.7744 GB, free: 6.758 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001711/0.7887, allocations: 0.6918 MB / 0.775 GB, free: 6.059 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008191/0.7895, allocations: 423.1 kB / 0.7754 GB, free: 5.645 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008809/0.7904, allocations: 1.025 MB / 0.7764 GB, free: 4.398 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001058/0.7915, allocations: 0.5143 MB / 0.7769 GB, free: 3.859 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=57): time 2.835e-06/0.7915, allocations: 0 / 0.7769 GB, free: 3.859 MB / 0.5919 GB Notification: Performance of matching and sorting (n=57): time 0.00304/0.7945, allocations: 1.217 MB / 0.7781 GB, free: 2.633 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.094e-05/0.7946, allocations: 148.8 kB / 0.7783 GB, free: 2.457 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002112/0.7968, allocations: 1.196 MB / 0.7794 GB, free: 1.246 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 9.599e-05/0.7969, allocations: 41.7 kB / 0.7795 GB, free: 1.199 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003728/0.7972, allocations: 445.5 kB / 0.7799 GB, free: 0.7617 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001947/0.7974, allocations: 185.3 kB / 0.7801 GB, free: 0.5781 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002891/0.7977, allocations: 138.1 kB / 0.7802 GB, free: 448 kB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001265/0.7979, allocations: 334 kB / 0.7805 GB, free: 108 kB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001292/0.7992, allocations: 457 kB / 0.781 GB, free: 15.66 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001418/0.8006, allocations: 0.6094 MB / 0.7816 GB, free: 15 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002072/0.8027, allocations: 0.9457 MB / 0.7825 GB, free: 14 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.8027, allocations: 0 / 0.7825 GB, free: 14 MB / 0.6075 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003291/0.806, allocations: 1.24 MB / 0.7837 GB, free: 12.74 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 4.947e-05/0.8061, allocations: 33.7 kB / 0.7837 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.8061, allocations: 6.188 kB / 0.7837 GB, free: 12.7 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.241e-05/0.8061, allocations: 12.36 kB / 0.7837 GB, free: 12.69 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001022/0.8071, allocations: 207.6 kB / 0.7839 GB, free: 12.48 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.667e-05/0.8072, allocations: 11.94 kB / 0.784 GB, free: 12.47 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001633/0.8088, allocations: 274.8 kB / 0.7842 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001006/0.8089, allocations: 35.98 kB / 0.7843 GB, free: 12.17 MB / 0.6075 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.0005178/0.8095, allocations: 326.2 kB / 0.7846 GB, free: 11.84 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002719/0.8097, allocations: 114.6 kB / 0.7847 GB, free: 11.72 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002215/0.812, allocations: 0.9897 MB / 0.7856 GB, free: 10.72 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.881e-05/0.812, allocations: 11.94 kB / 0.7856 GB, free: 10.71 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.777e-06/0.812, allocations: 7.875 kB / 0.7857 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.694e-06/0.812, allocations: 3.984 kB / 0.7857 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005167/0.8172, allocations: 3.157 MB / 0.7887 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-05/0.8172, allocations: 8.625 kB / 0.7888 GB, free: 7.379 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005994/0.8178, allocations: 123.8 kB / 0.7889 GB, free: 7.258 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.672e-05/0.8179, allocations: 16 kB / 0.7889 GB, free: 7.242 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.431e-05/0.8179, allocations: 20 kB / 0.7889 GB, free: 7.223 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-05/0.8179, allocations: 19.92 kB / 0.7889 GB, free: 7.203 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.528e-05/0.818, allocations: 11.94 kB / 0.7889 GB, free: 7.191 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00227/0.8202, allocations: 1.338 MB / 0.7902 GB, free: 5.738 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005642/0.8208, allocations: 327.4 kB / 0.7906 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002291/0.8211, allocations: 20 kB / 0.7906 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00121/0.8223, allocations: 115.9 kB / 0.7907 GB, free: 5.266 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001182/0.8224, allocations: 63.7 kB / 0.7907 GB, free: 5.203 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001016/0.8225, allocations: 43.97 kB / 0.7908 GB, free: 5.16 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.001693/0.8242, allocations: 0.8638 MB / 0.7916 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of sort global known variables: time 4.01e-07/0.8242, allocations: 0 / 0.7916 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.001635/0.8259, allocations: 299.8 kB / 0.7919 GB, free: 3.996 MB / 0.6075 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.003797/0.8297, allocations: 2.143 MB / 0.794 GB, free: 1.746 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.002553/0.8323, allocations: 1.021 MB / 0.795 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 7.203e-06/0.8323, allocations: 128 / 0.795 GB, free: 0.7109 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0009425/0.8332, allocations: 0.5163 MB / 0.7955 GB, free: 188 kB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002862/0.8361, allocations: 0.5321 MB / 0.796 GB, free: 15.67 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01837/0.8545, allocations: 10.24 MB / 0.806 GB, free: 4.875 MB / 0.6231 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006619/0.8552, allocations: 1.065 MB / 0.8071 GB, free: 3.781 MB / 0.6231 GB Notification: Performance of simCode: alias equations: time 0.0012/0.8564, allocations: 282.8 kB / 0.8073 GB, free: 3.508 MB / 0.6231 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005212/0.8569, allocations: 359.3 kB / 0.8077 GB, free: 3.156 MB / 0.6231 GB Notification: Performance of SimCode: time 1.022e-06/0.8569, allocations: 0 / 0.8077 GB, free: 3.156 MB / 0.6231 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3602/1.217, allocations: 30.56 MB / 0.8375 GB, free: 231.6 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001701/1.217, allocations: 264.5 kB / 0.8378 GB, free: 231.3 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.547/3.764, allocations: 1.969 kB / 0.8378 GB, free: 231.3 MB / 0.6387 GB (rm -f IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IBPSA_latest_IBPSA.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)