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.001247/0.001247, allocations: 102 kB / 16.4 MB, free: 6.453 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.001277/0.001277, allocations: 189.5 kB / 17.34 MB, free: 5.746 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.244/1.244, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002133/0.002133, allocations: 285.3 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9174/0.9174, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001789/0.001789, allocations: 103.8 kB / 0.6821 GB, free: 6.922 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4267/0.4285, allocations: 86.98 MB / 0.7671 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1895/0.6181, allocations: 194 MB / 0.9565 GB, free: 1.148 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.3994/1.017, allocations: 6.926 MB / 0.9633 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001244/1.019, allocations: 44.41 kB / 0.9633 GB, free: 2.008 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.00149/1.02, allocations: 0.6893 MB / 0.964 GB, free: 2 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.005472/1.026, allocations: 2.339 MB / 0.9663 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003192/1.029, allocations: 1.42 MB / 0.9677 GB, free: 1.875 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.00376/1.033, allocations: 2.994 MB / 0.9706 GB, free: 1.859 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001118/1.034, allocations: 0.8889 MB / 0.9715 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00205/1.036, allocations: 1.148 MB / 0.9726 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009931/1.037, allocations: 0.796 MB / 0.9733 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001337/1.037, allocations: 101.6 kB / 0.9734 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003424/1.041, allocations: 2.059 MB / 0.9755 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003111/1.041, allocations: 369.7 kB / 0.9758 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0005304/1.041, allocations: 0.5799 MB / 0.9764 GB, free: 1.746 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.002741/1.044, allocations: 2.424 MB / 0.9787 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/1.044, allocations: 0.7188 kB / 0.9787 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.904e-06/1.044, allocations: 2.969 kB / 0.9787 GB, free: 1.621 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.78e-05/1.044, allocations: 3.938 kB / 0.9788 GB, free: 1.621 MB / 0.7169 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.002874/1.047, allocations: 1.634 MB / 0.9803 GB, free: 16.76 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 2.862e-05/1.047, allocations: 8.781 kB / 0.9804 GB, free: 16.76 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002704/1.05, allocations: 0.5371 MB / 0.9809 GB, free: 16.7 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001762/1.052, allocations: 1.039 MB / 0.9819 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.291e-05/1.052, allocations: 54.06 kB / 0.9819 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.661e-05/1.052, allocations: 71.95 kB / 0.982 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00189/1.054, allocations: 1.111 MB / 0.9831 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.637e-05/1.054, allocations: 2.438 kB / 0.9831 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.828e-05/1.054, allocations: 24.98 kB / 0.9831 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.97e-05/1.054, allocations: 34.8 kB / 0.9832 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002431/1.056, allocations: 1.162 MB / 0.9843 GB, free: 16.24 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.004581/1.061, allocations: 3.16 MB / 0.9874 GB, free: 15.31 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001357/1.062, allocations: 0.6959 MB / 0.9881 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000622/1.063, allocations: 423.8 kB / 0.9885 GB, free: 15.27 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008109/1.064, allocations: 1.017 MB / 0.9895 GB, free: 14.14 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008079/1.064, allocations: 0.5192 MB / 0.99 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=57): time 2.194e-06/1.064, allocations: 0 / 0.99 GB, free: 14.04 MB / 0.7325 GB Notification: Performance of matching and sorting (n=57): time 0.002409/1.067, allocations: 1.217 MB / 0.9911 GB, free: 13.91 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/1.067, allocations: 144.3 kB / 0.9913 GB, free: 13.75 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001438/1.068, allocations: 1.177 MB / 0.9924 GB, free: 13.6 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.712e-05/1.068, allocations: 41.98 kB / 0.9925 GB, free: 13.57 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002588/1.069, allocations: 435.5 kB / 0.9929 GB, free: 13.44 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000113/1.069, allocations: 191.4 kB / 0.9931 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002247/1.069, allocations: 142.9 kB / 0.9932 GB, free: 13.3 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001083/1.069, allocations: 337.8 kB / 0.9935 GB, free: 12.99 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009924/1.07, allocations: 439.4 kB / 0.994 GB, free: 12.98 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/1.071, allocations: 0.5915 MB / 0.9945 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001629/1.073, allocations: 0.9277 MB / 0.9954 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/1.073, allocations: 3.438 kB / 0.9954 GB, free: 12.68 MB / 0.7325 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002468/1.075, allocations: 1.203 MB / 0.9966 GB, free: 12.54 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 4.347e-05/1.075, allocations: 37.98 kB / 0.9966 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/1.076, allocations: 2.531 kB / 0.9967 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.935e-05/1.076, allocations: 9.156 kB / 0.9967 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008633/1.076, allocations: 191.4 kB / 0.9968 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.518e-06/1.076, allocations: 6.562 kB / 0.9968 GB, free: 12.51 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00132/1.078, allocations: 236.1 kB / 0.9971 GB, free: 12.47 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.062e-05/1.078, allocations: 44.14 kB / 0.9971 GB, free: 12.46 MB / 0.7325 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.0003869/1.078, allocations: 340 kB / 0.9974 GB, free: 12.31 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001686/1.078, allocations: 115.2 kB / 0.9976 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001714/1.08, allocations: 0.9904 MB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/1.08, allocations: 8.594 kB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/1.08, allocations: 1 kB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.066e-06/1.08, allocations: 5.516 kB / 0.9985 GB, free: 12.16 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003805/1.084, allocations: 3.161 MB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.615e-06/1.084, allocations: 4.719 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005212/1.085, allocations: 117 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.079e-05/1.085, allocations: 13.84 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.797e-05/1.085, allocations: 29.42 kB / 1.002 GB, free: 11.39 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.248e-06/1.085, allocations: 20.91 kB / 1.002 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.462e-06/1.085, allocations: 11.59 kB / 1.002 GB, free: 11.38 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00174/1.086, allocations: 1.342 MB / 1.003 GB, free: 10.81 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003928/1.087, allocations: 333.2 kB / 1.003 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000147/1.087, allocations: 24.92 kB / 1.003 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00101/1.088, allocations: 97.12 kB / 1.004 GB, free: 10.64 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.005e-05/1.088, allocations: 56.53 kB / 1.004 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.744e-05/1.088, allocations: 42.78 kB / 1.004 GB, free: 10.63 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001185/1.089, allocations: 0.8517 MB / 1.004 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.91e-07/1.089, allocations: 0 / 1.004 GB, free: 10.51 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0009294/1.09, allocations: 305.2 kB / 1.005 GB, free: 10.48 MB / 0.7325 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.0006369/1.091, allocations: 359.5 kB / 1.005 GB, free: 10.34 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00193/1.093, allocations: 1.016 MB / 1.006 GB, free: 10.24 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.322e-06/1.093, allocations: 4.125 kB / 1.006 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007541/1.094, allocations: 0.5106 MB / 1.007 GB, free: 10.17 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002261/1.096, allocations: 0.5558 MB / 1.007 GB, free: 10.07 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003114/1.099, allocations: 2.06 MB / 1.009 GB, free: 9.16 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005856/1.1, allocations: 1.064 MB / 1.01 GB, free: 8.445 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002975/1.1, allocations: 89 kB / 1.01 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of SimCode: time 6.62e-07/1.1, allocations: 0 / 1.01 GB, free: 8.438 MB / 0.7325 GB Notification: Performance of Templates: time 0.02281/1.123, allocations: 18.96 MB / 1.029 GB, free: 1.691 MB / 0.7325 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)