Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-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(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_latest_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.0008536/0.0008537, allocations: 99.62 kB / 15.05 MB, free: 1.105 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.0009269/0.0009268, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.375/1.375, allocations: 223.2 MB / 239.9 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.437/2.437, allocations: 409.2 MB / 0.6838 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003678/0.0003679, allocations: 12 kB / 0.8375 GB, free: 6.609 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7551/0.7555, allocations: 146.8 MB / 0.9809 GB, free: 6.363 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.2057/0.9613, allocations: 162 MB / 1.139 GB, free: 3.969 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01075/0.9721, allocations: 6.281 MB / 1.145 GB, free: 13.68 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001598/0.9737, allocations: 35.69 kB / 1.145 GB, free: 13.64 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 0.002164/0.9759, allocations: 0.6727 MB / 1.146 GB, free: 12.96 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.005449/0.9814, allocations: 1.671 MB / 1.148 GB, free: 11.29 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.004605/0.986, allocations: 1.537 MB / 1.149 GB, free: 9.789 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.003789/0.9898, allocations: 1.713 MB / 1.151 GB, free: 8.074 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001412/0.9912, allocations: 0.7092 MB / 1.151 GB, free: 7.352 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002244/0.9935, allocations: 0.915 MB / 1.152 GB, free: 6.434 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009766/0.9945, allocations: 0.5211 MB / 1.153 GB, free: 5.91 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 0.0001155/0.9946, allocations: 47.94 kB / 1.153 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0033/0.9979, allocations: 1.17 MB / 1.154 GB, free: 4.691 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 0.0003806/0.9983, allocations: 283.1 kB / 1.154 GB, free: 4.414 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.0003901/0.9987, allocations: 237.1 kB / 1.154 GB, free: 4.176 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.002308/1.001, allocations: 1.547 MB / 1.156 GB, free: 2.625 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 3.627e-06/1.001, allocations: 0 / 1.156 GB, free: 2.625 MB / 0.9044 GB Notification: Performance of FrontEnd: time 3.136e-06/1.001, allocations: 0 / 1.156 GB, free: 2.625 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 1.928e-05/1.001, allocations: 0 / 1.156 GB, free: 2.625 MB / 0.9044 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.003302/1.004, allocations: 1.391 MB / 1.157 GB, free: 1.172 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.765e-05/1.004, allocations: 8.031 kB / 1.157 GB, free: 1.164 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001714/1.005, allocations: 110.5 kB / 1.157 GB, free: 1.047 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002957/1.008, allocations: 0.6112 MB / 1.158 GB, free: 444 kB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001975/1.01, allocations: 0.9058 MB / 1.159 GB, free: 15.49 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001169/1.011, allocations: 324.9 kB / 1.159 GB, free: 15.17 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001401/1.011, allocations: 79.98 kB / 1.159 GB, free: 15.09 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00258/1.013, allocations: 1.128 MB / 1.16 GB, free: 13.93 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/1.014, allocations: 3.938 kB / 1.16 GB, free: 13.93 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.24e-05/1.014, allocations: 32 kB / 1.16 GB, free: 13.9 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.806e-05/1.014, allocations: 33.3 kB / 1.16 GB, free: 13.86 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003338/1.017, allocations: 1.239 MB / 1.162 GB, free: 12.62 MB / 0.92 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.00644/1.023, allocations: 3.276 MB / 1.165 GB, free: 9.273 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/1.025, allocations: 0.7075 MB / 1.166 GB, free: 8.555 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006176/1.026, allocations: 0.6692 MB / 1.166 GB, free: 7.738 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001039/1.027, allocations: 0.5221 MB / 1.167 GB, free: 7.195 MB / 0.92 GB Notification: Performance of pre-optimization done (n=57): time 2.535e-06/1.027, allocations: 0 / 1.167 GB, free: 7.195 MB / 0.92 GB Notification: Performance of matching and sorting (n=57): time 0.003173/1.03, allocations: 1.32 MB / 1.168 GB, free: 5.844 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.509e-05/1.03, allocations: 140.8 kB / 1.168 GB, free: 5.676 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/1.032, allocations: 1.219 MB / 1.169 GB, free: 4.441 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 9.493e-05/1.032, allocations: 37.7 kB / 1.169 GB, free: 4.398 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004044/1.033, allocations: 441.4 kB / 1.17 GB, free: 3.965 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.000185/1.033, allocations: 189.3 kB / 1.17 GB, free: 3.777 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.399e-05/1.033, allocations: 16 kB / 1.17 GB, free: 3.762 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001536/1.033, allocations: 326 kB / 1.17 GB, free: 3.438 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001314/1.035, allocations: 484.9 kB / 1.171 GB, free: 2.965 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00146/1.036, allocations: 0.634 MB / 1.171 GB, free: 2.289 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001379/1.037, allocations: 0.5307 MB / 1.172 GB, free: 1.75 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/1.037, allocations: 4 kB / 1.172 GB, free: 1.746 MB / 0.92 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00335/1.041, allocations: 1.287 MB / 1.173 GB, free: 456 kB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 5.053e-05/1.041, allocations: 35.11 kB / 1.173 GB, free: 416 kB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/1.041, allocations: 4 kB / 1.173 GB, free: 412 kB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.508e-05/1.041, allocations: 11.98 kB / 1.173 GB, free: 400 kB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009699/1.042, allocations: 207.9 kB / 1.173 GB, free: 192 kB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.626e-05/1.042, allocations: 11.92 kB / 1.173 GB, free: 180 kB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001747/1.044, allocations: 318.8 kB / 1.174 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.883e-05/1.044, allocations: 31.98 kB / 1.174 GB, free: 15.83 MB / 0.9356 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 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0006047/1.044, allocations: 323.3 kB / 1.174 GB, free: 15.5 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001917/1.045, allocations: 122.6 kB / 1.174 GB, free: 15.38 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002148/1.047, allocations: 1.008 MB / 1.175 GB, free: 14.36 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.772e-05/1.047, allocations: 12 kB / 1.175 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.715e-06/1.047, allocations: 0 / 1.175 GB, free: 14.35 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.158e-05/1.047, allocations: 7.922 kB / 1.175 GB, free: 14.34 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005116/1.052, allocations: 3.183 MB / 1.178 GB, free: 11.01 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.098e-05/1.052, allocations: 11.95 kB / 1.178 GB, free: 11 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006177/1.053, allocations: 124 kB / 1.178 GB, free: 10.88 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.728e-05/1.053, allocations: 12 kB / 1.178 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.001e-05/1.053, allocations: 23.98 kB / 1.178 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-05/1.053, allocations: 19.92 kB / 1.178 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.231e-05/1.053, allocations: 8 kB / 1.179 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002506/1.055, allocations: 1.746 MB / 1.18 GB, free: 8.793 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006468/1.056, allocations: 339.3 kB / 1.181 GB, free: 8.441 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001597/1.056, allocations: 20 kB / 1.181 GB, free: 8.422 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001183/1.057, allocations: 131.9 kB / 1.181 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001252/1.057, allocations: 63.73 kB / 1.181 GB, free: 8.23 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.422e-05/1.058, allocations: 39.97 kB / 1.181 GB, free: 8.191 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 0.001661/1.059, allocations: 0.8911 MB / 1.182 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of sort global known variables: time 1.2e-07/1.059, allocations: 0 / 1.182 GB, free: 7.293 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.001164/1.06, allocations: 303.9 kB / 1.182 GB, free: 6.996 MB / 0.9356 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.004299/1.065, allocations: 4.626 MB / 1.186 GB, free: 2.133 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.002505/1.067, allocations: 1.049 MB / 1.187 GB, free: 1.078 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 7.815e-06/1.067, allocations: 4 kB / 1.187 GB, free: 1.074 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.000966/1.068, allocations: 0.5163 MB / 1.188 GB, free: 0.5469 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002726/1.071, allocations: 0.5327 MB / 1.189 GB, free: 28 kB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01498/1.086, allocations: 9.038 MB / 1.197 GB, free: 6.59 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007987/1.087, allocations: 1.092 MB / 1.198 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of simCode: alias equations: time 0.001358/1.088, allocations: 281.3 kB / 1.199 GB, free: 5.191 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005898/1.089, allocations: 359.3 kB / 1.199 GB, free: 4.84 MB / 0.9512 GB Notification: Performance of SimCode: time 1.883e-06/1.089, allocations: 3.938 kB / 1.199 GB, free: 4.836 MB / 0.9512 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05986/1.149, allocations: 30.87 MB / 1.229 GB, free: 6.395 MB / 0.9825 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002238/1.149, allocations: 242.9 kB / 1.229 GB, free: 6.066 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.532/3.681, allocations: 3.344 kB / 1.229 GB, free: 6.066 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_latest_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) Environment - environmentSimulation: