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: "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",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.006116/0.006116, allocations: 101 kB / 15.73 MB, free: 6.062 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.001427/0.001427, allocations: 195.2 kB / 16.67 MB, free: 5.973 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002656/0.002656, allocations: 282.5 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9758/0.9758, allocations: 169.3 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00266/0.00266, allocations: 99.83 kB / 0.681 GB, free: 7.469 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3629, allocations: 86.98 MB / 0.7659 GB, free: 3.852 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2007/0.5637, allocations: 194 MB / 0.9554 GB, free: 1.105 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.3705/0.9342, allocations: 6.924 MB / 0.9621 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009677/0.9352, allocations: 44.69 kB / 0.9622 GB, free: 2.035 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.9367, allocations: 0.6828 MB / 0.9628 GB, free: 2.027 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004796/0.9415, allocations: 2.344 MB / 0.9651 GB, free: 1.945 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.003021/0.9445, allocations: 1.426 MB / 0.9665 GB, free: 1.898 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003205/0.9477, allocations: 2.992 MB / 0.9694 GB, free: 1.883 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001133/0.9489, allocations: 0.8896 MB / 0.9703 GB, free: 1.797 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002239/0.9511, allocations: 1.139 MB / 0.9714 GB, free: 1.793 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001484/0.9526, allocations: 0.7972 MB / 0.9722 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0002465/0.9529, allocations: 99.16 kB / 0.9723 GB, free: 1.789 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003564/0.9565, allocations: 2.059 MB / 0.9743 GB, free: 1.77 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004172/0.9569, allocations: 372.5 kB / 0.9747 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0008388/0.9578, allocations: 0.5889 MB / 0.9752 GB, free: 1.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.003389/0.9611, allocations: 2.426 MB / 0.9776 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.9612, allocations: 1.031 kB / 0.9776 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.713e-06/0.9612, allocations: 0 / 0.9776 GB, free: 1.633 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.394e-05/0.9612, allocations: 2.438 kB / 0.9776 GB, free: 1.633 MB / 0.7169 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.003511/0.9647, allocations: 1.681 MB / 0.9793 GB, free: 16.73 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.582e-05/0.9648, allocations: 12.95 kB / 0.9793 GB, free: 16.73 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001423/0.9649, allocations: 111.4 kB / 0.9794 GB, free: 16.69 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002831/0.9678, allocations: 0.5422 MB / 0.9799 GB, free: 16.62 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001992/0.9698, allocations: 1.048 MB / 0.9809 GB, free: 16.27 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.134e-05/0.9698, allocations: 53.78 kB / 0.981 GB, free: 16.27 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001186/0.97, allocations: 65.69 kB / 0.981 GB, free: 16.27 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002123/0.9721, allocations: 1.11 MB / 0.9821 GB, free: 16.17 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.9721, allocations: 4 kB / 0.9821 GB, free: 16.16 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.514e-05/0.9722, allocations: 24.19 kB / 0.9821 GB, free: 16.16 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.361e-05/0.9723, allocations: 34.59 kB / 0.9822 GB, free: 16.16 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002631/0.9749, allocations: 1.16 MB / 0.9833 GB, free: 16.16 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.004983/0.9799, allocations: 3.177 MB / 0.9864 GB, free: 15.22 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001482/0.9814, allocations: 0.6856 MB / 0.9871 GB, free: 15.2 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006723/0.9821, allocations: 419.9 kB / 0.9875 GB, free: 15.19 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009727/0.9831, allocations: 1.031 MB / 0.9885 GB, free: 14.06 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008938/0.984, allocations: 0.5136 MB / 0.989 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=57): time 2.685e-06/0.984, allocations: 0 / 0.989 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of matching and sorting (n=57): time 0.002592/0.9866, allocations: 1.229 MB / 0.9902 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.683e-05/0.9867, allocations: 138.3 kB / 0.9903 GB, free: 13.66 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001568/0.9883, allocations: 1.178 MB / 0.9915 GB, free: 13.51 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.394e-05/0.9883, allocations: 41.23 kB / 0.9915 GB, free: 13.48 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000278/0.9886, allocations: 438.5 kB / 0.9919 GB, free: 13.34 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.9888, allocations: 199.9 kB / 0.9921 GB, free: 13.22 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.989, allocations: 147.7 kB / 0.9923 GB, free: 13.2 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.9892, allocations: 330.9 kB / 0.9926 GB, free: 12.89 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.9902, allocations: 442.9 kB / 0.993 GB, free: 12.88 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001226/0.9915, allocations: 0.5941 MB / 0.9936 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001782/0.9933, allocations: 0.9296 MB / 0.9945 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.9933, allocations: 0.9375 kB / 0.9945 GB, free: 12.58 MB / 0.7325 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002672/0.996, allocations: 1.2 MB / 0.9957 GB, free: 12.45 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.996, allocations: 40.12 kB / 0.9957 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.996, allocations: 7.5 kB / 0.9957 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.9961, allocations: 5.812 kB / 0.9957 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008576/0.9969, allocations: 187.9 kB / 0.9959 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.223e-05/0.9969, allocations: 11.73 kB / 0.9959 GB, free: 12.41 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001356/0.9983, allocations: 255.8 kB / 0.9962 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-05/0.9984, allocations: 34.61 kB / 0.9962 GB, free: 12.35 MB / 0.7325 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.0004128/0.9988, allocations: 329.2 kB / 0.9965 GB, free: 12.2 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002001/0.999, allocations: 122 kB / 0.9966 GB, free: 12.14 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001841/1.001, allocations: 0.9971 MB / 0.9976 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/1.001, allocations: 5.031 kB / 0.9976 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/1.001, allocations: 1.062 kB / 0.9976 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.824e-06/1.001, allocations: 4.844 kB / 0.9976 GB, free: 12.04 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004179/1.005, allocations: 3.169 MB / 1.001 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.356e-05/1.005, allocations: 12.12 kB / 1.001 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005514/1.006, allocations: 117.9 kB / 1.001 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.357e-06/1.006, allocations: 11.06 kB / 1.001 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.955e-05/1.006, allocations: 25.84 kB / 1.001 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.999e-06/1.006, allocations: 21.02 kB / 1.001 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.761e-06/1.006, allocations: 11.5 kB / 1.001 GB, free: 11.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001904/1.008, allocations: 1.354 MB / 1.002 GB, free: 10.68 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004543/1.008, allocations: 342.8 kB / 1.003 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001531/1.008, allocations: 23.17 kB / 1.003 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/1.009, allocations: 98.06 kB / 1.003 GB, free: 10.5 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.476e-05/1.01, allocations: 55.05 kB / 1.003 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.621e-05/1.01, allocations: 45.05 kB / 1.003 GB, free: 10.49 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001222/1.011, allocations: 0.8506 MB / 1.004 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.51e-07/1.011, allocations: 2.531 kB / 1.004 GB, free: 10.37 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001095/1.012, allocations: 301 kB / 1.004 GB, free: 10.35 MB / 0.7325 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.002985/1.015, allocations: 2.132 MB / 1.006 GB, free: 9.188 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002003/1.017, allocations: 1.012 MB / 1.007 GB, free: 9.102 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.112e-06/1.017, allocations: 0 / 1.007 GB, free: 9.102 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0007843/1.018, allocations: 0.5154 MB / 1.007 GB, free: 9.031 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002459/1.02, allocations: 0.5477 MB / 1.008 GB, free: 8.93 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01443/1.035, allocations: 9.405 MB / 1.017 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006678/1.035, allocations: 1.067 MB / 1.018 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0008866/1.036, allocations: 279 kB / 1.018 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004563/1.037, allocations: 360.7 kB / 1.019 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of SimCode: time 7.51e-07/1.037, allocations: 0 / 1.019 GB, free: 5.309 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.527/3.563, allocations: 31.8 MB / 1.05 GB, free: 12.91 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.58/18.14, allocations: 5.062 kB / 1.05 GB, free: 12.91 MB / 0.7637 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)