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.001129/0.001133, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001195/0.001196, allocations: 195.2 kB / 16.25 MB, free: 6.621 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.442/1.442, allocations: 222.9 MB / 239.9 MB, free: 4.508 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.685/2.685, allocations: 437 MB / 0.7101 GB, free: 5.227 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001562/0.001561, allocations: 67.91 kB / 0.8689 GB, free: 4.934 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7884/0.79, allocations: 151.6 MB / 1.017 GB, free: 2.797 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2695/1.06, allocations: 191.5 MB / 1.204 GB, free: 2.613 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01182/1.071, allocations: 6.889 MB / 1.211 GB, free: 11.71 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002387/1.074, allocations: 43.69 kB / 1.211 GB, free: 11.66 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002216/1.076, allocations: 0.5867 MB / 1.211 GB, free: 11.07 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006944/1.083, allocations: 2.218 MB / 1.213 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003681/1.087, allocations: 1.298 MB / 1.215 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.004646/1.091, allocations: 3.001 MB / 1.218 GB, free: 4.555 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001576/1.093, allocations: 0.9073 MB / 1.219 GB, free: 3.637 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00319/1.096, allocations: 1.158 MB / 1.22 GB, free: 2.48 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00179/1.098, allocations: 0.8382 MB / 1.22 GB, free: 1.645 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001844/1.098, allocations: 100 kB / 1.221 GB, free: 1.547 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004074/1.102, allocations: 2.147 MB / 1.223 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.000439/1.103, allocations: 362.9 kB / 1.223 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0008085/1.104, allocations: 0.5908 MB / 1.224 GB, free: 14.45 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.004236/1.108, allocations: 2.466 MB / 1.226 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/1.108, allocations: 0 / 1.226 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.854e-06/1.108, allocations: 0 / 1.226 GB, free: 11.97 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.631e-05/1.108, allocations: 4 kB / 1.226 GB, free: 11.97 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.003644/1.112, allocations: 1.625 MB / 1.228 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/1.112, allocations: 8.031 kB / 1.228 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001504/1.112, allocations: 122.5 kB / 1.228 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002976/1.115, allocations: 0.5215 MB / 1.228 GB, free: 9.625 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002208/1.117, allocations: 0.9946 MB / 1.229 GB, free: 8.59 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001135/1.118, allocations: 273.1 kB / 1.229 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001246/1.118, allocations: 71.94 kB / 1.23 GB, free: 8.25 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002554/1.121, allocations: 1.124 MB / 1.231 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.888e-05/1.121, allocations: 3.938 kB / 1.231 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.967e-05/1.121, allocations: 31.98 kB / 1.231 GB, free: 7.062 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.912e-05/1.121, allocations: 25.31 kB / 1.231 GB, free: 7.039 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003119/1.124, allocations: 1.203 MB / 1.232 GB, free: 5.832 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.006302/1.13, allocations: 3.209 MB / 1.235 GB, free: 2.539 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001696/1.132, allocations: 0.6828 MB / 1.236 GB, free: 1.852 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007679/1.133, allocations: 426 kB / 1.236 GB, free: 1.434 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0009703/1.134, allocations: 1.029 MB / 1.237 GB, free: 188 kB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001101/1.135, allocations: 0.5143 MB / 1.238 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=57): time 2.324e-06/1.135, allocations: 0 / 1.238 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57): time 0.003202/1.138, allocations: 1.232 MB / 1.239 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.625e-05/1.138, allocations: 136.9 kB / 1.239 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002032/1.14, allocations: 1.2 MB / 1.24 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001065/1.141, allocations: 37.7 kB / 1.24 GB, free: 12.98 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/1.141, allocations: 445.4 kB / 1.241 GB, free: 12.54 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002088/1.141, allocations: 193.2 kB / 1.241 GB, free: 12.35 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002856/1.141, allocations: 146.1 kB / 1.241 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001331/1.142, allocations: 330 kB / 1.241 GB, free: 11.87 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00125/1.143, allocations: 460.9 kB / 1.242 GB, free: 11.42 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001448/1.144, allocations: 0.6133 MB / 1.242 GB, free: 10.75 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002056/1.146, allocations: 0.9418 MB / 1.243 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/1.146, allocations: 0 / 1.243 GB, free: 9.754 MB / 0.9981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003269/1.15, allocations: 1.232 MB / 1.244 GB, free: 8.504 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 5.669e-05/1.15, allocations: 41.69 kB / 1.244 GB, free: 8.457 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.182e-05/1.15, allocations: 4 kB / 1.244 GB, free: 8.453 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.35e-05/1.15, allocations: 11.94 kB / 1.244 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009609/1.151, allocations: 200 kB / 1.245 GB, free: 8.246 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.322e-05/1.151, allocations: 4 kB / 1.245 GB, free: 8.242 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001734/1.152, allocations: 270.8 kB / 1.245 GB, free: 7.977 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.343e-05/1.153, allocations: 39.97 kB / 1.245 GB, free: 7.938 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.000541/1.153, allocations: 328.5 kB / 1.245 GB, free: 7.602 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002179/1.153, allocations: 118.6 kB / 1.245 GB, free: 7.484 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002073/1.155, allocations: 0.9953 MB / 1.246 GB, free: 6.488 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-05/1.155, allocations: 15.94 kB / 1.246 GB, free: 6.473 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.037e-05/1.156, allocations: 4 kB / 1.246 GB, free: 6.469 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/1.156, allocations: 3.984 kB / 1.246 GB, free: 6.465 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004754/1.16, allocations: 3.158 MB / 1.249 GB, free: 3.148 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.859e-06/1.16, allocations: 4 kB / 1.249 GB, free: 3.145 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005942/1.161, allocations: 120.2 kB / 1.249 GB, free: 3.027 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.163e-05/1.161, allocations: 12 kB / 1.25 GB, free: 3.016 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.947e-05/1.161, allocations: 23.98 kB / 1.25 GB, free: 2.992 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.333e-05/1.161, allocations: 15.94 kB / 1.25 GB, free: 2.977 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.716e-06/1.161, allocations: 15.92 kB / 1.25 GB, free: 2.961 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002237/1.163, allocations: 1.334 MB / 1.251 GB, free: 1.512 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006016/1.164, allocations: 331.3 kB / 1.251 GB, free: 1.168 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002164/1.164, allocations: 27.92 kB / 1.251 GB, free: 1.141 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001252/1.165, allocations: 115.9 kB / 1.251 GB, free: 1.027 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001235/1.166, allocations: 59.75 kB / 1.251 GB, free: 0.9688 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.078e-05/1.166, allocations: 39.97 kB / 1.251 GB, free: 0.9297 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001727/1.167, allocations: 0.8716 MB / 1.252 GB, free: 52 kB / 0.9981 GB Notification: Performance of sort global known variables: time 1.3e-07/1.167, allocations: 0 / 1.252 GB, free: 52 kB / 0.9981 GB Notification: Performance of remove unused functions: time 0.5738/1.741, allocations: 288.7 kB / 1.253 GB, free: 233.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.003486/1.745, allocations: 2.131 MB / 1.255 GB, free: 232.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0029/1.748, allocations: 1.05 MB / 1.256 GB, free: 232.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.076e-05/1.748, allocations: 1.875 kB / 1.256 GB, free: 232.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001105/1.749, allocations: 0.5189 MB / 1.256 GB, free: 232 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002975/1.752, allocations: 0.554 MB / 1.257 GB, free: 231.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02216/1.774, allocations: 10.25 MB / 1.267 GB, free: 226.4 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007001/1.775, allocations: 1.074 MB / 1.268 GB, free: 225.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00148/1.776, allocations: 271.3 kB / 1.268 GB, free: 225.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005104/1.777, allocations: 361.1 kB / 1.268 GB, free: 225.4 MB / 0.9981 GB Notification: Performance of SimCode: time 9.02e-07/1.777, allocations: 0 / 1.268 GB, free: 225.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04903/1.826, allocations: 31.34 MB / 1.299 GB, free: 205.2 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001606/1.826, allocations: 264.3 kB / 1.299 GB, free: 204.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.592/4.418, allocations: 0 / 1.299 GB, free: 204.8 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)