Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.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/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_10_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_10_Buildings_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.001237/0.001237, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001284/0.001284, allocations: 194.2 kB / 16.53 MB, free: 6.391 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.355/1.355, allocations: 222.9 MB / 240.2 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.513/2.513, allocations: 437 MB / 0.7104 GB, free: 5.023 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 75.88 kB / 0.8693 GB, free: 4.551 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5897/0.5914, allocations: 151.6 MB / 1.017 GB, free: 2.57 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1954/0.7868, allocations: 194 MB / 1.207 GB, free: 15.84 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.01101/0.7979, allocations: 6.934 MB / 1.214 GB, free: 8.891 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001727/0.7997, allocations: 43.69 kB / 1.214 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002114/0.8018, allocations: 0.683 MB / 1.214 GB, free: 8.16 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005827/0.8077, allocations: 2.345 MB / 1.217 GB, free: 5.809 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003318/0.811, allocations: 1.404 MB / 1.218 GB, free: 4.422 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003763/0.8148, allocations: 2.99 MB / 1.221 GB, free: 1.418 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001315/0.8161, allocations: 0.8879 MB / 1.222 GB, free: 0.5195 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00273/0.8189, allocations: 1.133 MB / 1.223 GB, free: 15.38 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001249/0.8201, allocations: 0.7962 MB / 1.224 GB, free: 14.59 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0001631/0.8203, allocations: 104 kB / 1.224 GB, free: 14.49 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003671/0.824, allocations: 2.058 MB / 1.226 GB, free: 12.43 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003647/0.8244, allocations: 362.9 kB / 1.226 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0006413/0.825, allocations: 0.583 MB / 1.227 GB, free: 11.49 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003544/0.8286, allocations: 2.357 MB / 1.229 GB, free: 9.125 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 1.106e-05/0.8286, allocations: 11.98 kB / 1.229 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.8286, allocations: 0 / 1.229 GB, free: 9.113 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 2.21e-05/0.8286, allocations: 0 / 1.229 GB, free: 9.113 MB / 0.9825 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.00345/0.8321, allocations: 1.625 MB / 1.231 GB, free: 7.43 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.932e-05/0.8321, allocations: 12.03 kB / 1.231 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001353/0.8323, allocations: 110.5 kB / 1.231 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002988/0.8353, allocations: 0.5332 MB / 1.231 GB, free: 6.766 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002122/0.8374, allocations: 0.9945 MB / 1.232 GB, free: 5.73 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001257/0.8387, allocations: 273 kB / 1.232 GB, free: 5.461 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001433/0.8389, allocations: 68 kB / 1.233 GB, free: 5.395 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002624/0.8415, allocations: 1.132 MB / 1.234 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.8415, allocations: 0 / 1.234 GB, free: 4.23 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001058/0.8416, allocations: 28 kB / 1.234 GB, free: 4.203 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.076e-05/0.8417, allocations: 29.31 kB / 1.234 GB, free: 4.176 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003381/0.8451, allocations: 1.207 MB / 1.235 GB, free: 2.969 MB / 0.9825 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.006266/0.8514, allocations: 3.213 MB / 1.238 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001855/0.8532, allocations: 0.688 MB / 1.239 GB, free: 14.97 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008534/0.8541, allocations: 431.8 kB / 1.239 GB, free: 14.55 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000942/0.8551, allocations: 1.021 MB / 1.24 GB, free: 13.31 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001379/0.8564, allocations: 0.5143 MB / 1.241 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=57): time 4.729e-06/0.8565, allocations: 0 / 1.241 GB, free: 12.77 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57): time 0.004107/0.8606, allocations: 1.228 MB / 1.242 GB, free: 11.53 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.198e-05/0.8607, allocations: 140.9 kB / 1.242 GB, free: 11.36 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002461/0.8632, allocations: 1.192 MB / 1.243 GB, free: 10.15 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001117/0.8633, allocations: 37.7 kB / 1.243 GB, free: 10.11 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003964/0.8637, allocations: 441.4 kB / 1.244 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001892/0.8639, allocations: 193.2 kB / 1.244 GB, free: 9.484 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003062/0.8642, allocations: 150.1 kB / 1.244 GB, free: 9.332 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001431/0.8644, allocations: 330 kB / 1.244 GB, free: 9.004 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001393/0.8658, allocations: 456.9 kB / 1.245 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001542/0.8673, allocations: 0.6171 MB / 1.245 GB, free: 7.887 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002207/0.8695, allocations: 0.9418 MB / 1.246 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.8696, allocations: 0 / 1.246 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003447/0.873, allocations: 1.232 MB / 1.247 GB, free: 5.641 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.653e-05/0.8731, allocations: 37.69 kB / 1.247 GB, free: 5.598 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.8731, allocations: 4 kB / 1.247 GB, free: 5.594 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.909e-05/0.8731, allocations: 7.938 kB / 1.247 GB, free: 5.586 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001021/0.8741, allocations: 196 kB / 1.248 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.764e-05/0.8742, allocations: 15.92 kB / 1.248 GB, free: 5.379 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00171/0.8759, allocations: 270.9 kB / 1.248 GB, free: 5.113 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.876, allocations: 35.97 kB / 1.248 GB, free: 5.078 MB / 0.9981 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.0005431/0.8765, allocations: 323.3 kB / 1.248 GB, free: 4.746 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002878/0.8768, allocations: 115.1 kB / 1.248 GB, free: 4.633 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002296/0.8791, allocations: 0.999 MB / 1.249 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.699e-05/0.8792, allocations: 15.92 kB / 1.249 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.8792, allocations: 0 / 1.249 GB, free: 3.613 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.8792, allocations: 4.031 kB / 1.249 GB, free: 3.609 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005026/0.8842, allocations: 3.161 MB / 1.252 GB, free: 296 kB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.778e-05/0.8843, allocations: 12 kB / 1.252 GB, free: 284 kB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006146/0.8849, allocations: 120.3 kB / 1.253 GB, free: 164 kB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.258e-05/0.8849, allocations: 15.94 kB / 1.253 GB, free: 148 kB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.497e-05/0.885, allocations: 31.92 kB / 1.253 GB, free: 116 kB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.139e-05/0.885, allocations: 8 kB / 1.253 GB, free: 108 kB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.955e-06/0.885, allocations: 11.94 kB / 1.253 GB, free: 96 kB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.4154/1.3, allocations: 1.335 MB / 1.254 GB, free: 233 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000521/1.301, allocations: 333.2 kB / 1.254 GB, free: 232.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001674/1.301, allocations: 25 kB / 1.254 GB, free: 232.9 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00118/1.302, allocations: 110.6 kB / 1.254 GB, free: 232.9 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/1.302, allocations: 60.81 kB / 1.254 GB, free: 232.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.358e-05/1.303, allocations: 40.97 kB / 1.254 GB, free: 232.9 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001741/1.304, allocations: 0.869 MB / 1.255 GB, free: 232.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 3.21e-07/1.304, allocations: 0 / 1.255 GB, free: 232.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00108/1.305, allocations: 297.5 kB / 1.256 GB, free: 232.5 MB / 0.9981 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.003058/1.308, allocations: 2.126 MB / 1.258 GB, free: 231.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002857/1.311, allocations: 1.046 MB / 1.259 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.486e-06/1.311, allocations: 4.422 kB / 1.259 GB, free: 230.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009848/1.312, allocations: 0.5166 MB / 1.259 GB, free: 230.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002845/1.315, allocations: 0.5603 MB / 1.26 GB, free: 230.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01705/1.332, allocations: 9.988 MB / 1.269 GB, free: 225.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005565/1.333, allocations: 1.071 MB / 1.271 GB, free: 224.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001241/1.334, allocations: 277 kB / 1.271 GB, free: 224.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004461/1.335, allocations: 360.5 kB / 1.271 GB, free: 224.1 MB / 0.9981 GB Notification: Performance of SimCode: time 8.72e-07/1.335, allocations: 0 / 1.271 GB, free: 224.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.055/1.39, allocations: 31.54 MB / 1.302 GB, free: 202.1 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.016/9.405, allocations: 19.95 kB / 1.302 GB, free: 202.1 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_10_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)