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: "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004479/0.004479, allocations: 102.6 kB / 15.73 MB, free: 6.496 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.001068/0.001068, allocations: 195.7 kB / 16.67 MB, free: 6.379 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.345/1.345, allocations: 222.9 MB / 240.4 MB, free: 4.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00213/0.00213, allocations: 274.7 kB / 290.8 MB, free: 1.941 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9488/0.9488, allocations: 169.3 MB / 0.4983 GB, free: 13.83 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 95.84 kB / 0.681 GB, free: 24 kB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1751, allocations: 86.98 MB / 0.7659 GB, free: 8.965 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction): time 0.6091/0.7843, allocations: 239.8 MB / 1 GB, free: 3.07 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01106/0.7954, allocations: 7.215 MB / 1.007 GB, free: 11.84 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001644/0.7971, allocations: 51.69 kB / 1.007 GB, free: 11.79 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.001952/0.7991, allocations: 0.7065 MB / 1.008 GB, free: 11.08 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005086/0.8042, allocations: 2.068 MB / 1.01 GB, free: 9.008 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.004929/0.8092, allocations: 2.023 MB / 1.012 GB, free: 6.992 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.004839/0.814, allocations: 3.284 MB / 1.015 GB, free: 3.699 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002123/0.8162, allocations: 1.137 MB / 1.016 GB, free: 2.547 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005458/0.8216, allocations: 1.817 MB / 1.018 GB, free: 0.7227 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002395/0.8241, allocations: 0.9732 MB / 1.019 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 0.000362/0.8245, allocations: 124 kB / 1.019 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004911/0.8294, allocations: 2.486 MB / 1.021 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 0.0006174/0.83, allocations: 454.7 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.001298/0.8313, allocations: 0.7233 MB / 1.023 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.004544/0.8359, allocations: 2.696 MB / 1.025 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.104e-06/0.8359, allocations: 4 kB / 1.025 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.363e-06/0.8359, allocations: 3.938 kB / 1.025 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.391e-05/0.8359, allocations: 4 kB / 1.025 GB, free: 9.254 MB / 0.7794 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.003066/0.839, allocations: 1.697 MB / 1.027 GB, free: 7.5 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.8391, allocations: 12.03 kB / 1.027 GB, free: 7.488 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001625/0.8392, allocations: 130.8 kB / 1.027 GB, free: 7.352 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002731/0.842, allocations: 418 kB / 1.027 GB, free: 6.941 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001636/0.8436, allocations: 1.03 MB / 1.028 GB, free: 5.867 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.152e-05/0.8437, allocations: 58 kB / 1.029 GB, free: 5.812 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001294/0.8438, allocations: 84 kB / 1.029 GB, free: 5.73 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001472/0.8453, allocations: 0.8624 MB / 1.029 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.979e-05/0.8453, allocations: 0 / 1.029 GB, free: 4.859 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.277e-05/0.8454, allocations: 43.97 kB / 1.029 GB, free: 4.816 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.401e-05/0.8455, allocations: 33.38 kB / 1.03 GB, free: 4.785 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001413/0.8469, allocations: 0.8081 MB / 1.03 GB, free: 3.98 MB / 0.7794 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.004457/0.8513, allocations: 3.631 MB / 1.034 GB, free: 56 kB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001439/0.8528, allocations: 1.098 MB / 1.035 GB, free: 14.84 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005977/0.8534, allocations: 375.5 kB / 1.035 GB, free: 14.47 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006793/0.8541, allocations: 404.8 kB / 1.036 GB, free: 14 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.988e-05/0.8541, allocations: 51.06 kB / 1.036 GB, free: 13.95 MB / 0.795 GB Notification: Performance of pre-optimization done (n=60): time 1.963e-06/0.8541, allocations: 0 / 1.036 GB, free: 13.95 MB / 0.795 GB Notification: Performance of matching and sorting (n=60): time 0.001969/0.8561, allocations: 0.9507 MB / 1.037 GB, free: 12.99 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.8562, allocations: 59.97 kB / 1.037 GB, free: 12.92 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001021/0.8572, allocations: 0.8399 MB / 1.038 GB, free: 12.06 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 5.78e-05/0.8573, allocations: 41.7 kB / 1.038 GB, free: 12.01 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 0.000333/0.8576, allocations: 476.1 kB / 1.038 GB, free: 11.54 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.8578, allocations: 216.9 kB / 1.038 GB, free: 11.32 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001779/0.858, allocations: 110.2 kB / 1.038 GB, free: 11.21 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001044/0.8581, allocations: 330 kB / 1.039 GB, free: 10.88 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004742/0.8586, allocations: 262.9 kB / 1.039 GB, free: 10.62 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005669/0.8591, allocations: 371.4 kB / 1.039 GB, free: 10.22 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.8602, allocations: 0.5852 MB / 1.04 GB, free: 9.625 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.8602, allocations: 0 / 1.04 GB, free: 9.625 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.00127/0.8614, allocations: 0.7359 MB / 1.041 GB, free: 8.879 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.559e-05/0.8615, allocations: 4 kB / 1.041 GB, free: 8.875 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.8615, allocations: 4 kB / 1.041 GB, free: 8.871 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.8615, allocations: 4.125 kB / 1.041 GB, free: 8.867 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005698/0.8621, allocations: 127.8 kB / 1.041 GB, free: 8.742 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.8621, allocations: 4 kB / 1.041 GB, free: 8.738 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006868/0.8628, allocations: 75.39 kB / 1.041 GB, free: 8.664 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.968e-05/0.8628, allocations: 20 kB / 1.041 GB, free: 8.645 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0007408/0.8636, allocations: 0.4893 MB / 1.041 GB, free: 8.152 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0005308/0.8641, allocations: 363.5 kB / 1.042 GB, free: 7.766 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.000964/0.8651, allocations: 0.5774 MB / 1.042 GB, free: 7.176 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.663e-06/0.8651, allocations: 0 / 1.042 GB, free: 7.176 MB / 0.795 GB Notification: Performance of matching and sorting (n=69) (initialization_lambda0): time 0.001228/0.8663, allocations: 0.7319 MB / 1.043 GB, free: 6.434 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 9.939e-06/0.8664, allocations: 4 kB / 1.043 GB, free: 6.43 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.956e-06/0.8664, allocations: 0 / 1.043 GB, free: 6.43 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.368e-06/0.8664, allocations: 4 kB / 1.043 GB, free: 6.426 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005476/0.8669, allocations: 127.8 kB / 1.043 GB, free: 6.301 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.867, allocations: 0 / 1.043 GB, free: 6.301 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006695/0.8676, allocations: 67.77 kB / 1.043 GB, free: 6.234 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.655e-05/0.8677, allocations: 23.98 kB / 1.043 GB, free: 6.211 MB / 0.795 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.000165/0.8679, allocations: 208.8 kB / 1.043 GB, free: 6 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001523/0.868, allocations: 106.7 kB / 1.043 GB, free: 5.895 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.8694, allocations: 0.7412 MB / 1.044 GB, free: 5.148 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.762e-06/0.8694, allocations: 4 kB / 1.044 GB, free: 5.145 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.8694, allocations: 3.938 kB / 1.044 GB, free: 5.141 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001114/0.8705, allocations: 0.9034 MB / 1.045 GB, free: 4.148 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003164/0.8737, allocations: 2.248 MB / 1.047 GB, free: 1.766 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.8737, allocations: 0 / 1.047 GB, free: 1.766 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006503/0.8744, allocations: 140.2 kB / 1.047 GB, free: 1.629 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.096e-05/0.8744, allocations: 8 kB / 1.047 GB, free: 1.621 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.679e-05/0.8744, allocations: 19.98 kB / 1.047 GB, free: 1.602 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.073e-06/0.8744, allocations: 4.875 kB / 1.047 GB, free: 1.598 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/0.8744, allocations: 7.938 kB / 1.047 GB, free: 1.59 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001788/0.8762, allocations: 1.234 MB / 1.049 GB, free: 304 kB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003524/0.8766, allocations: 255.7 kB / 1.049 GB, free: 28 kB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001306/0.8767, allocations: 19.98 kB / 1.049 GB, free: 8 kB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000688/0.8774, allocations: 41.27 kB / 1.049 GB, free: 15.96 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001018/0.8776, allocations: 56.19 kB / 1.049 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.587e-05/0.8776, allocations: 27.98 kB / 1.049 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 0.000742/0.8784, allocations: 0.5823 MB / 1.05 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of sort global known variables: time 2.8e-07/0.8784, allocations: 0 / 1.05 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.001159/0.8795, allocations: 0.5338 MB / 1.05 GB, free: 14.75 MB / 0.8106 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.002465/0.882, allocations: 1.911 MB / 1.052 GB, free: 12.79 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.001713/0.8837, allocations: 0.9432 MB / 1.053 GB, free: 11.85 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 3.987e-06/0.8837, allocations: 3.938 kB / 1.053 GB, free: 11.84 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0005607/0.8843, allocations: 342.2 kB / 1.053 GB, free: 11.51 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002431/0.8868, allocations: 0.5995 MB / 1.054 GB, free: 10.92 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01114/0.8979, allocations: 7.594 MB / 1.061 GB, free: 3.098 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008949/0.8988, allocations: 1.124 MB / 1.062 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 0.001199/0.9001, allocations: 308 kB / 1.063 GB, free: 1.641 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006292/0.9007, allocations: 419.2 kB / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of SimCode: time 8.31e-07/0.9007, allocations: 0 / 1.063 GB, free: 1.23 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05934/0.9601, allocations: 29.87 MB / 1.092 GB, free: 3.848 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.459/10.42, allocations: 10.5 kB / 1.092 GB, free: 3.84 MB / 0.8419 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_FixedResistances_Examples_FlowJunction.fmu > BuildingSystems_BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction.pipe 2>&1)