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.005105/0.005105, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001139/0.001139, allocations: 201.5 kB / 16.68 MB, free: 5.969 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.322/1.322, allocations: 222.9 MB / 240.4 MB, free: 4.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002063/0.002063, allocations: 286.9 kB / 290.8 MB, free: 1.895 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9199/0.9199, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001564/0.001564, allocations: 87.86 kB / 0.6814 GB, free: 15.46 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1533/0.1549, allocations: 86.98 MB / 0.7664 GB, free: 8.406 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5163/0.6712, allocations: 194 MB / 0.9558 GB, free: 0.6406 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01149/0.6827, allocations: 6.931 MB / 0.9626 GB, free: 9.691 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001602/0.6844, allocations: 43.69 kB / 0.9627 GB, free: 9.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001981/0.6864, allocations: 0.683 MB / 0.9633 GB, free: 8.961 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.005897/0.6923, allocations: 2.347 MB / 0.9656 GB, free: 6.605 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003353/0.6957, allocations: 1.434 MB / 0.967 GB, free: 5.199 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003857/0.6996, allocations: 2.982 MB / 0.9699 GB, free: 2.207 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001455/0.701, allocations: 0.8933 MB / 0.9708 GB, free: 1.312 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00268/0.7037, allocations: 1.144 MB / 0.9719 GB, free: 176 kB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001559/0.7053, allocations: 0.7939 MB / 0.9727 GB, free: 15.38 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.000289/0.7056, allocations: 104 kB / 0.9728 GB, free: 15.28 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003775/0.7094, allocations: 2.062 MB / 0.9748 GB, free: 13.21 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0004948/0.7099, allocations: 362.9 kB / 0.9751 GB, free: 12.86 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0009495/0.7109, allocations: 0.5908 MB / 0.9757 GB, free: 12.27 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.004011/0.7149, allocations: 2.424 MB / 0.9781 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.611e-06/0.7149, allocations: 0 / 0.9781 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7149, allocations: 0 / 0.9781 GB, free: 9.84 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.334e-05/0.715, allocations: 0 / 0.9781 GB, free: 9.84 MB / 0.7325 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.003947/0.7189, allocations: 1.673 MB / 0.9797 GB, free: 8.105 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.202e-05/0.719, allocations: 16.03 kB / 0.9797 GB, free: 8.09 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00288/0.7219, allocations: 0.5455 MB / 0.9803 GB, free: 7.543 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002241/0.7241, allocations: 1.058 MB / 0.9813 GB, free: 6.438 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.703e-05/0.7242, allocations: 57.31 kB / 0.9814 GB, free: 6.383 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00011/0.7243, allocations: 64 kB / 0.9814 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002342/0.7267, allocations: 1.105 MB / 0.9825 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.818e-05/0.7267, allocations: 0 / 0.9825 GB, free: 5.191 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.8e-05/0.7268, allocations: 31.94 kB / 0.9825 GB, free: 5.16 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.621e-05/0.7268, allocations: 33.3 kB / 0.9826 GB, free: 5.129 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002954/0.7298, allocations: 1.168 MB / 0.9837 GB, free: 3.961 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.005277/0.7351, allocations: 3.168 MB / 0.9868 GB, free: 0.7109 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/0.7368, allocations: 0.6918 MB / 0.9875 GB, free: 12 kB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008774/0.7377, allocations: 420.2 kB / 0.9879 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009535/0.7387, allocations: 1.021 MB / 0.9889 GB, free: 14.36 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001/0.7397, allocations: 0.5182 MB / 0.9894 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=57): time 2.394e-06/0.7397, allocations: 0 / 0.9894 GB, free: 13.82 MB / 0.7481 GB Notification: Performance of matching and sorting (n=57): time 0.002979/0.7427, allocations: 1.218 MB / 0.9906 GB, free: 12.59 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.464e-05/0.7428, allocations: 144.8 kB / 0.9907 GB, free: 12.41 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001953/0.7447, allocations: 1.176 MB / 0.9919 GB, free: 11.22 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.222e-05/0.7448, allocations: 41.7 kB / 0.9919 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003923/0.7452, allocations: 445.8 kB / 0.9923 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001814/0.7454, allocations: 198.3 kB / 0.9925 GB, free: 10.54 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002955/0.7457, allocations: 146.1 kB / 0.9926 GB, free: 10.39 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001533/0.7459, allocations: 330 kB / 0.993 GB, free: 10.06 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001258/0.7471, allocations: 436.9 kB / 0.9934 GB, free: 9.633 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001364/0.7485, allocations: 0.5898 MB / 0.994 GB, free: 8.996 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002098/0.7506, allocations: 0.9344 MB / 0.9949 GB, free: 8.012 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.7506, allocations: 0 / 0.9949 GB, free: 8.012 MB / 0.7481 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002998/0.7536, allocations: 1.206 MB / 0.996 GB, free: 6.789 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 3.956e-05/0.7537, allocations: 33.7 kB / 0.9961 GB, free: 6.75 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.7537, allocations: 4 kB / 0.9961 GB, free: 6.746 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.7537, allocations: 7.984 kB / 0.9961 GB, free: 6.738 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009146/0.7546, allocations: 192 kB / 0.9963 GB, free: 6.551 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.802e-05/0.7547, allocations: 15.88 kB / 0.9963 GB, free: 6.535 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001419/0.7561, allocations: 240.1 kB / 0.9965 GB, free: 6.301 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.899e-05/0.7562, allocations: 35.97 kB / 0.9965 GB, free: 6.266 MB / 0.7481 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.0004358/0.7566, allocations: 328.5 kB / 0.9969 GB, free: 5.93 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002031/0.7569, allocations: 131.1 kB / 0.997 GB, free: 5.801 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002093/0.759, allocations: 0.9906 MB / 0.998 GB, free: 4.805 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.314e-05/0.759, allocations: 11.94 kB / 0.998 GB, free: 4.793 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.759, allocations: 7.938 kB / 0.998 GB, free: 4.785 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.405e-06/0.759, allocations: 3.984 kB / 0.998 GB, free: 4.781 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004826/0.7638, allocations: 3.166 MB / 1.001 GB, free: 1.461 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.626e-05/0.7639, allocations: 8 kB / 1.001 GB, free: 1.453 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005916/0.7645, allocations: 120.1 kB / 1.001 GB, free: 1.336 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.462e-05/0.7645, allocations: 12 kB / 1.001 GB, free: 1.324 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.124e-05/0.7646, allocations: 27.98 kB / 1.001 GB, free: 1.297 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.197e-05/0.7646, allocations: 11.94 kB / 1.001 GB, free: 1.285 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.016e-05/0.7646, allocations: 15.92 kB / 1.001 GB, free: 1.27 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002211/0.7668, allocations: 1.346 MB / 1.003 GB, free: 15.81 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006543/0.7675, allocations: 340 kB / 1.003 GB, free: 15.46 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002629/0.7678, allocations: 23.98 kB / 1.003 GB, free: 15.43 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001225/0.769, allocations: 107.9 kB / 1.003 GB, free: 15.33 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/0.7691, allocations: 67.69 kB / 1.003 GB, free: 15.26 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.925e-05/0.7692, allocations: 35.97 kB / 1.003 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.001761/0.771, allocations: 0.8482 MB / 1.004 GB, free: 14.37 MB / 0.7637 GB Notification: Performance of sort global known variables: time 3.01e-07/0.771, allocations: 4 kB / 1.004 GB, free: 14.37 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001124/0.7721, allocations: 299.6 kB / 1.004 GB, free: 14.07 MB / 0.7637 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.0007732/0.7729, allocations: 356.8 kB / 1.005 GB, free: 13.73 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002452/0.7754, allocations: 1.017 MB / 1.006 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 1.008e-05/0.7754, allocations: 4 kB / 1.006 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0009473/0.7764, allocations: 0.5164 MB / 1.006 GB, free: 12.17 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002653/0.779, allocations: 0.544 MB / 1.007 GB, free: 11.63 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003484/0.7825, allocations: 2.053 MB / 1.009 GB, free: 9.453 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007296/0.7833, allocations: 1.069 MB / 1.01 GB, free: 8.355 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0009283/0.7842, allocations: 275.2 kB / 1.01 GB, free: 8.086 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.7845, allocations: 79.41 kB / 1.01 GB, free: 8.008 MB / 0.7637 GB Notification: Performance of SimCode: time 4.91e-07/0.7845, allocations: 0 / 1.01 GB, free: 8.008 MB / 0.7637 GB Notification: Performance of Templates: time 0.03428/0.8188, allocations: 22.19 MB / 1.032 GB, free: 2.082 MB / 0.7794 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)