Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.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.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction") translateModel(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001653/0.001654, allocations: 104.3 kB / 16.36 MB, free: 6.289 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.001045/0.001045, allocations: 192 kB / 17.29 MB, free: 5.863 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.26/1.26, 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.002087/0.002087, allocations: 285 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8979/0.8979, allocations: 169.3 MB / 0.4989 GB, free: 4.453 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 98.39 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1678/0.1695, allocations: 86.98 MB / 0.6816 GB, free: 7.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction): time 0.4991/0.6687, allocations: 239.8 MB / 0.9158 GB, free: 14.36 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.0112/0.6799, allocations: 7.211 MB / 0.9229 GB, free: 7.133 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001407/0.6814, allocations: 55.62 kB / 0.9229 GB, free: 7.078 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001655/0.6831, allocations: 0.7026 MB / 0.9236 GB, free: 6.371 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.004692/0.6878, allocations: 2.066 MB / 0.9256 GB, free: 4.297 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.00427/0.6921, allocations: 2.038 MB / 0.9276 GB, free: 2.27 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.003636/0.6957, allocations: 3.28 MB / 0.9308 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001341/0.6971, allocations: 1.131 MB / 0.9319 GB, free: 13.83 MB / 0.7012 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003327/0.7004, allocations: 1.782 MB / 0.9337 GB, free: 12.04 MB / 0.7012 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001496/0.7019, allocations: 0.9774 MB / 0.9346 GB, free: 11.06 MB / 0.7012 GB Notification: Performance of NFPackage.collectConstants: time 0.0001583/0.7021, allocations: 120 kB / 0.9347 GB, free: 10.95 MB / 0.7012 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004043/0.7061, allocations: 2.486 MB / 0.9372 GB, free: 8.453 MB / 0.7012 GB Notification: Performance of NFScalarize.scalarize: time 0.0004383/0.7066, allocations: 466.6 kB / 0.9376 GB, free: 7.996 MB / 0.7012 GB Notification: Performance of NFVerifyModel.verify: time 0.0007508/0.7074, allocations: 0.7155 MB / 0.9383 GB, free: 7.277 MB / 0.7012 GB Notification: Performance of NFConvertDAE.convert: time 0.003484/0.7109, allocations: 2.689 MB / 0.9409 GB, free: 4.582 MB / 0.7012 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.7109, allocations: 0 / 0.9409 GB, free: 4.582 MB / 0.7012 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7109, allocations: 0 / 0.9409 GB, free: 4.582 MB / 0.7012 GB Notification: Performance of Transformations before backend: time 1.635e-05/0.7109, allocations: 4 kB / 0.9409 GB, free: 4.578 MB / 0.7012 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 197 * Number of variables: 197 Notification: Performance of Generate backend data structure: time 0.002583/0.7135, allocations: 1.71 MB / 0.9426 GB, free: 2.816 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 3.626e-05/0.7135, allocations: 8.031 kB / 0.9426 GB, free: 2.809 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002549/0.7161, allocations: 425.9 kB / 0.943 GB, free: 2.391 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001772/0.7179, allocations: 1.018 MB / 0.944 GB, free: 1.328 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.899e-05/0.7179, allocations: 66 kB / 0.9441 GB, free: 1.262 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001256/0.7181, allocations: 87.94 kB / 0.9442 GB, free: 1.176 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001434/0.7195, allocations: 0.8624 MB / 0.945 GB, free: 312 kB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.125e-05/0.7195, allocations: 0 / 0.945 GB, free: 312 kB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.202e-05/0.7196, allocations: 36 kB / 0.945 GB, free: 276 kB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.247e-05/0.7197, allocations: 26 kB / 0.9451 GB, free: 252 kB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001394/0.7211, allocations: 0.8081 MB / 0.9458 GB, free: 15.44 MB / 0.7169 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.004441/0.7255, allocations: 3.643 MB / 0.9494 GB, free: 11.5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001437/0.727, allocations: 1.096 MB / 0.9505 GB, free: 10.29 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005583/0.7275, allocations: 372.5 kB / 0.9508 GB, free: 9.93 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006591/0.7282, allocations: 408.8 kB / 0.9512 GB, free: 9.457 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.635e-05/0.7283, allocations: 39.11 kB / 0.9513 GB, free: 9.41 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=60): time 1.994e-06/0.7283, allocations: 7.938 kB / 0.9513 GB, free: 9.402 MB / 0.7169 GB Notification: Performance of matching and sorting (n=60): time 0.00196/0.7302, allocations: 0.9546 MB / 0.9522 GB, free: 8.441 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.911e-05/0.7303, allocations: 55.97 kB / 0.9522 GB, free: 8.375 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001/0.7313, allocations: 0.84 MB / 0.9531 GB, free: 7.512 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 5.405e-05/0.7313, allocations: 37.7 kB / 0.9531 GB, free: 7.469 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003335/0.7317, allocations: 488.1 kB / 0.9536 GB, free: 6.984 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001613/0.7319, allocations: 212.9 kB / 0.9538 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001768/0.732, allocations: 114.1 kB / 0.9539 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 0.0001055/0.7322, allocations: 326 kB / 0.9542 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004579/0.7326, allocations: 259 kB / 0.9544 GB, free: 6.078 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005587/0.7332, allocations: 367.4 kB / 0.9548 GB, free: 5.688 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009859/0.7342, allocations: 0.5891 MB / 0.9554 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.237e-06/0.7342, allocations: 0 / 0.9554 GB, free: 5.082 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001275/0.7355, allocations: 0.7398 MB / 0.9561 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.7355, allocations: 4 kB / 0.9561 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.7355, allocations: 3.938 kB / 0.9561 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.135e-05/0.7355, allocations: 4 kB / 0.9561 GB, free: 4.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005648/0.7361, allocations: 124 kB / 0.9562 GB, free: 4.203 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.401e-05/0.7361, allocations: 15.92 kB / 0.9562 GB, free: 4.188 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007528/0.7369, allocations: 67.5 kB / 0.9563 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.605e-05/0.737, allocations: 23.98 kB / 0.9563 GB, free: 4.098 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009023/0.7379, allocations: 493 kB / 0.9568 GB, free: 3.613 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005303/0.7384, allocations: 363.5 kB / 0.9571 GB, free: 3.227 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0009081/0.7393, allocations: 0.5774 MB / 0.9577 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.483e-06/0.7393, allocations: 0 / 0.9577 GB, free: 2.633 MB / 0.7169 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.00118/0.7405, allocations: 0.7281 MB / 0.9584 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.7405, allocations: 7.938 kB / 0.9584 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.635e-06/0.7406, allocations: 0 / 0.9584 GB, free: 1.891 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.34e-06/0.7406, allocations: 4 kB / 0.9584 GB, free: 1.887 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005332/0.7411, allocations: 127.8 kB / 0.9585 GB, free: 1.762 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.392e-06/0.7411, allocations: 4 kB / 0.9585 GB, free: 1.758 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006774/0.7418, allocations: 71.73 kB / 0.9586 GB, free: 1.688 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.429e-05/0.7419, allocations: 20 kB / 0.9586 GB, free: 1.668 MB / 0.7169 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (69): * Single equations (assignments): 69 * Array equations: 0 * Algorithm blocks: 0 * 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.0001915/0.7421, allocations: 208.1 kB / 0.9588 GB, free: 1.457 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001684/0.7422, allocations: 106.7 kB / 0.9589 GB, free: 1.352 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001357/0.7436, allocations: 0.7432 MB / 0.9597 GB, free: 0.6016 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.522e-06/0.7436, allocations: 8 kB / 0.9597 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.7436, allocations: 0 / 0.9597 GB, free: 0.5938 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2812/1.025, allocations: 0.8969 MB / 0.9605 GB, free: 251.2 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004149/1.029, allocations: 2.248 MB / 0.9627 GB, free: 250.5 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.837e-06/1.029, allocations: 2.844 kB / 0.9627 GB, free: 250.5 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006693/1.03, allocations: 135.2 kB / 0.9629 GB, free: 250.5 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.328e-05/1.03, allocations: 6.562 kB / 0.9629 GB, free: 250.5 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.247e-05/1.03, allocations: 21.69 kB / 0.9629 GB, free: 250.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.899e-06/1.03, allocations: 8.016 kB / 0.9629 GB, free: 250.5 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/1.03, allocations: 13.31 kB / 0.9629 GB, free: 250.5 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001959/1.032, allocations: 1.224 MB / 0.9641 GB, free: 249.9 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004942/1.032, allocations: 256.2 kB / 0.9644 GB, free: 249.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001245/1.032, allocations: 21.28 kB / 0.9644 GB, free: 249.8 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000677/1.033, allocations: 39.47 kB / 0.9644 GB, free: 249.8 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00014/1.033, allocations: 50.83 kB / 0.9645 GB, free: 249.8 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.466e-05/1.033, allocations: 23.08 kB / 0.9645 GB, free: 249.7 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0009387/1.034, allocations: 0.5893 MB / 0.9651 GB, free: 249.5 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.51e-07/1.034, allocations: 1.406 kB / 0.9651 GB, free: 249.5 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.001231/1.036, allocations: 0.5388 MB / 0.9656 GB, free: 249.4 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 6 (spl.vol.dynBal.medium.Xi[1],spl.vol.dynBal.U,spl.vol.dynBal.m,senTem1.T,senTem2.T,senTem3.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (60): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.000478/1.036, allocations: 236.6 kB / 0.9658 GB, free: 249.3 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.002007/1.038, allocations: 0.946 MB / 0.9667 GB, free: 249 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/1.038, allocations: 1.812 kB / 0.9667 GB, free: 249 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0006114/1.039, allocations: 348.6 kB / 0.9671 GB, free: 248.9 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00243/1.041, allocations: 0.5969 MB / 0.9677 GB, free: 248.8 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002846/1.044, allocations: 2.133 MB / 0.9697 GB, free: 247.7 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006194/1.045, allocations: 1.127 MB / 0.9708 GB, free: 246.9 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.0009962/1.046, allocations: 298.3 kB / 0.9711 GB, free: 246.9 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002219/1.046, allocations: 80.14 kB / 0.9712 GB, free: 246.9 MB / 0.7169 GB Notification: Performance of SimCode: time 1.072e-06/1.046, allocations: 1.156 kB / 0.9712 GB, free: 246.9 MB / 0.7169 GB Notification: Performance of Templates: time 0.03577/1.082, allocations: 20.36 MB / 0.9911 GB, free: 240.8 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.sim & ./BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)