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.0008703/0.0008703, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.005093/0.005093, allocations: 172 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.245/1.245, allocations: 205.4 MB / 222.4 MB, free: 5.793 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.611/1.611, allocations: 292.7 MB / 0.5502 GB, free: 14.48 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.0004843/0.0004843, allocations: 17.05 kB / 0.6744 GB, free: 25.98 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1763, allocations: 116.3 MB / 0.788 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.5332/0.7095, allocations: 189.1 MB / 0.9727 GB, free: 15.06 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008518/0.7181, allocations: 6.878 MB / 0.9794 GB, free: 14.45 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009249/0.719, allocations: 38.62 kB / 0.9794 GB, free: 14.43 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.001297/0.7203, allocations: 0.5622 MB / 0.98 GB, free: 14.26 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.004305/0.7246, allocations: 2.152 MB / 0.9821 GB, free: 13.59 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002692/0.7273, allocations: 1.287 MB / 0.9833 GB, free: 12.79 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003444/0.7308, allocations: 3.679 MB / 0.9869 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0009066/0.7317, allocations: 0.7568 MB / 0.9877 GB, free: 10.46 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001256/0.733, allocations: 0.9646 MB / 0.9886 GB, free: 10.08 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001362/0.7343, allocations: 0.7921 MB / 0.9894 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001021/0.7345, allocations: 40.53 kB / 0.9894 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003198/0.7377, allocations: 2.217 MB / 0.9916 GB, free: 8.758 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0002872/0.738, allocations: 315.5 kB / 0.9919 GB, free: 8.605 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0004704/0.7384, allocations: 0.5481 MB / 0.9924 GB, free: 8.41 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.00233/0.7408, allocations: 2.41 MB / 0.9948 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.7408, allocations: 0 / 0.9948 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.362e-06/0.7408, allocations: 0 / 0.9948 GB, free: 7.02 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.134e-05/0.7408, allocations: 3.938 kB / 0.9948 GB, free: 7.016 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.003017/0.7438, allocations: 1.411 MB / 0.9962 GB, free: 5.922 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.444e-05/0.7439, allocations: 14.81 kB / 0.9962 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001422/0.744, allocations: 119.4 kB / 0.9963 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002752/0.7468, allocations: 0.5952 MB / 0.9969 GB, free: 5.574 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001791/0.7486, allocations: 1.006 MB / 0.9978 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001141/0.7497, allocations: 317.6 kB / 0.9982 GB, free: 4.699 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.7499, allocations: 70.45 kB / 0.9982 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002347/0.7522, allocations: 1.181 MB / 0.9994 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.566e-05/0.7522, allocations: 0 / 0.9994 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.853e-05/0.7523, allocations: 23.84 kB / 0.9994 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.234e-05/0.7524, allocations: 34.16 kB / 0.9994 GB, free: 3.98 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003178/0.7556, allocations: 1.33 MB / 1.001 GB, free: 3.359 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00498/0.7605, allocations: 2.991 MB / 1.004 GB, free: 1.266 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.7622, allocations: 0.7341 MB / 1.004 GB, free: 0.8867 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007737/0.763, allocations: 453.8 kB / 1.005 GB, free: 0.6719 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000783/0.7638, allocations: 1.018 MB / 1.006 GB, free: 15.51 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009346/0.7648, allocations: 0.5405 MB / 1.006 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=59): time 1.913e-06/0.7648, allocations: 0 / 1.006 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of matching and sorting (n=59): time 0.002689/0.7675, allocations: 1.294 MB / 1.008 GB, free: 14.52 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.404e-05/0.7675, allocations: 115.3 kB / 1.008 GB, free: 14.39 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/0.7693, allocations: 1.218 MB / 1.009 GB, free: 13.73 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 7.022e-05/0.7694, allocations: 38.8 kB / 1.009 GB, free: 13.7 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003192/0.7697, allocations: 429.8 kB / 1.009 GB, free: 13.32 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001459/0.7698, allocations: 206.7 kB / 1.01 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.068e-05/0.7699, allocations: 49.81 kB / 1.01 GB, free: 13.11 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001145/0.77, allocations: 334.5 kB / 1.01 GB, free: 12.79 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001289/0.7713, allocations: 0.4927 MB / 1.01 GB, free: 12.56 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001397/0.7728, allocations: 0.6485 MB / 1.011 GB, free: 12.18 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002049/0.7748, allocations: 0.9904 MB / 1.012 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.477e-06/0.7748, allocations: 0 / 1.012 GB, free: 11.6 MB / 0.7481 GB Notification: Performance of matching and sorting (n=74) (initialization): time 0.002962/0.7778, allocations: 1.316 MB / 1.013 GB, free: 10.97 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.045e-05/0.7778, allocations: 37.72 kB / 1.013 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.7779, allocations: 2.719 kB / 1.013 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.7779, allocations: 12.06 kB / 1.013 GB, free: 10.93 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009282/0.7788, allocations: 215.1 kB / 1.014 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.7788, allocations: 5.719 kB / 1.014 GB, free: 10.87 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001459/0.7803, allocations: 309.1 kB / 1.014 GB, free: 10.73 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.986e-05/0.7804, allocations: 36.69 kB / 1.014 GB, free: 10.72 MB / 0.7481 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 (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 (69): * Single equations (assignments): 68 * 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.0003791/0.7808, allocations: 326.7 kB / 1.014 GB, free: 10.46 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001397/0.7809, allocations: 117.3 kB / 1.014 GB, free: 10.4 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.783, allocations: 1.071 MB / 1.015 GB, free: 9.805 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.783, allocations: 9.781 kB / 1.015 GB, free: 9.801 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.783, allocations: 0 / 1.015 GB, free: 9.801 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.318e-05/0.783, allocations: 3.984 kB / 1.015 GB, free: 9.797 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004306/0.7873, allocations: 3.231 MB / 1.018 GB, free: 7.551 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.785e-06/0.7873, allocations: 8.688 kB / 1.018 GB, free: 7.551 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005604/0.7879, allocations: 133.2 kB / 1.019 GB, free: 7.512 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.087e-06/0.7879, allocations: 14.81 kB / 1.019 GB, free: 7.508 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.873e-05/0.788, allocations: 21.8 kB / 1.019 GB, free: 7.5 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.798e-06/0.788, allocations: 14.81 kB / 1.019 GB, free: 7.496 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.3e-06/0.788, allocations: 8.719 kB / 1.019 GB, free: 7.496 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001922/0.7899, allocations: 1.341 MB / 1.02 GB, free: 6.555 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000402/0.7903, allocations: 327.5 kB / 1.02 GB, free: 6.281 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001424/0.7905, allocations: 25.7 kB / 1.02 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/0.7916, allocations: 127.3 kB / 1.02 GB, free: 6.227 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.263e-05/0.7917, allocations: 64.36 kB / 1.021 GB, free: 6.188 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.938e-05/0.7918, allocations: 45.72 kB / 1.021 GB, free: 6.172 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001372/0.7931, allocations: 0.8852 MB / 1.021 GB, free: 5.695 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/0.7931, allocations: 4 kB / 1.021 GB, free: 5.691 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0008537/0.794, allocations: 300.8 kB / 1.022 GB, free: 5.641 MB / 0.7481 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 (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.002689/0.7967, allocations: 2.113 MB / 1.024 GB, free: 4.078 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.002271/0.799, allocations: 1.084 MB / 1.025 GB, free: 3.543 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 4.068e-06/0.799, allocations: 3.094 kB / 1.025 GB, free: 3.543 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0008727/0.7999, allocations: 0.5423 MB / 1.025 GB, free: 3.242 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003443/0.8033, allocations: 0.5373 MB / 1.026 GB, free: 2.984 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01686/0.8202, allocations: 10.44 MB / 1.036 GB, free: 8.785 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000608/0.8208, allocations: 1.073 MB / 1.037 GB, free: 7.68 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.001069/0.8219, allocations: 282.2 kB / 1.037 GB, free: 7.406 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000526/0.8224, allocations: 363.3 kB / 1.038 GB, free: 7.051 MB / 0.7637 GB Notification: Performance of SimCode: time 1.884e-06/0.8224, allocations: 0 / 1.038 GB, free: 7.051 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.737/3.56, allocations: 30.6 MB / 1.068 GB, free: 8.859 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002755/3.56, allocations: 261.8 kB / 1.068 GB, free: 8.531 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.363/6.924, allocations: 0 / 1.068 GB, free: 8.531 MB / 0.795 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/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)