Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="Buildings_8_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.0008139/0.000814, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.0008824/0.0008824, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.301/1.301, allocations: 205.4 MB / 222.1 MB, free: 5.656 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.746/1.746, allocations: 292.7 MB / 0.5499 GB, free: 14.52 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004815/0.0004815, allocations: 16.56 kB / 0.6738 GB, free: 26.29 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2088/0.2093, allocations: 116.3 MB / 0.7874 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5626/0.7719, allocations: 176.6 MB / 0.9599 GB, free: 4.656 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.009083/0.781, allocations: 6.504 MB / 0.9662 GB, free: 4.07 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001478/0.7825, allocations: 39.5 kB / 0.9663 GB, free: 4.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.7839, allocations: 474.8 kB / 0.9667 GB, free: 3.879 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004238/0.7882, allocations: 1.65 MB / 0.9683 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002989/0.7912, allocations: 1.079 MB / 0.9694 GB, free: 3.406 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.004139/0.7953, allocations: 3.166 MB / 0.9725 GB, free: 2.992 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001074/0.7964, allocations: 0.6615 MB / 0.9731 GB, free: 2.891 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001633/0.798, allocations: 0.9447 MB / 0.974 GB, free: 2.688 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0009681/0.799, allocations: 0.7467 MB / 0.9748 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001166/0.7991, allocations: 41.38 kB / 0.9748 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004061/0.8032, allocations: 1.221 MB / 0.976 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0004562/0.8037, allocations: 301.2 kB / 0.9763 GB, free: 2.359 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0005523/0.8042, allocations: 242.7 kB / 0.9765 GB, free: 18.29 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001906/0.8062, allocations: 1.625 MB / 0.9781 GB, free: 18.02 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.8062, allocations: 4 kB / 0.9781 GB, free: 18.01 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.743e-06/0.8062, allocations: 2.5 kB / 0.9781 GB, free: 18.01 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.218e-05/0.8062, allocations: 0 / 0.9781 GB, free: 18.01 MB / 0.7325 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.002911/0.8091, allocations: 1.425 MB / 0.9795 GB, free: 17 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.243e-05/0.8092, allocations: 9.75 kB / 0.9795 GB, free: 17 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000142/0.8093, allocations: 111.8 kB / 0.9796 GB, free: 16.95 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00256/0.8119, allocations: 0.6047 MB / 0.9802 GB, free: 16.71 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001744/0.8136, allocations: 0.9733 MB / 0.9812 GB, free: 16.19 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009472/0.8146, allocations: 313 kB / 0.9815 GB, free: 16.1 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001075/0.8147, allocations: 67.56 kB / 0.9815 GB, free: 16.1 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002274/0.817, allocations: 1.172 MB / 0.9827 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.817, allocations: 0 / 0.9827 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.05e-05/0.8171, allocations: 27.22 kB / 0.9827 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.472e-05/0.8172, allocations: 30.56 kB / 0.9827 GB, free: 15.75 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0028/0.82, allocations: 1.33 MB / 0.984 GB, free: 15.48 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004892/0.8249, allocations: 2.978 MB / 0.9869 GB, free: 14.16 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001572/0.8265, allocations: 0.7429 MB / 0.9877 GB, free: 14.01 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007159/0.8272, allocations: 458.3 kB / 0.9881 GB, free: 13.93 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008659/0.8281, allocations: 1.024 MB / 0.9891 GB, free: 12.77 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009128/0.829, allocations: 0.5354 MB / 0.9896 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=59): time 2.024e-06/0.829, allocations: 0 / 0.9896 GB, free: 12.57 MB / 0.7325 GB Notification: Performance of matching and sorting (n=59): time 0.002547/0.8316, allocations: 1.285 MB / 0.9909 GB, free: 12.25 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.166e-05/0.8316, allocations: 114.5 kB / 0.991 GB, free: 12.12 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001632/0.8333, allocations: 1.211 MB / 0.9922 GB, free: 11.77 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 6.059e-05/0.8333, allocations: 41.67 kB / 0.9922 GB, free: 11.74 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002976/0.8336, allocations: 430.6 kB / 0.9926 GB, free: 11.58 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001509/0.8338, allocations: 197.7 kB / 0.9928 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/0.8339, allocations: 9.062 kB / 0.9928 GB, free: 11.44 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.834, allocations: 336.7 kB / 0.9931 GB, free: 11.12 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001133/0.8351, allocations: 497.5 kB / 0.9936 GB, free: 11.02 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001262/0.8364, allocations: 0.6433 MB / 0.9942 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.8376, allocations: 0.5484 MB / 0.9948 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.8376, allocations: 2.625 kB / 0.9948 GB, free: 10.65 MB / 0.7325 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002701/0.8403, allocations: 1.313 MB / 0.9961 GB, free: 10.29 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 3.892e-05/0.8404, allocations: 36.89 kB / 0.9961 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.8404, allocations: 3.375 kB / 0.9961 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.8404, allocations: 9.312 kB / 0.9961 GB, free: 10.26 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009256/0.8413, allocations: 214.2 kB / 0.9963 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.368e-05/0.8414, allocations: 9.359 kB / 0.9963 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00139/0.8428, allocations: 299.3 kB / 0.9966 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.253e-05/0.8429, allocations: 39.19 kB / 0.9966 GB, free: 10.07 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (69): * Single equations (assignments): 68 * 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.0004803/0.8433, allocations: 327.9 kB / 0.9969 GB, free: 9.895 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001533/0.8435, allocations: 124.7 kB / 0.9971 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001981/0.8455, allocations: 1.062 MB / 0.9981 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.234e-05/0.8455, allocations: 6.438 kB / 0.9981 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.8455, allocations: 0 / 0.9981 GB, free: 9.551 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.8456, allocations: 7.984 kB / 0.9981 GB, free: 9.543 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004457/0.85, allocations: 3.233 MB / 1.001 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.027e-06/0.85, allocations: 5.75 kB / 1.001 GB, free: 8.195 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000545/0.8506, allocations: 127.8 kB / 1.001 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.165e-05/0.8506, allocations: 10.88 kB / 1.001 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.43e-05/0.8507, allocations: 34.95 kB / 1.001 GB, free: 8.152 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.229e-05/0.8507, allocations: 14.89 kB / 1.001 GB, free: 8.148 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.432e-06/0.8507, allocations: 13.7 kB / 1.001 GB, free: 8.145 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001863/0.8526, allocations: 1.321 MB / 1.003 GB, free: 7.512 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004575/0.853, allocations: 332.9 kB / 1.003 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001503/0.8532, allocations: 23.31 kB / 1.003 GB, free: 7.305 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00097/0.8542, allocations: 129.2 kB / 1.003 GB, free: 7.266 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001045/0.8543, allocations: 67.31 kB / 1.003 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.45e-05/0.8544, allocations: 42.44 kB / 1.003 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001298/0.8557, allocations: 0.8748 MB / 1.004 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8557, allocations: 0 / 1.004 GB, free: 6.965 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0009615/0.8567, allocations: 301.9 kB / 1.004 GB, free: 6.938 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 33 * 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 (58): * Single equations (assignments): 53 * 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.002773/0.8594, allocations: 2.103 MB / 1.007 GB, free: 5.676 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002188/0.8616, allocations: 1.082 MB / 1.008 GB, free: 5.41 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.8616, allocations: 4.062 kB / 1.008 GB, free: 5.406 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0008502/0.8625, allocations: 0.5433 MB / 1.008 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002305/0.8648, allocations: 0.5475 MB / 1.009 GB, free: 5.074 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01282/0.8777, allocations: 7.228 MB / 1.016 GB, free: 1.887 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006509/0.8783, allocations: 1.07 MB / 1.017 GB, free: 1.035 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001261/0.8796, allocations: 281 kB / 1.017 GB, free: 0.9102 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004826/0.8801, allocations: 367 kB / 1.017 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of SimCode: time 2.344e-06/0.8801, allocations: 2.469 kB / 1.017 GB, free: 0.8672 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04985/0.93, allocations: 30.87 MB / 1.048 GB, free: 3.73 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.9302, allocations: 244 kB / 1.048 GB, free: 3.453 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.422/3.352, allocations: 3.938 kB / 1.048 GB, free: 3.449 MB / 0.7637 GB (rm -f Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > Buildings_8_Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) Environment - environmentSimulation: