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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001193/0.001193, allocations: 90.52 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.008755/0.008755, allocations: 170.2 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.449/1.449, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.653/2.653, allocations: 437.8 MB / 0.7121 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004617/0.0004617, allocations: 12.23 kB / 0.8729 GB, free: 3.23 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6634/0.6639, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.1875/0.8514, allocations: 189.1 MB / 1.208 GB, free: 2.039 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.009728/0.8612, allocations: 6.926 MB / 1.215 GB, free: 11.09 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001138/0.8624, allocations: 35.69 kB / 1.215 GB, free: 11.06 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001428/0.8638, allocations: 0.5632 MB / 1.215 GB, free: 10.49 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.004838/0.8687, allocations: 2.179 MB / 1.217 GB, free: 8.305 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002819/0.8715, allocations: 1.294 MB / 1.219 GB, free: 7.031 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003913/0.8754, allocations: 3.741 MB / 1.222 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001114/0.8766, allocations: 0.7677 MB / 1.223 GB, free: 2.5 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001542/0.8781, allocations: 0.9686 MB / 1.224 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001518/0.8796, allocations: 0.7839 MB / 1.225 GB, free: 0.7422 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001177/0.8798, allocations: 43.94 kB / 1.225 GB, free: 0.6992 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003675/0.8834, allocations: 2.225 MB / 1.227 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003452/0.8838, allocations: 294.9 kB / 1.227 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005704/0.8844, allocations: 0.5534 MB / 1.228 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.003057/0.8874, allocations: 2.391 MB / 1.23 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.8875, allocations: 0 / 1.23 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8875, allocations: 0 / 1.23 GB, free: 11.21 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.347e-05/0.8875, allocations: 0 / 1.23 GB, free: 11.21 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.002994/0.8905, allocations: 1.391 MB / 1.231 GB, free: 9.762 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.019e-05/0.8905, allocations: 12.03 kB / 1.231 GB, free: 9.75 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/0.8907, allocations: 110.5 kB / 1.232 GB, free: 9.633 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002977/0.8937, allocations: 0.5995 MB / 1.232 GB, free: 9.031 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001967/0.8957, allocations: 0.9922 MB / 1.233 GB, free: 8 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001226/0.8969, allocations: 321 kB / 1.233 GB, free: 7.688 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000125/0.897, allocations: 68 kB / 1.233 GB, free: 7.621 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002748/0.8998, allocations: 1.152 MB / 1.235 GB, free: 6.441 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.713e-05/0.8998, allocations: 3.938 kB / 1.235 GB, free: 6.438 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.187e-05/0.8999, allocations: 27.98 kB / 1.235 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.185e-05/0.9, allocations: 41.23 kB / 1.235 GB, free: 6.367 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00322/0.9032, allocations: 1.258 MB / 1.236 GB, free: 5.105 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.005672/0.9089, allocations: 3.244 MB / 1.239 GB, free: 1.781 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00166/0.9106, allocations: 0.6998 MB / 1.24 GB, free: 1.074 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008154/0.9114, allocations: 434 kB / 1.24 GB, free: 0.6484 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.5058/1.417, allocations: 1.018 MB / 1.241 GB, free: 71.48 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001326/1.419, allocations: 0.5224 MB / 1.242 GB, free: 71.38 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=57): time 3.426e-06/1.419, allocations: 0 / 1.242 GB, free: 71.38 MB / 0.9825 GB Notification: Performance of matching and sorting (n=57): time 0.003357/1.422, allocations: 1.249 MB / 1.243 GB, free: 71.3 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/1.422, allocations: 142 kB / 1.243 GB, free: 71.14 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002428/1.424, allocations: 1.215 MB / 1.244 GB, free: 71 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 9.7e-05/1.425, allocations: 38.3 kB / 1.244 GB, free: 70.97 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003485/1.425, allocations: 441.6 kB / 1.245 GB, free: 70.87 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001633/1.425, allocations: 189.2 kB / 1.245 GB, free: 70.77 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/1.425, allocations: 56.06 kB / 1.245 GB, free: 70.75 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 5.787e-05/1.425, allocations: 330.4 kB / 1.245 GB, free: 70.45 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00146/1.427, allocations: 486.9 kB / 1.246 GB, free: 70.45 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001591/1.428, allocations: 0.6406 MB / 1.246 GB, free: 70.32 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002307/1.431, allocations: 0.9769 MB / 1.247 GB, free: 70.13 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.143e-06/1.431, allocations: 4 kB / 1.247 GB, free: 70.13 MB / 0.9825 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003605/1.434, allocations: 1.285 MB / 1.248 GB, free: 70 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 4.296e-05/1.434, allocations: 42.47 kB / 1.249 GB, free: 69.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/1.434, allocations: 4.188 kB / 1.249 GB, free: 69.97 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.268e-05/1.434, allocations: 5.844 kB / 1.249 GB, free: 69.97 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001085/1.435, allocations: 213.6 kB / 1.249 GB, free: 69.97 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.677e-05/1.435, allocations: 6.547 kB / 1.249 GB, free: 69.97 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001771/1.437, allocations: 306.2 kB / 1.249 GB, free: 69.93 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001029/1.437, allocations: 35.02 kB / 1.249 GB, free: 69.93 MB / 0.9825 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.000499/1.438, allocations: 329.3 kB / 1.249 GB, free: 69.78 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002063/1.438, allocations: 119.7 kB / 1.25 GB, free: 69.72 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002272/1.44, allocations: 1.013 MB / 1.25 GB, free: 69.62 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/1.44, allocations: 7.609 kB / 1.251 GB, free: 69.62 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.554e-06/1.44, allocations: 2.109 kB / 1.251 GB, free: 69.62 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/1.44, allocations: 3.312 kB / 1.251 GB, free: 69.62 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005806/1.446, allocations: 3.186 MB / 1.254 GB, free: 68.86 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.964e-05/1.446, allocations: 6.781 kB / 1.254 GB, free: 68.86 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006224/1.447, allocations: 127.8 kB / 1.254 GB, free: 68.86 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.54e-05/1.447, allocations: 11.52 kB / 1.254 GB, free: 68.86 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.548e-05/1.447, allocations: 25.38 kB / 1.254 GB, free: 68.86 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.457e-05/1.447, allocations: 15.69 kB / 1.254 GB, free: 68.86 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.037e-06/1.447, allocations: 10.91 kB / 1.254 GB, free: 68.86 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002347/1.449, allocations: 1.348 MB / 1.255 GB, free: 68.28 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000492/1.45, allocations: 334.7 kB / 1.255 GB, free: 68.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001869/1.45, allocations: 22.44 kB / 1.255 GB, free: 68.12 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/1.451, allocations: 125.1 kB / 1.256 GB, free: 68.11 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/1.451, allocations: 62.5 kB / 1.256 GB, free: 68.1 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.177e-05/1.452, allocations: 42.2 kB / 1.256 GB, free: 68.1 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0018/1.453, allocations: 0.8899 MB / 1.257 GB, free: 67.98 MB / 0.9825 GB Notification: Performance of sort global known variables: time 4.31e-07/1.453, allocations: 0 / 1.257 GB, free: 67.98 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.001111/1.454, allocations: 303.2 kB / 1.257 GB, free: 67.96 MB / 0.9825 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.00276/1.457, allocations: 2.151 MB / 1.259 GB, free: 66.84 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.002483/1.46, allocations: 1.053 MB / 1.26 GB, free: 66.75 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 4.549e-06/1.46, allocations: 1.469 kB / 1.26 GB, free: 66.75 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0009093/1.461, allocations: 0.5208 MB / 1.26 GB, free: 66.68 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003887/1.465, allocations: 0.532 MB / 1.261 GB, free: 66.65 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01884/1.483, allocations: 10.41 MB / 1.271 GB, free: 62.75 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007054/1.484, allocations: 1.07 MB / 1.272 GB, free: 62.03 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 0.001415/1.486, allocations: 277.6 kB / 1.272 GB, free: 61.98 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005076/1.486, allocations: 356.8 kB / 1.273 GB, free: 61.98 MB / 0.9825 GB Notification: Performance of SimCode: time 1.633e-06/1.486, allocations: 4 kB / 1.273 GB, free: 61.97 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04657/1.533, allocations: 30.33 MB / 1.302 GB, free: 54.25 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00015/1.533, allocations: 273.5 kB / 1.303 GB, free: 53.9 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.45/3.983, allocations: 0 / 1.303 GB, free: 53.9 MB / 0.9825 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)