Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_11_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.001487/0.001487, allocations: 108 kB / 15.61 MB, free: 152 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.00145/0.00145, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.391 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.514/2.514, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001801/0.001801, allocations: 64.97 kB / 0.9087 GB, free: 34.27 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2555, allocations: 159.2 MB / 1.064 GB, free: 14.21 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6269/0.8824, allocations: 194 MB / 1.254 GB, free: 4.957 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.007615/0.89, allocations: 6.94 MB / 1.26 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005593/0.8906, allocations: 44.72 kB / 1.26 GB, free: 4.852 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001143/0.8918, allocations: 0.6871 MB / 1.261 GB, free: 4.844 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.003955/0.8958, allocations: 2.339 MB / 1.263 GB, free: 4.762 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.002519/0.8983, allocations: 1.42 MB / 1.265 GB, free: 4.727 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.002336/0.9007, allocations: 2.98 MB / 1.268 GB, free: 4.723 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009369/0.9016, allocations: 0.8948 MB / 1.268 GB, free: 4.656 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001716/0.9033, allocations: 1.126 MB / 1.27 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009097/0.9042, allocations: 0.7951 MB / 1.27 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.0001381/0.9044, allocations: 101.6 kB / 1.27 GB, free: 4.652 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003047/0.9074, allocations: 2.055 MB / 1.272 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0003396/0.9078, allocations: 368.1 kB / 1.273 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0005762/0.9084, allocations: 0.5849 MB / 1.273 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.002844/0.9112, allocations: 2.366 MB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.9112, allocations: 5.094 kB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of FrontEnd: time 8.62e-07/0.9112, allocations: 1.031 kB / 1.276 GB, free: 4.504 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.827e-05/0.9113, allocations: 0 / 1.276 GB, free: 4.504 MB / 0.9981 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.002982/0.9143, allocations: 1.626 MB / 1.277 GB, free: 19.64 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.9143, allocations: 9.469 kB / 1.277 GB, free: 19.64 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.9144, allocations: 113.2 kB / 1.277 GB, free: 19.6 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002743/0.9172, allocations: 0.5327 MB / 1.278 GB, free: 19.54 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001874/0.9191, allocations: 0.9835 MB / 1.279 GB, free: 19.2 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001204/0.9203, allocations: 278.6 kB / 1.279 GB, free: 19.2 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001379/0.9204, allocations: 69.09 kB / 1.279 GB, free: 19.2 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002305/0.9228, allocations: 1.124 MB / 1.28 GB, free: 19.09 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.9228, allocations: 0 / 1.28 GB, free: 19.09 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.4e-05/0.9229, allocations: 32.47 kB / 1.28 GB, free: 19.09 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.351e-05/0.9229, allocations: 34.44 kB / 1.28 GB, free: 19.09 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00291/0.9258, allocations: 1.198 MB / 1.282 GB, free: 19.08 MB / 1.014 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.004686/0.9305, allocations: 3.217 MB / 1.285 GB, free: 18.14 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00145/0.932, allocations: 0.6807 MB / 1.285 GB, free: 18.12 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006801/0.9327, allocations: 424.8 kB / 1.286 GB, free: 18.11 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000907/0.9336, allocations: 1.027 MB / 1.287 GB, free: 16.98 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008421/0.9344, allocations: 0.5119 MB / 1.287 GB, free: 16.88 MB / 1.014 GB Notification: Performance of pre-optimization done (n=57): time 1.613e-06/0.9345, allocations: 3.938 kB / 1.287 GB, free: 16.88 MB / 1.014 GB Notification: Performance of matching and sorting (n=57): time 0.002517/0.937, allocations: 1.224 MB / 1.288 GB, free: 16.74 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.523e-05/0.9371, allocations: 138.4 kB / 1.289 GB, free: 16.58 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001645/0.9387, allocations: 1.198 MB / 1.29 GB, free: 16.43 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 6.749e-05/0.9388, allocations: 38.95 kB / 1.29 GB, free: 16.4 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002725/0.9391, allocations: 445.6 kB / 1.29 GB, free: 16.27 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001078/0.9392, allocations: 192.5 kB / 1.29 GB, free: 16.15 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002346/0.9394, allocations: 143.5 kB / 1.291 GB, free: 16.13 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001336/0.9396, allocations: 331 kB / 1.291 GB, free: 15.82 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001186/0.9408, allocations: 459.4 kB / 1.291 GB, free: 15.82 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001309/0.9421, allocations: 0.6149 MB / 1.292 GB, free: 15.69 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001863/0.944, allocations: 0.9454 MB / 1.293 GB, free: 15.52 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.437e-06/0.944, allocations: 2.125 kB / 1.293 GB, free: 15.52 MB / 1.014 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002846/0.9468, allocations: 1.232 MB / 1.294 GB, free: 15.36 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 4.217e-05/0.9469, allocations: 37.27 kB / 1.294 GB, free: 15.33 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.9469, allocations: 3.594 kB / 1.294 GB, free: 15.33 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.9469, allocations: 9.594 kB / 1.294 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008723/0.9478, allocations: 194.2 kB / 1.294 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.112e-05/0.9478, allocations: 13.09 kB / 1.294 GB, free: 15.32 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001405/0.9492, allocations: 272.3 kB / 1.295 GB, free: 15.25 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.742e-05/0.9493, allocations: 42.36 kB / 1.295 GB, free: 15.25 MB / 1.014 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.0003723/0.9497, allocations: 323.7 kB / 1.295 GB, free: 15.1 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001671/0.9499, allocations: 119.9 kB / 1.295 GB, free: 15.04 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001828/0.9517, allocations: 0.9931 MB / 1.296 GB, free: 14.93 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.122e-05/0.9517, allocations: 6.625 kB / 1.296 GB, free: 14.93 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.801e-06/0.9517, allocations: 0 / 1.296 GB, free: 14.93 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.647e-06/0.9517, allocations: 17.47 kB / 1.296 GB, free: 14.92 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003858/0.9556, allocations: 3.153 MB / 1.299 GB, free: 14.15 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.566e-06/0.9556, allocations: 11.03 kB / 1.299 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005228/0.9562, allocations: 116.8 kB / 1.299 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.004e-05/0.9562, allocations: 14.58 kB / 1.299 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.828e-05/0.9562, allocations: 24.64 kB / 1.299 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.736e-06/0.9562, allocations: 12.84 kB / 1.299 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.9563, allocations: 15.38 kB / 1.299 GB, free: 14.14 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001779/0.958, allocations: 1.345 MB / 1.301 GB, free: 13.56 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003666/0.9584, allocations: 326 kB / 1.301 GB, free: 13.4 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001536/0.9586, allocations: 32.78 kB / 1.301 GB, free: 13.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001046/0.9596, allocations: 109.7 kB / 1.301 GB, free: 13.39 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.707e-05/0.9597, allocations: 64.83 kB / 1.301 GB, free: 13.38 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.666e-05/0.9598, allocations: 42.98 kB / 1.301 GB, free: 13.38 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001257/0.9611, allocations: 0.8625 MB / 1.302 GB, free: 13.26 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9611, allocations: 0 / 1.302 GB, free: 13.26 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0009008/0.962, allocations: 306.7 kB / 1.302 GB, free: 13.23 MB / 1.014 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.002512/0.9645, allocations: 2.133 MB / 1.304 GB, free: 12.07 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.00209/0.9666, allocations: 1.05 MB / 1.305 GB, free: 11.98 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.566e-06/0.9666, allocations: 6.656 kB / 1.305 GB, free: 11.98 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0007462/0.9674, allocations: 0.5089 MB / 1.306 GB, free: 11.91 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002274/0.9696, allocations: 0.558 MB / 1.306 GB, free: 11.81 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01348/0.9831, allocations: 9.985 MB / 1.316 GB, free: 8.262 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005715/0.9837, allocations: 1.074 MB / 1.317 GB, free: 7.543 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009289/0.9847, allocations: 273.7 kB / 1.317 GB, free: 7.48 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003911/0.9851, allocations: 360.6 kB / 1.318 GB, free: 7.473 MB / 1.014 GB Notification: Performance of SimCode: time 2.1e-07/0.9851, allocations: 0 / 1.318 GB, free: 7.473 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.552/2.537, allocations: 31.55 MB / 1.349 GB, free: 12.96 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.91/12.45, allocations: 12.98 kB / 1.349 GB, free: 12.95 MB / 1.029 GB (rm -f Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_11_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)