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.001233/0.001233, allocations: 107.4 kB / 15.23 MB, free: 0.6406 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.001855/0.001855, allocations: 191.6 kB / 16.14 MB, free: 6.715 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.319/1.319, allocations: 222.9 MB / 239.8 MB, free: 4.547 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.474/2.474, allocations: 437 MB / 0.7099 GB, free: 5.301 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 59.91 kB / 0.8686 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.573/0.5743, allocations: 151.6 MB / 1.017 GB, free: 2.793 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.19/0.7644, allocations: 191.7 MB / 1.204 GB, free: 2.438 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0102/0.7746, allocations: 6.998 MB / 1.211 GB, free: 11.43 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001368/0.776, allocations: 35.75 kB / 1.211 GB, free: 11.39 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.001679/0.7778, allocations: 0.5632 MB / 1.211 GB, free: 10.82 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.005014/0.7828, allocations: 2.194 MB / 1.213 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002916/0.7857, allocations: 1.278 MB / 1.215 GB, free: 7.363 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.00385/0.7896, allocations: 3.742 MB / 1.218 GB, free: 3.605 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00114/0.7907, allocations: 0.7854 MB / 1.219 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001588/0.7923, allocations: 0.9686 MB / 1.22 GB, free: 1.836 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001533/0.7939, allocations: 0.8169 MB / 1.221 GB, free: 1.02 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0001454/0.794, allocations: 48 kB / 1.221 GB, free: 0.9727 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00378/0.7978, allocations: 2.225 MB / 1.223 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0003322/0.7982, allocations: 322.8 kB / 1.223 GB, free: 14.43 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0005656/0.7987, allocations: 0.5284 MB / 1.224 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.002915/0.8017, allocations: 2.427 MB / 1.226 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.8017, allocations: 0 / 1.226 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of FrontEnd: time 8.82e-07/0.8017, allocations: 0 / 1.226 GB, free: 11.46 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.427e-05/0.8017, allocations: 0 / 1.226 GB, free: 11.46 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.00326/0.805, allocations: 1.633 MB / 1.228 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.946e-05/0.805, allocations: 12.03 kB / 1.228 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001425/0.8052, allocations: 110.5 kB / 1.228 GB, free: 9.637 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003054/0.8082, allocations: 0.537 MB / 1.228 GB, free: 9.098 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/0.8102, allocations: 0.9829 MB / 1.229 GB, free: 8.074 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001173/0.8114, allocations: 281 kB / 1.23 GB, free: 7.801 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001119/0.8115, allocations: 64 kB / 1.23 GB, free: 7.738 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002446/0.814, allocations: 1.128 MB / 1.231 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.966e-05/0.814, allocations: 0 / 1.231 GB, free: 6.582 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.982e-05/0.8141, allocations: 28 kB / 1.231 GB, free: 6.555 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.252e-05/0.8142, allocations: 37.3 kB / 1.231 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003171/0.8173, allocations: 1.2 MB / 1.232 GB, free: 5.312 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.005583/0.8229, allocations: 3.209 MB / 1.235 GB, free: 2.027 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.8246, allocations: 0.6895 MB / 1.236 GB, free: 1.332 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007999/0.8254, allocations: 427.9 kB / 1.236 GB, free: 0.9141 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008987/0.8263, allocations: 1.021 MB / 1.237 GB, free: 15.67 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009986/0.8273, allocations: 0.5143 MB / 1.238 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=57): time 2.335e-06/0.8274, allocations: 0 / 1.238 GB, free: 15.13 MB / 0.9981 GB Notification: Performance of matching and sorting (n=57): time 0.002905/0.8303, allocations: 1.228 MB / 1.239 GB, free: 13.89 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.615e-05/0.8303, allocations: 136.9 kB / 1.239 GB, free: 13.73 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001868/0.8322, allocations: 1.196 MB / 1.24 GB, free: 12.52 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 6.698e-05/0.8323, allocations: 41.7 kB / 1.24 GB, free: 12.47 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003458/0.8327, allocations: 441.4 kB / 1.241 GB, free: 12.04 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001559/0.8328, allocations: 193.2 kB / 1.241 GB, free: 11.84 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002648/0.8331, allocations: 142.1 kB / 1.241 GB, free: 11.7 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.8332, allocations: 330 kB / 1.241 GB, free: 11.37 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001332/0.8345, allocations: 460.9 kB / 1.242 GB, free: 10.92 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.8361, allocations: 0.6171 MB / 1.242 GB, free: 10.25 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00212/0.8382, allocations: 0.9418 MB / 1.243 GB, free: 9.25 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.8383, allocations: 4 kB / 1.243 GB, free: 9.246 MB / 0.9981 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003182/0.8414, allocations: 1.233 MB / 1.245 GB, free: 8 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.978e-05/0.8415, allocations: 33.7 kB / 1.245 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.558e-06/0.8415, allocations: 4 kB / 1.245 GB, free: 7.957 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.744e-05/0.8415, allocations: 8.219 kB / 1.245 GB, free: 7.949 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009788/0.8425, allocations: 203.7 kB / 1.245 GB, free: 7.75 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.442e-05/0.8425, allocations: 7.938 kB / 1.245 GB, free: 7.742 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001632/0.8442, allocations: 278.8 kB / 1.245 GB, free: 7.469 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.988e-05/0.8443, allocations: 35.98 kB / 1.245 GB, free: 7.434 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.0005141/0.8448, allocations: 331.3 kB / 1.245 GB, free: 7.094 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001964/0.845, allocations: 118.6 kB / 1.246 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002128/0.8471, allocations: 0.9989 MB / 1.247 GB, free: 5.973 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.8472, allocations: 7.938 kB / 1.247 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.403e-06/0.8472, allocations: 0 / 1.247 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.826e-06/0.8472, allocations: 7.984 kB / 1.247 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004657/0.8519, allocations: 3.146 MB / 1.25 GB, free: 2.652 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.067e-06/0.8519, allocations: 11.94 kB / 1.25 GB, free: 2.641 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006025/0.8525, allocations: 127.8 kB / 1.25 GB, free: 2.516 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.069e-05/0.8525, allocations: 8 kB / 1.25 GB, free: 2.508 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.91e-05/0.8526, allocations: 24 kB / 1.25 GB, free: 2.484 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.959e-06/0.8526, allocations: 11.98 kB / 1.25 GB, free: 2.473 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.214e-06/0.8526, allocations: 11.94 kB / 1.25 GB, free: 2.461 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002079/0.8547, allocations: 1.337 MB / 1.251 GB, free: 1.008 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004527/0.8552, allocations: 331.4 kB / 1.251 GB, free: 0.6641 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001663/0.8553, allocations: 24 kB / 1.251 GB, free: 0.6406 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001212/0.8565, allocations: 111.9 kB / 1.252 GB, free: 0.5312 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001028/0.8567, allocations: 63.7 kB / 1.252 GB, free: 480 kB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-05/0.8567, allocations: 39.97 kB / 1.252 GB, free: 440 kB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.4135/1.27, allocations: 0.8669 MB / 1.253 GB, free: 233.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.834e-06/1.27, allocations: 0.7812 kB / 1.253 GB, free: 233.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001561/1.272, allocations: 301.5 kB / 1.253 GB, free: 233.1 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.003199/1.275, allocations: 2.127 MB / 1.255 GB, free: 232.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002727/1.278, allocations: 1.021 MB / 1.256 GB, free: 231.8 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/1.278, allocations: 1.594 kB / 1.256 GB, free: 231.8 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.001056/1.279, allocations: 0.5126 MB / 1.256 GB, free: 231.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002942/1.282, allocations: 0.5431 MB / 1.257 GB, free: 231.5 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02004/1.302, allocations: 10.25 MB / 1.267 GB, free: 226 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006331/1.303, allocations: 1.07 MB / 1.268 GB, free: 225.2 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001418/1.304, allocations: 278 kB / 1.268 GB, free: 225.2 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000479/1.304, allocations: 356.8 kB / 1.269 GB, free: 224.9 MB / 0.9981 GB Notification: Performance of SimCode: time 5.31e-07/1.305, allocations: 0 / 1.269 GB, free: 224.9 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04271/1.347, allocations: 30.59 MB / 1.298 GB, free: 205.4 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001553/1.347, allocations: 268.6 kB / 1.299 GB, free: 205 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.539/3.887, allocations: 0 / 1.299 GB, free: 205 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)