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: translateModel(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 101.8 kB / 16.35 MB, free: 5.879 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.001269/0.001269, allocations: 196.4 kB / 17.29 MB, free: 5.52 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002085/0.002085, allocations: 295.6 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9198/0.9198, allocations: 169.3 MB / 0.4989 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00182/0.00182, allocations: 91.05 kB / 0.5966 GB, free: 14.49 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1584, allocations: 86.98 MB / 0.6816 GB, free: 7.5 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4552/0.6137, allocations: 194 MB / 0.871 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.009961/0.6237, allocations: 6.938 MB / 0.8778 GB, free: 5.531 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.6252, allocations: 43.69 kB / 0.8779 GB, free: 5.488 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001616/0.6268, allocations: 0.683 MB / 0.8785 GB, free: 4.801 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.005036/0.6319, allocations: 2.338 MB / 0.8808 GB, free: 2.453 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.003026/0.6349, allocations: 1.422 MB / 0.8822 GB, free: 1.051 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003779/0.6387, allocations: 2.995 MB / 0.8851 GB, free: 14.05 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001252/0.64, allocations: 0.8924 MB / 0.886 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002316/0.6423, allocations: 1.138 MB / 0.8871 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001096/0.6434, allocations: 0.8049 MB / 0.8879 GB, free: 11.22 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 0.000155/0.6436, allocations: 100 kB / 0.888 GB, free: 11.12 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003402/0.647, allocations: 2.054 MB / 0.89 GB, free: 9.066 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003469/0.6474, allocations: 378.9 kB / 0.8904 GB, free: 8.695 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0005916/0.648, allocations: 0.583 MB / 0.8909 GB, free: 8.109 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003052/0.651, allocations: 2.411 MB / 0.8933 GB, free: 5.691 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.651, allocations: 0 / 0.8933 GB, free: 5.691 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.523e-06/0.651, allocations: 4 kB / 0.8933 GB, free: 5.688 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.399e-05/0.6511, allocations: 0 / 0.8933 GB, free: 5.688 MB / 0.6544 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.003208/0.6543, allocations: 1.638 MB / 0.8949 GB, free: 3.992 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.883e-05/0.6543, allocations: 8.031 kB / 0.8949 GB, free: 3.984 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002772/0.6571, allocations: 0.5371 MB / 0.8954 GB, free: 3.445 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002224/0.6593, allocations: 1.039 MB / 0.8964 GB, free: 2.363 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.533e-05/0.6594, allocations: 57.31 kB / 0.8965 GB, free: 2.309 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001202/0.6595, allocations: 71.92 kB / 0.8966 GB, free: 2.238 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00221/0.6617, allocations: 1.097 MB / 0.8976 GB, free: 1.113 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.6618, allocations: 3.938 kB / 0.8976 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.132e-05/0.6619, allocations: 31.94 kB / 0.8977 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.025e-05/0.6619, allocations: 37.3 kB / 0.8977 GB, free: 1.043 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002839/0.6648, allocations: 1.161 MB / 0.8988 GB, free: 15.88 MB / 0.67 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.005201/0.67, allocations: 3.158 MB / 0.9019 GB, free: 12.64 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001589/0.6716, allocations: 0.6919 MB / 0.9026 GB, free: 11.94 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000749/0.6723, allocations: 415.2 kB / 0.903 GB, free: 11.54 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008509/0.6732, allocations: 1.021 MB / 0.904 GB, free: 10.29 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009483/0.6742, allocations: 0.5299 MB / 0.9045 GB, free: 9.734 MB / 0.67 GB Notification: Performance of pre-optimization done (n=57): time 2.054e-06/0.6742, allocations: 0 / 0.9045 GB, free: 9.734 MB / 0.67 GB Notification: Performance of matching and sorting (n=57): time 0.002804/0.677, allocations: 1.213 MB / 0.9057 GB, free: 8.512 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.927e-05/0.6771, allocations: 144.8 kB / 0.9058 GB, free: 8.34 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001721/0.6788, allocations: 1.18 MB / 0.907 GB, free: 7.145 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 6.729e-05/0.6789, allocations: 37.7 kB / 0.907 GB, free: 7.102 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.00034/0.6792, allocations: 437.4 kB / 0.9074 GB, free: 6.672 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001733/0.6794, allocations: 189.2 kB / 0.9076 GB, free: 6.484 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002761/0.6797, allocations: 158 kB / 0.9078 GB, free: 6.324 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001345/0.6798, allocations: 322 kB / 0.9081 GB, free: 6.004 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001155/0.681, allocations: 436.9 kB / 0.9085 GB, free: 5.578 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001317/0.6823, allocations: 0.5938 MB / 0.9091 GB, free: 4.938 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00196/0.6843, allocations: 0.934 MB / 0.91 GB, free: 3.953 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.6843, allocations: 0 / 0.91 GB, free: 3.953 MB / 0.67 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002894/0.6872, allocations: 1.197 MB / 0.9111 GB, free: 2.738 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 4.584e-05/0.6873, allocations: 36.05 kB / 0.9112 GB, free: 2.699 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.327e-06/0.6873, allocations: 4 kB / 0.9112 GB, free: 2.695 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.165e-05/0.6873, allocations: 8 kB / 0.9112 GB, free: 2.688 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009548/0.6883, allocations: 188 kB / 0.9114 GB, free: 2.504 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.6883, allocations: 19.86 kB / 0.9114 GB, free: 2.484 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.6897, allocations: 238.9 kB / 0.9116 GB, free: 2.25 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.246e-05/0.6898, allocations: 35.97 kB / 0.9116 GB, free: 2.215 MB / 0.67 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.0004807/0.6903, allocations: 327.8 kB / 0.912 GB, free: 1.879 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001772/0.6905, allocations: 115.1 kB / 0.9121 GB, free: 1.766 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002044/0.6925, allocations: 0.9936 MB / 0.913 GB, free: 0.7617 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.292e-05/0.6926, allocations: 8 kB / 0.913 GB, free: 0.7539 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.655e-06/0.6926, allocations: 3.938 kB / 0.9131 GB, free: 0.75 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.327e-06/0.6926, allocations: 12.02 kB / 0.9131 GB, free: 0.7383 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004554/0.6972, allocations: 3.162 MB / 0.9162 GB, free: 13.42 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.6972, allocations: 8 kB / 0.9162 GB, free: 13.41 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005693/0.6977, allocations: 120 kB / 0.9163 GB, free: 13.3 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.088e-05/0.6978, allocations: 8 kB / 0.9163 GB, free: 13.29 MB / 0.6856 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.449e-05/0.6978, allocations: 27.98 kB / 0.9163 GB, free: 13.26 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.368e-06/0.6978, allocations: 11.94 kB / 0.9163 GB, free: 13.25 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.915e-06/0.6979, allocations: 11.94 kB / 0.9163 GB, free: 13.24 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001946/0.6998, allocations: 1.349 MB / 0.9176 GB, free: 11.77 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005012/0.7003, allocations: 331.3 kB / 0.918 GB, free: 11.43 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001509/0.7005, allocations: 27.98 kB / 0.918 GB, free: 11.4 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.7015, allocations: 99.91 kB / 0.9181 GB, free: 11.3 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.228e-05/0.7016, allocations: 59.75 kB / 0.9181 GB, free: 11.25 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.543e-05/0.7017, allocations: 47.97 kB / 0.9182 GB, free: 11.2 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001316/0.7031, allocations: 0.852 MB / 0.919 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7031, allocations: 0 / 0.919 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.0009394/0.704, allocations: 299.9 kB / 0.9193 GB, free: 10.05 MB / 0.6856 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.0006145/0.7046, allocations: 338.7 kB / 0.9196 GB, free: 9.719 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.00215/0.7068, allocations: 1.021 MB / 0.9206 GB, free: 8.684 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 3.386e-06/0.7068, allocations: 4 kB / 0.9206 GB, free: 8.68 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0008631/0.7077, allocations: 0.5069 MB / 0.9211 GB, free: 8.164 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002262/0.7099, allocations: 0.5451 MB / 0.9217 GB, free: 7.629 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003116/0.7131, allocations: 2.027 MB / 0.9236 GB, free: 5.473 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005839/0.7137, allocations: 1.077 MB / 0.9247 GB, free: 4.367 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0007885/0.7145, allocations: 272.9 kB / 0.9249 GB, free: 4.102 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002313/0.7147, allocations: 79.41 kB / 0.925 GB, free: 4.023 MB / 0.6856 GB Notification: Performance of SimCode: time 3.31e-07/0.7147, allocations: 0 / 0.925 GB, free: 4.023 MB / 0.6856 GB Notification: Performance of Templates: time 0.03362/0.7483, allocations: 22.02 MB / 0.9465 GB, free: 14.27 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation -abortSlowSimulation -alarm=480 -s gbode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)