Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.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.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009453/0.0009454, allocations: 98.11 kB / 15.36 MB, free: 0.7344 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.00904/0.009041, allocations: 172.6 kB / 16.27 MB, free: 6.652 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.416/1.416, allocations: 223.3 MB / 240.3 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001717/0.001717, allocations: 270.4 kB / 291.7 MB, free: 1.883 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9405/0.9405, allocations: 169.5 MB / 0.5004 GB, free: 14.11 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004663/0.0004663, allocations: 15.17 kB / 0.5986 GB, free: 27.94 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1912/0.1917, allocations: 88.55 MB / 0.6851 GB, free: 15.04 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation): time 0.01957/0.2113, allocations: 20.14 MB / 0.7048 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.007808/0.2191, allocations: 5.386 MB / 0.71 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008599/0.22, allocations: 23.81 kB / 0.7101 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000904/0.221, allocations: 286.4 kB / 0.7103 GB, free: 5.148 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.002569/0.2235, allocations: 0.8503 MB / 0.7112 GB, free: 4.297 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002362/0.2259, allocations: 0.8285 MB / 0.712 GB, free: 3.477 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002865/0.2288, allocations: 2.293 MB / 0.7142 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007739/0.2296, allocations: 440.4 kB / 0.7146 GB, free: 0.7344 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001267/0.2309, allocations: 0.6068 MB / 0.7152 GB, free: 128 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000705/0.2316, allocations: 0.49 MB / 0.7157 GB, free: 15.63 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 6.63e-05/0.2317, allocations: 24 kB / 0.7157 GB, free: 15.61 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002236/0.2339, allocations: 1.088 MB / 0.7168 GB, free: 14.52 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.0001725/0.2341, allocations: 123.5 kB / 0.7169 GB, free: 14.4 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.0003928/0.2345, allocations: 331.9 kB / 0.7172 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.001836/0.2363, allocations: 1.176 MB / 0.7184 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 6.021e-06/0.2364, allocations: 4 kB / 0.7184 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.024e-06/0.2364, allocations: 0 / 0.7184 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.474e-06/0.2364, allocations: 0 / 0.7184 GB, free: 12.88 MB / 0.5137 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001936/0.2383, allocations: 0.9171 MB / 0.7193 GB, free: 11.91 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.996e-05/0.2384, allocations: 8.031 kB / 0.7193 GB, free: 11.9 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009932/0.2394, allocations: 200 kB / 0.7195 GB, free: 11.71 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001288/0.2407, allocations: 0.5689 MB / 0.72 GB, free: 11.1 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003381/0.241, allocations: 96.88 kB / 0.7201 GB, free: 11.01 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.568e-05/0.2411, allocations: 40 kB / 0.7202 GB, free: 10.97 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009965/0.2421, allocations: 0.5037 MB / 0.7207 GB, free: 10.45 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.724e-05/0.2422, allocations: 4 kB / 0.7207 GB, free: 10.44 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.832e-05/0.2422, allocations: 16 kB / 0.7207 GB, free: 10.43 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.12e-05/0.2422, allocations: 8 kB / 0.7207 GB, free: 10.42 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001011/0.2433, allocations: 430.6 kB / 0.7211 GB, free: 10 MB / 0.5137 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.002982/0.2463, allocations: 2.293 MB / 0.7233 GB, free: 7.484 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001081/0.2473, allocations: 398.9 kB / 0.7237 GB, free: 7.086 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005342/0.2479, allocations: 237 kB / 0.7239 GB, free: 6.852 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000323/0.2482, allocations: 344.7 kB / 0.7243 GB, free: 6.441 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006714/0.2489, allocations: 306.9 kB / 0.7246 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 3.086e-06/0.2489, allocations: 0 / 0.7246 GB, free: 6.125 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.002381/0.2513, allocations: 0.8855 MB / 0.7254 GB, free: 5.207 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.314e-05/0.2514, allocations: 93.09 kB / 0.7255 GB, free: 5.098 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005941/0.252, allocations: 491 kB / 0.726 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.434e-05/0.252, allocations: 29.7 kB / 0.726 GB, free: 4.574 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002404/0.2523, allocations: 280.4 kB / 0.7263 GB, free: 4.297 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001121/0.2524, allocations: 126.3 kB / 0.7264 GB, free: 4.172 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.569e-05/0.2525, allocations: 33.7 kB / 0.7264 GB, free: 4.133 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001614/0.2526, allocations: 362.8 kB / 0.7268 GB, free: 3.77 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004826/0.2531, allocations: 179.9 kB / 0.727 GB, free: 3.594 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005436/0.2537, allocations: 277.3 kB / 0.7272 GB, free: 3.289 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001023/0.2547, allocations: 486.8 kB / 0.7277 GB, free: 2.781 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.2547, allocations: 3.938 kB / 0.7277 GB, free: 2.777 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001524/0.2563, allocations: 0.6357 MB / 0.7283 GB, free: 2.125 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001331/0.2564, allocations: 171.9 kB / 0.7285 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-06/0.2564, allocations: 0 / 0.7285 GB, free: 1.926 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003664/0.2568, allocations: 72.8 kB / 0.7285 GB, free: 1.852 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003811/0.2572, allocations: 83.88 kB / 0.7286 GB, free: 1.77 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005007/0.2577, allocations: 0.5914 MB / 0.7292 GB, free: 1.152 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000572/0.2583, allocations: 79.69 kB / 0.7293 GB, free: 1.074 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.429e-05/0.2583, allocations: 19.94 kB / 0.7293 GB, free: 1.055 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 8.916e-06/0.2584, allocations: 11.92 kB / 0.7293 GB, free: 1.043 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00128/0.2596, allocations: 0.5603 MB / 0.7298 GB, free: 484 kB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.2597, allocations: 80 / 0.7298 GB, free: 484 kB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001567/0.2598, allocations: 48.83 kB / 0.7299 GB, free: 432 kB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003602/0.2602, allocations: 88.03 kB / 0.73 GB, free: 344 kB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001498/0.2617, allocations: 1.639 MB / 0.7316 GB, free: 14.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005442/0.2623, allocations: 79.7 kB / 0.7317 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.519e-05/0.2623, allocations: 15.98 kB / 0.7317 GB, free: 14.46 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 0.0003574/0.2627, allocations: 300 kB / 0.732 GB, free: 14.15 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.563e-05/0.2628, allocations: 63.25 kB / 0.732 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001506/0.2643, allocations: 0.6694 MB / 0.7327 GB, free: 13.4 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.2643, allocations: 7.984 kB / 0.7327 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.2643, allocations: 0 / 0.7327 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001344/0.2657, allocations: 0.8284 MB / 0.7335 GB, free: 12.48 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002232/0.2679, allocations: 1.318 MB / 0.7348 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.29e-06/0.2679, allocations: 4 kB / 0.7348 GB, free: 11.09 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003446/0.2683, allocations: 68.05 kB / 0.7348 GB, free: 11.02 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001357/0.2684, allocations: 48.75 kB / 0.7349 GB, free: 10.97 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.157e-05/0.2685, allocations: 11.98 kB / 0.7349 GB, free: 10.96 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000336/0.2688, allocations: 0.5719 MB / 0.7355 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.547e-06/0.2688, allocations: 4 kB / 0.7355 GB, free: 10.36 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001871/0.2707, allocations: 1.012 MB / 0.7365 GB, free: 9.309 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002467/0.271, allocations: 184.2 kB / 0.7366 GB, free: 9.109 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.954e-05/0.271, allocations: 11.94 kB / 0.7366 GB, free: 9.098 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005622/0.2716, allocations: 60.02 kB / 0.7367 GB, free: 9.039 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.062e-05/0.2717, allocations: 24.03 kB / 0.7367 GB, free: 9.016 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.821e-05/0.2717, allocations: 27.97 kB / 0.7367 GB, free: 8.988 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003872/0.2721, allocations: 346.9 kB / 0.7371 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of sort global known variables: time 5.91e-07/0.2721, allocations: 0 / 0.7371 GB, free: 8.652 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001082/0.2732, allocations: 343.3 kB / 0.7374 GB, free: 8.316 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * 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 (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006492/0.2739, allocations: 310.1 kB / 0.7377 GB, free: 8.016 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002071/0.276, allocations: 1 MB / 0.7387 GB, free: 6.98 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.637e-06/0.276, allocations: 0 / 0.7387 GB, free: 6.98 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0006406/0.2766, allocations: 335.3 kB / 0.739 GB, free: 6.641 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00146/0.2781, allocations: 253.9 kB / 0.7392 GB, free: 6.402 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002265/0.2804, allocations: 1.379 MB / 0.7406 GB, free: 4.984 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.2808, allocations: 0.8861 MB / 0.7415 GB, free: 4.07 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005289/0.2814, allocations: 140.3 kB / 0.7416 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001162/0.2815, allocations: 43.42 kB / 0.7416 GB, free: 3.887 MB / 0.5294 GB Notification: Performance of SimCode: time 4.71e-07/0.2815, allocations: 4 kB / 0.7416 GB, free: 3.883 MB / 0.5294 GB Notification: Performance of Templates: time 0.01873/0.3002, allocations: 11.01 MB / 0.7524 GB, free: 9.02 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)