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.0009136/0.0009136, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.006293/0.006293, allocations: 170 kB / 16.26 MB, free: 6.613 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.313/1.313, allocations: 223.3 MB / 240.3 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001699/0.001699, allocations: 270.3 kB / 291.7 MB, free: 1.891 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9148/0.9148, allocations: 169.5 MB / 0.5004 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004167/0.0004167, allocations: 13.92 kB / 0.5988 GB, free: 28.24 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1511/0.1516, allocations: 88.54 MB / 0.6852 GB, free: 14.96 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.FixedResistances.Examples.FlowJunction): time 0.5222/0.6738, allocations: 234.5 MB / 0.9143 GB, free: 5.082 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01055/0.6843, allocations: 7.216 MB / 0.9213 GB, free: 13.86 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001222/0.6856, allocations: 43.69 kB / 0.9214 GB, free: 13.81 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001799/0.6874, allocations: 0.5789 MB / 0.9219 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004569/0.692, allocations: 1.953 MB / 0.9238 GB, free: 11.27 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.004286/0.6963, allocations: 1.87 MB / 0.9257 GB, free: 9.414 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.004283/0.7006, allocations: 4.424 MB / 0.93 GB, free: 4.977 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.7017, allocations: 0.9224 MB / 0.9309 GB, free: 4.035 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.7044, allocations: 1.568 MB / 0.9324 GB, free: 2.461 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001372/0.7058, allocations: 0.955 MB / 0.9333 GB, free: 1.504 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.000105/0.7059, allocations: 48 kB / 0.9334 GB, free: 1.457 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004044/0.7099, allocations: 2.829 MB / 0.9361 GB, free: 14.62 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 0.0003434/0.7103, allocations: 382.7 kB / 0.9365 GB, free: 14.25 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 0.0005855/0.7109, allocations: 0.6585 MB / 0.9372 GB, free: 13.58 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.003187/0.7141, allocations: 2.726 MB / 0.9398 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 6.492e-06/0.7141, allocations: 4 kB / 0.9398 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.774e-06/0.7141, allocations: 3.938 kB / 0.9398 GB, free: 10.84 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 1.746e-05/0.7141, allocations: 0 / 0.9398 GB, free: 10.84 MB / 0.6544 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.00242/0.7166, allocations: 1.465 MB / 0.9413 GB, free: 9.316 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.209e-05/0.7166, allocations: 12.03 kB / 0.9413 GB, free: 9.305 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001564/0.7168, allocations: 138.8 kB / 0.9414 GB, free: 9.16 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002502/0.7193, allocations: 425.9 kB / 0.9418 GB, free: 8.742 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001406/0.7207, allocations: 0.96 MB / 0.9427 GB, free: 7.738 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.513e-05/0.7208, allocations: 62 kB / 0.9428 GB, free: 7.68 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.7209, allocations: 95.83 kB / 0.9429 GB, free: 7.586 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001507/0.7224, allocations: 0.8741 MB / 0.9437 GB, free: 6.703 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.7224, allocations: 0 / 0.9437 GB, free: 6.703 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.835e-05/0.7225, allocations: 32 kB / 0.9438 GB, free: 6.672 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.899e-05/0.7226, allocations: 37.98 kB / 0.9438 GB, free: 6.633 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001448/0.724, allocations: 0.8198 MB / 0.9446 GB, free: 5.816 MB / 0.6544 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.004259/0.7283, allocations: 3.651 MB / 0.9482 GB, free: 1.871 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.7297, allocations: 1.099 MB / 0.9493 GB, free: 0.6562 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000586/0.7303, allocations: 381 kB / 0.9496 GB, free: 292 kB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006721/0.731, allocations: 420.9 kB / 0.95 GB, free: 15.8 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.13e-05/0.731, allocations: 47.06 kB / 0.9501 GB, free: 15.75 MB / 0.67 GB Notification: Performance of pre-optimization done (n=60): time 1.814e-06/0.731, allocations: 3.938 kB / 0.9501 GB, free: 15.74 MB / 0.67 GB Notification: Performance of matching and sorting (n=60): time 0.001974/0.733, allocations: 0.9897 MB / 0.951 GB, free: 14.75 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.564e-05/0.7331, allocations: 55.97 kB / 0.9511 GB, free: 14.68 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009673/0.734, allocations: 0.8361 MB / 0.9519 GB, free: 13.82 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 5.519e-05/0.7341, allocations: 41.69 kB / 0.9519 GB, free: 13.77 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.7345, allocations: 484 kB / 0.9524 GB, free: 13.29 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001689/0.7346, allocations: 212.9 kB / 0.9526 GB, free: 13.08 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.586e-05/0.7347, allocations: 49.69 kB / 0.9527 GB, free: 13.03 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001049/0.7348, allocations: 330 kB / 0.953 GB, free: 12.7 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004908/0.7353, allocations: 265 kB / 0.9532 GB, free: 12.44 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005691/0.7359, allocations: 379.4 kB / 0.9536 GB, free: 12.04 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001024/0.7369, allocations: 0.6087 MB / 0.9542 GB, free: 11.41 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.7369, allocations: 0 / 0.9542 GB, free: 11.41 MB / 0.67 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001271/0.7382, allocations: 0.7594 MB / 0.9549 GB, free: 10.65 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 6.569e-05/0.7383, allocations: 124.5 kB / 0.955 GB, free: 10.51 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.911e-06/0.7383, allocations: 0 / 0.955 GB, free: 10.51 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.462e-05/0.7383, allocations: 4 kB / 0.955 GB, free: 10.5 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005533/0.7389, allocations: 131.8 kB / 0.9552 GB, free: 10.38 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.7389, allocations: 4 kB / 0.9552 GB, free: 10.37 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008975/0.7398, allocations: 135.3 kB / 0.9553 GB, free: 10.24 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.985e-05/0.7399, allocations: 27.98 kB / 0.9553 GB, free: 10.21 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 6.112e-06/0.7399, allocations: 4 kB / 0.9553 GB, free: 10.21 MB / 0.67 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001121/0.741, allocations: 0.63 MB / 0.9559 GB, free: 9.582 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.741, allocations: 7.938 kB / 0.956 GB, free: 9.574 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.989e-06/0.741, allocations: 4 kB / 0.956 GB, free: 9.57 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005175/0.7416, allocations: 127.9 kB / 0.9561 GB, free: 9.445 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.104e-06/0.7416, allocations: 7.938 kB / 0.9561 GB, free: 9.438 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008048/0.7424, allocations: 135.5 kB / 0.9562 GB, free: 9.305 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.268e-05/0.7425, allocations: 23.98 kB / 0.9562 GB, free: 9.281 MB / 0.67 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.0004027/0.7429, allocations: 374.3 kB / 0.9566 GB, free: 8.906 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001425/0.743, allocations: 110.6 kB / 0.9567 GB, free: 8.797 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001399/0.7444, allocations: 0.7666 MB / 0.9575 GB, free: 8.02 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.7444, allocations: 4 kB / 0.9575 GB, free: 8.016 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.7444, allocations: 0 / 0.9575 GB, free: 8.016 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001156/0.7456, allocations: 0.9306 MB / 0.9584 GB, free: 6.996 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003118/0.7487, allocations: 2.267 MB / 0.9606 GB, free: 4.594 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.681e-06/0.7488, allocations: 4 kB / 0.9606 GB, free: 4.59 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006241/0.7494, allocations: 136.3 kB / 0.9607 GB, free: 4.457 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.016e-05/0.7494, allocations: 19.92 kB / 0.9607 GB, free: 4.438 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.478e-05/0.7495, allocations: 16 kB / 0.9607 GB, free: 4.422 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.014e-05/0.7495, allocations: 15.92 kB / 0.9608 GB, free: 4.406 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.849e-06/0.7495, allocations: 4 kB / 0.9608 GB, free: 4.402 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001875/0.7514, allocations: 1.257 MB / 0.962 GB, free: 3.09 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000353/0.7517, allocations: 263.7 kB / 0.9622 GB, free: 2.812 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.7518, allocations: 15.98 kB / 0.9623 GB, free: 2.797 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008124/0.7527, allocations: 101.5 kB / 0.9624 GB, free: 2.699 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.7528, allocations: 52.27 kB / 0.9624 GB, free: 2.648 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.597e-05/0.7528, allocations: 27.98 kB / 0.9624 GB, free: 2.621 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0007229/0.7536, allocations: 0.5784 MB / 0.963 GB, free: 2.031 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7536, allocations: 0 / 0.963 GB, free: 2.031 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.00115/0.7547, allocations: 0.5416 MB / 0.9635 GB, free: 1.488 MB / 0.67 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.002436/0.7572, allocations: 1.949 MB / 0.9654 GB, free: 15.48 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.001712/0.7589, allocations: 0.9705 MB / 0.9664 GB, free: 14.51 MB / 0.6856 GB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.7589, allocations: 4 kB / 0.9664 GB, free: 14.5 MB / 0.6856 GB Notification: Performance of simCode: created simulation system equations: time 0.0005827/0.7595, allocations: 351.1 kB / 0.9667 GB, free: 14.16 MB / 0.6856 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003334/0.7628, allocations: 0.6221 MB / 0.9673 GB, free: 13.55 MB / 0.6856 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01195/0.7748, allocations: 8.535 MB / 0.9757 GB, free: 4.672 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006738/0.7755, allocations: 1.12 MB / 0.9768 GB, free: 3.52 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.001106/0.7766, allocations: 300.1 kB / 0.977 GB, free: 3.223 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005374/0.7772, allocations: 411.3 kB / 0.9774 GB, free: 2.82 MB / 0.6856 GB Notification: Performance of SimCode: time 6.72e-07/0.7772, allocations: 0 / 0.9774 GB, free: 2.82 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04574/0.8229, allocations: 28.16 MB / 1.005 GB, free: 7.133 MB / 0.7169 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002403/0.8232, allocations: 271 kB / 1.005 GB, free: 6.844 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.341/3.164, allocations: 4.062 kB / 1.005 GB, free: 6.84 MB / 0.7169 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)