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.001056/0.001056, allocations: 108 kB / 15.61 MB, free: 152 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.00111/0.00111, allocations: 197 kB / 16.53 MB, free: 6.664 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.314/1.314, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002148/0.002149, allocations: 283 kB / 290.7 MB, free: 2 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9093/0.9093, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 103 kB / 0.5953 GB, free: 27.89 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1409/0.1428, allocations: 86.98 MB / 0.6803 GB, free: 0.6172 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4716/0.6144, allocations: 194 MB / 0.8697 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.009735/0.6242, allocations: 6.929 MB / 0.8765 GB, free: 7.859 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001264/0.6255, allocations: 44.81 kB / 0.8765 GB, free: 7.84 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001523/0.627, allocations: 0.6924 MB / 0.8772 GB, free: 7.246 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004789/0.6318, allocations: 2.338 MB / 0.8795 GB, free: 5.457 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002827/0.6347, allocations: 1.412 MB / 0.8809 GB, free: 4.41 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003034/0.6377, allocations: 2.978 MB / 0.8838 GB, free: 2.688 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001016/0.6387, allocations: 0.8943 MB / 0.8847 GB, free: 2.133 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001971/0.6407, allocations: 1.13 MB / 0.8858 GB, free: 1.48 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00119/0.6419, allocations: 0.7962 MB / 0.8865 GB, free: 1.004 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.000174/0.6421, allocations: 97.59 kB / 0.8866 GB, free: 1.004 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003632/0.6457, allocations: 2.061 MB / 0.8886 GB, free: 15.84 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.00035/0.6461, allocations: 365.7 kB / 0.889 GB, free: 15.59 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.000603/0.6467, allocations: 0.59 MB / 0.8896 GB, free: 15.18 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.00314/0.6499, allocations: 2.381 MB / 0.8919 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 6.523e-06/0.6499, allocations: 3.984 kB / 0.8919 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.382e-06/0.6499, allocations: 0 / 0.8919 GB, free: 13.64 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.483e-05/0.6499, allocations: 0 / 0.8919 GB, free: 13.64 MB / 0.6075 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.003014/0.6529, allocations: 1.634 MB / 0.8935 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.658e-05/0.653, allocations: 7.562 kB / 0.8935 GB, free: 12.38 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001296/0.6531, allocations: 123.4 kB / 0.8936 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002855/0.656, allocations: 0.5335 MB / 0.8941 GB, free: 12.04 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.6578, allocations: 0.9822 MB / 0.8951 GB, free: 11.26 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001156/0.659, allocations: 280.4 kB / 0.8954 GB, free: 11.15 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000109/0.6591, allocations: 67.34 kB / 0.8954 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002341/0.6615, allocations: 1.132 MB / 0.8965 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.523e-05/0.6615, allocations: 3.938 kB / 0.8965 GB, free: 9.945 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.343e-05/0.6616, allocations: 24 kB / 0.8966 GB, free: 9.922 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.619e-05/0.6616, allocations: 33.3 kB / 0.8966 GB, free: 9.891 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003195/0.6648, allocations: 1.203 MB / 0.8978 GB, free: 8.688 MB / 0.6075 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.005397/0.6702, allocations: 3.214 MB / 0.9009 GB, free: 5.395 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001667/0.6719, allocations: 0.6846 MB / 0.9016 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007991/0.6727, allocations: 424 kB / 0.902 GB, free: 4.289 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008335/0.6736, allocations: 1.029 MB / 0.903 GB, free: 3.035 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009654/0.6745, allocations: 0.5104 MB / 0.9035 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.495e-06/0.6746, allocations: 0 / 0.9035 GB, free: 2.5 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.002939/0.6775, allocations: 1.225 MB / 0.9047 GB, free: 1.262 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.552e-05/0.6776, allocations: 144.8 kB / 0.9048 GB, free: 1.09 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001972/0.6796, allocations: 1.196 MB / 0.906 GB, free: 15.88 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 8.589e-05/0.6797, allocations: 41.7 kB / 0.906 GB, free: 15.83 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003568/0.68, allocations: 441.3 kB / 0.9065 GB, free: 15.4 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001619/0.6802, allocations: 193.2 kB / 0.9066 GB, free: 15.21 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002727/0.6805, allocations: 142.1 kB / 0.9068 GB, free: 15.06 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001218/0.6806, allocations: 330 kB / 0.9071 GB, free: 14.73 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0014/0.682, allocations: 460.9 kB / 0.9075 GB, free: 14.29 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001499/0.6835, allocations: 0.6132 MB / 0.9081 GB, free: 13.62 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002155/0.6857, allocations: 0.9418 MB / 0.909 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.039e-06/0.6857, allocations: 0 / 0.909 GB, free: 12.63 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003295/0.689, allocations: 1.236 MB / 0.9103 GB, free: 11.38 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.674e-05/0.6891, allocations: 41.7 kB / 0.9103 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.448e-06/0.6891, allocations: 0 / 0.9103 GB, free: 11.33 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.084e-05/0.6891, allocations: 8 kB / 0.9103 GB, free: 11.32 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009783/0.6901, allocations: 203.9 kB / 0.9105 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.599e-05/0.6901, allocations: 8 kB / 0.9105 GB, free: 11.11 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001608/0.6917, allocations: 270.9 kB / 0.9108 GB, free: 10.85 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.848e-05/0.6918, allocations: 35.98 kB / 0.9108 GB, free: 10.81 MB / 0.6231 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.0004401/0.6923, allocations: 334.2 kB / 0.9111 GB, free: 10.47 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002144/0.6925, allocations: 114.6 kB / 0.9112 GB, free: 10.36 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002079/0.6946, allocations: 0.9953 MB / 0.9122 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.6946, allocations: 11.94 kB / 0.9122 GB, free: 9.34 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.6946, allocations: 7.938 kB / 0.9122 GB, free: 9.332 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.6946, allocations: 4.5 kB / 0.9122 GB, free: 9.328 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004572/0.6992, allocations: 3.161 MB / 0.9153 GB, free: 6.008 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.015e-05/0.6992, allocations: 4 kB / 0.9153 GB, free: 6.004 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005929/0.6998, allocations: 124.1 kB / 0.9154 GB, free: 5.883 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.452e-05/0.6999, allocations: 15.98 kB / 0.9154 GB, free: 5.867 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.885e-05/0.6999, allocations: 19.98 kB / 0.9155 GB, free: 5.848 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.199e-05/0.6999, allocations: 19.92 kB / 0.9155 GB, free: 5.828 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.783e-06/0.6999, allocations: 8 kB / 0.9155 GB, free: 5.82 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002049/0.702, allocations: 1.353 MB / 0.9168 GB, free: 4.352 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004482/0.7025, allocations: 331.4 kB / 0.9171 GB, free: 4.008 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001695/0.7026, allocations: 20 kB / 0.9171 GB, free: 3.988 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001145/0.7038, allocations: 115.9 kB / 0.9173 GB, free: 3.875 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001016/0.7039, allocations: 63.7 kB / 0.9173 GB, free: 3.812 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.203e-05/0.704, allocations: 39.97 kB / 0.9174 GB, free: 3.773 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001482/0.7055, allocations: 0.8716 MB / 0.9182 GB, free: 2.895 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.9e-07/0.7055, allocations: 0 / 0.9182 GB, free: 2.895 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.0009623/0.7064, allocations: 299.8 kB / 0.9185 GB, free: 2.602 MB / 0.6231 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.002815/0.7093, allocations: 2.122 MB / 0.9206 GB, free: 380 kB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002472/0.7118, allocations: 1.049 MB / 0.9216 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.861e-06/0.7118, allocations: 4.125 kB / 0.9216 GB, free: 15.3 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009006/0.7127, allocations: 0.5124 MB / 0.9221 GB, free: 14.78 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002558/0.7152, allocations: 0.5554 MB / 0.9226 GB, free: 14.25 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01614/0.7314, allocations: 9.974 MB / 0.9324 GB, free: 3.723 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000596/0.732, allocations: 1.073 MB / 0.9334 GB, free: 2.621 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001052/0.7331, allocations: 278.6 kB / 0.9337 GB, free: 2.348 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004811/0.7336, allocations: 355.3 kB / 0.934 GB, free: 2 MB / 0.6387 GB Notification: Performance of SimCode: time 2.074e-06/0.7336, allocations: 0 / 0.934 GB, free: 2 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05311/0.7867, allocations: 31.58 MB / 0.9649 GB, free: 2.852 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.627/8.413, allocations: 12.8 kB / 0.9649 GB, free: 2.84 MB / 0.67 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)