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.001438/0.001438, allocations: 111.3 kB / 15.24 MB, free: 0.6484 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.001431/0.001431, allocations: 201 kB / 16.14 MB, free: 6.648 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.467/1.467, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002568/0.002568, allocations: 287 kB / 290.2 MB, free: 2.211 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.098/1.098, allocations: 178.6 MB / 0.5068 GB, free: 4.789 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00285/0.00285, allocations: 92.89 kB / 0.6057 GB, free: 25.13 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1804/0.1833, allocations: 89.15 MB / 0.6928 GB, free: 4.867 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction): time 0.6112/0.7946, allocations: 237.7 MB / 0.9249 GB, free: 14.46 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.02127/0.8159, allocations: 7.298 MB / 0.9321 GB, free: 7.145 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00225/0.8182, allocations: 47.69 kB / 0.9321 GB, free: 7.098 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.003328/0.8216, allocations: 0.5828 MB / 0.9327 GB, free: 6.512 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.009351/0.831, allocations: 1.953 MB / 0.9346 GB, free: 4.551 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.007976/0.839, allocations: 1.865 MB / 0.9364 GB, free: 2.699 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.009002/0.848, allocations: 4.435 MB / 0.9407 GB, free: 14.25 MB / 0.67 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002413/0.8505, allocations: 0.9396 MB / 0.9416 GB, free: 13.29 MB / 0.67 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004368/0.8549, allocations: 1.595 MB / 0.9432 GB, free: 11.69 MB / 0.67 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002339/0.8572, allocations: 0.9937 MB / 0.9442 GB, free: 10.7 MB / 0.67 GB Notification: Performance of NFPackage.collectConstants: time 0.000201/0.8575, allocations: 63.94 kB / 0.9442 GB, free: 10.63 MB / 0.67 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005524/0.863, allocations: 2.837 MB / 0.947 GB, free: 7.789 MB / 0.67 GB Notification: Performance of NFScalarize.scalarize: time 0.000585/0.8636, allocations: 402.7 kB / 0.9474 GB, free: 7.395 MB / 0.67 GB Notification: Performance of NFVerifyModel.verify: time 0.001053/0.8647, allocations: 0.653 MB / 0.948 GB, free: 6.738 MB / 0.67 GB Notification: Performance of NFConvertDAE.convert: time 0.004968/0.8696, allocations: 2.769 MB / 0.9507 GB, free: 3.961 MB / 0.67 GB Notification: Performance of FrontEnd - DAE generated: time 6.442e-06/0.8697, allocations: 4 kB / 0.9507 GB, free: 3.957 MB / 0.67 GB Notification: Performance of FrontEnd: time 4.488e-06/0.8697, allocations: 0 / 0.9507 GB, free: 3.957 MB / 0.67 GB Notification: Performance of Transformations before backend: time 2.081e-05/0.8697, allocations: 7.875 kB / 0.9507 GB, free: 3.949 MB / 0.67 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.003144/0.8728, allocations: 1.707 MB / 0.9524 GB, free: 2.188 MB / 0.67 GB Notification: Performance of prepare preOptimizeDAE: time 4.595e-05/0.8729, allocations: 12.03 kB / 0.9524 GB, free: 2.176 MB / 0.67 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002842/0.8758, allocations: 421.9 kB / 0.9528 GB, free: 1.762 MB / 0.67 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001784/0.8776, allocations: 0.9638 MB / 0.9538 GB, free: 0.7539 MB / 0.67 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.976e-05/0.8776, allocations: 62 kB / 0.9538 GB, free: 0.6953 MB / 0.67 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001507/0.8778, allocations: 91.91 kB / 0.9539 GB, free: 0.6055 MB / 0.67 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001795/0.8796, allocations: 0.8625 MB / 0.9548 GB, free: 15.73 MB / 0.6856 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.079e-05/0.8796, allocations: 0 / 0.9548 GB, free: 15.73 MB / 0.6856 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.281e-05/0.8797, allocations: 32 kB / 0.9548 GB, free: 15.7 MB / 0.6856 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.306e-05/0.8798, allocations: 26 kB / 0.9548 GB, free: 15.68 MB / 0.6856 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00161/0.8814, allocations: 0.8159 MB / 0.9556 GB, free: 14.86 MB / 0.6856 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.005282/0.8867, allocations: 3.623 MB / 0.9591 GB, free: 10.95 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001719/0.8884, allocations: 1.103 MB / 0.9602 GB, free: 9.727 MB / 0.6856 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006394/0.8891, allocations: 362.4 kB / 0.9606 GB, free: 9.371 MB / 0.6856 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007776/0.8898, allocations: 412.8 kB / 0.961 GB, free: 8.895 MB / 0.6856 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.121e-05/0.8899, allocations: 43.12 kB / 0.961 GB, free: 8.844 MB / 0.6856 GB Notification: Performance of pre-optimization done (n=60): time 4.789e-06/0.8899, allocations: 0 / 0.961 GB, free: 8.844 MB / 0.6856 GB Notification: Performance of matching and sorting (n=60): time 0.002326/0.8923, allocations: 0.9584 MB / 0.9619 GB, free: 7.883 MB / 0.6856 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.819e-05/0.8923, allocations: 63.91 kB / 0.962 GB, free: 7.809 MB / 0.6856 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001211/0.8935, allocations: 0.8361 MB / 0.9628 GB, free: 6.949 MB / 0.6856 GB Notification: Performance of collectPreVariables (initialization): time 6.425e-05/0.8936, allocations: 37.7 kB / 0.9629 GB, free: 6.906 MB / 0.6856 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004319/0.894, allocations: 492.1 kB / 0.9633 GB, free: 6.418 MB / 0.6856 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002258/0.8943, allocations: 208.9 kB / 0.9635 GB, free: 6.211 MB / 0.6856 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002066/0.8945, allocations: 110.2 kB / 0.9636 GB, free: 6.098 MB / 0.6856 GB Notification: Performance of setup shared object (initialization): time 0.0001632/0.8947, allocations: 326 kB / 0.9639 GB, free: 5.773 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005447/0.8952, allocations: 259 kB / 0.9642 GB, free: 5.516 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006416/0.8959, allocations: 359.5 kB / 0.9645 GB, free: 5.133 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001121/0.897, allocations: 0.593 MB / 0.9651 GB, free: 4.527 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.897, allocations: 0 / 0.9651 GB, free: 4.527 MB / 0.6856 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001482/0.8985, allocations: 0.7398 MB / 0.9658 GB, free: 3.777 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.971e-05/0.8985, allocations: 6.656 kB / 0.9658 GB, free: 3.773 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.8985, allocations: 4 kB / 0.9658 GB, free: 3.77 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.8986, allocations: 4 kB / 0.9658 GB, free: 3.766 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006155/0.8992, allocations: 123.8 kB / 0.966 GB, free: 3.645 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.8992, allocations: 12.2 kB / 0.966 GB, free: 3.633 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009491/0.9002, allocations: 131.2 kB / 0.9661 GB, free: 3.504 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.89e-05/0.9002, allocations: 27.98 kB / 0.9661 GB, free: 3.477 MB / 0.6856 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0009013/0.9012, allocations: 0.4893 MB / 0.9666 GB, free: 2.984 MB / 0.6856 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006285/0.9018, allocations: 364.9 kB / 0.967 GB, free: 2.594 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.001102/0.9029, allocations: 0.5774 MB / 0.9675 GB, free: 2.004 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.773e-06/0.9029, allocations: 0 / 0.9675 GB, free: 2.004 MB / 0.6856 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001428/0.9043, allocations: 0.7165 MB / 0.9682 GB, free: 1.277 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 1.284e-05/0.9044, allocations: 7.938 kB / 0.9682 GB, free: 1.27 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.106e-06/0.9044, allocations: 0 / 0.9682 GB, free: 1.27 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.446e-06/0.9044, allocations: 4.125 kB / 0.9682 GB, free: 1.266 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005786/0.905, allocations: 131.8 kB / 0.9684 GB, free: 1.137 MB / 0.6856 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.297e-06/0.905, allocations: 7.938 kB / 0.9684 GB, free: 1.129 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009667/0.906, allocations: 123.5 kB / 0.9685 GB, free: 1.008 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.781e-05/0.906, allocations: 20 kB / 0.9685 GB, free: 0.9883 MB / 0.6856 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.0002302/0.9063, allocations: 212.8 kB / 0.9687 GB, free: 0.7734 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001764/0.9064, allocations: 102.7 kB / 0.9688 GB, free: 0.6719 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001622/0.9081, allocations: 0.7547 MB / 0.9695 GB, free: 15.91 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.326e-06/0.9081, allocations: 8 kB / 0.9695 GB, free: 15.91 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.9081, allocations: 0 / 0.9695 GB, free: 15.91 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00135/0.9095, allocations: 0.8956 MB / 0.9704 GB, free: 14.93 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003861/0.9133, allocations: 2.251 MB / 0.9726 GB, free: 12.54 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.939e-06/0.9134, allocations: 8.344 kB / 0.9726 GB, free: 12.53 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006895/0.9141, allocations: 139.8 kB / 0.9728 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.9141, allocations: 4 kB / 0.9728 GB, free: 12.39 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.009e-05/0.9141, allocations: 16 kB / 0.9728 GB, free: 12.38 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-05/0.9141, allocations: 11.94 kB / 0.9728 GB, free: 12.36 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.9142, allocations: 4.094 kB / 0.9728 GB, free: 12.36 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002131/0.9163, allocations: 1.225 MB / 0.974 GB, free: 11.08 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004774/0.9168, allocations: 267.7 kB / 0.9742 GB, free: 10.8 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001293/0.9169, allocations: 16 kB / 0.9743 GB, free: 10.78 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000831/0.9178, allocations: 96.5 kB / 0.9743 GB, free: 10.69 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001302/0.9179, allocations: 56.25 kB / 0.9744 GB, free: 10.63 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.27e-05/0.918, allocations: 24 kB / 0.9744 GB, free: 10.61 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0008892/0.9189, allocations: 0.5823 MB / 0.975 GB, free: 10.01 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.01e-07/0.9189, allocations: 0 / 0.975 GB, free: 10.01 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.001337/0.9202, allocations: 0.5377 MB / 0.9755 GB, free: 9.473 MB / 0.7012 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.0005469/0.9208, allocations: 240.5 kB / 0.9757 GB, free: 9.23 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.001962/0.9227, allocations: 0.9351 MB / 0.9767 GB, free: 8.297 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 4.819e-06/0.9228, allocations: 7.938 kB / 0.9767 GB, free: 8.289 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0006484/0.9234, allocations: 339.3 kB / 0.977 GB, free: 7.957 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002937/0.9264, allocations: 0.6242 MB / 0.9776 GB, free: 7.34 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003796/0.9302, allocations: 2.544 MB / 0.9801 GB, free: 4.727 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008369/0.931, allocations: 1.128 MB / 0.9812 GB, free: 3.57 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.001174/0.9322, allocations: 304 kB / 0.9815 GB, free: 3.27 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002394/0.9324, allocations: 79.44 kB / 0.9816 GB, free: 3.191 MB / 0.7012 GB Notification: Performance of SimCode: time 4.71e-07/0.9324, allocations: 0 / 0.9816 GB, free: 3.191 MB / 0.7012 GB Notification: Performance of Templates: time 0.03725/0.9697, allocations: 19.77 MB / 1.001 GB, free: 15.73 MB / 0.7325 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)