Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.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.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances",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.001097/0.001097, allocations: 91.45 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.001381/0.001381, 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.749/1.749, allocations: 205.4 MB / 222.1 MB, free: 5.5 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.786/1.786, allocations: 292.7 MB / 0.5499 GB, free: 14.54 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.0005519/0.0005519, allocations: 16.09 kB / 0.6738 GB, free: 26.19 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3181/0.3187, allocations: 116.3 MB / 0.7874 GB, free: 11.82 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.TraceSubstances): time 0.8591/1.178, allocations: 177.5 MB / 0.9608 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01648/1.194, allocations: 13.27 MB / 0.9737 GB, free: 3.555 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001434/1.196, allocations: 28.44 kB / 0.9738 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001355/1.197, allocations: 347 kB / 0.9741 GB, free: 3.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004844/1.202, allocations: 1.372 MB / 0.9754 GB, free: 3.09 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002382/1.204, allocations: 0.6638 MB / 0.9761 GB, free: 3.027 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.004246/1.209, allocations: 3.037 MB / 0.9791 GB, free: 2.629 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001461/1.21, allocations: 0.8025 MB / 0.9798 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003202/1.213, allocations: 1.209 MB / 0.981 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001863/1.215, allocations: 0.8816 MB / 0.9819 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001705/1.216, allocations: 48.38 kB / 0.9819 GB, free: 2.09 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002027/1.218, allocations: 0.5654 MB / 0.9825 GB, free: 2.023 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0005429/1.218, allocations: 449.6 kB / 0.9829 GB, free: 1.98 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.0005592/1.219, allocations: 248.6 kB / 0.9831 GB, free: 17.91 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001571/1.22, allocations: 1.355 MB / 0.9845 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 6.101e-06/1.22, allocations: 0 / 0.9845 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.804e-06/1.22, allocations: 0 / 0.9845 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.794e-05/1.22, allocations: 0 / 0.9845 GB, free: 17.29 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: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002006/1.222, allocations: 1.243 MB / 0.9857 GB, free: 16.41 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/1.222, allocations: 9.375 kB / 0.9857 GB, free: 16.41 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001938/1.223, allocations: 150.2 kB / 0.9858 GB, free: 16.35 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001294/1.224, allocations: 258.5 kB / 0.9861 GB, free: 16.24 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001358/1.225, allocations: 0.8131 MB / 0.9869 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.47e-05/1.225, allocations: 72.64 kB / 0.9869 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/1.225, allocations: 94.19 kB / 0.987 GB, free: 15.79 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00165/1.227, allocations: 1.172 MB / 0.9882 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.112e-05/1.227, allocations: 3.938 kB / 0.9882 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.452e-05/1.227, allocations: 40.19 kB / 0.9882 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.236e-05/1.227, allocations: 30.91 kB / 0.9883 GB, free: 15.34 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001267/1.229, allocations: 0.9073 MB / 0.9891 GB, free: 15.16 MB / 0.7325 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.00538/1.234, allocations: 5.73 MB / 0.9947 GB, free: 10.72 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007338/1.235, allocations: 0.5625 MB / 0.9953 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003923/1.235, allocations: 322.8 kB / 0.9956 GB, free: 10.54 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005886/1.236, allocations: 331.6 kB / 0.9959 GB, free: 10.23 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/1.236, allocations: 39.97 kB / 0.9959 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=51): time 4.979e-06/1.236, allocations: 0 / 0.9959 GB, free: 10.19 MB / 0.7325 GB Notification: Performance of matching and sorting (n=51): time 0.001627/1.237, allocations: 0.8194 MB / 0.9967 GB, free: 10.01 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.354e-05/1.237, allocations: 87.73 kB / 0.9968 GB, free: 9.91 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001065/1.239, allocations: 0.7378 MB / 0.9976 GB, free: 9.656 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 8.26e-05/1.239, allocations: 40.61 kB / 0.9976 GB, free: 9.625 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004326/1.239, allocations: 0.502 MB / 0.9981 GB, free: 9.336 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002/1.239, allocations: 186.5 kB / 0.9983 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.406e-05/1.239, allocations: 13.38 kB / 0.9983 GB, free: 9.203 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.000221/1.24, allocations: 337 kB / 0.9986 GB, free: 8.891 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004288/1.24, allocations: 256.5 kB / 0.9988 GB, free: 8.848 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007097/1.241, allocations: 0.5799 MB / 0.9994 GB, free: 8.402 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005386/1.241, allocations: 354.9 kB / 0.9997 GB, free: 8.34 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.432e-06/1.241, allocations: 2.875 kB / 0.9997 GB, free: 8.34 MB / 0.7325 GB Notification: Performance of matching and sorting (n=89) (initialization): time 0.00133/1.243, allocations: 0.8592 MB / 1.001 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.345e-05/1.243, allocations: 8.5 kB / 1.001 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.296e-05/1.243, allocations: 9.531 kB / 1.001 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.682e-05/1.243, allocations: 11.12 kB / 1.001 GB, free: 8.113 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/1.243, allocations: 162.9 kB / 1.001 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.095e-05/1.243, allocations: 21.72 kB / 1.001 GB, free: 8.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001073/1.244, allocations: 140.7 kB / 1.001 GB, free: 8.004 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.372e-05/1.244, allocations: 39.39 kB / 1.001 GB, free: 8 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * 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.0006584/1.245, allocations: 325.2 kB / 1.001 GB, free: 7.844 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002094/1.245, allocations: 97.7 kB / 1.001 GB, free: 7.789 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001094/1.246, allocations: 0.6265 MB / 1.002 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.233e-06/1.246, allocations: 5.375 kB / 1.002 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/1.246, allocations: 0 / 1.002 GB, free: 7.645 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006469/1.247, allocations: 0.5224 MB / 1.002 GB, free: 7.512 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002618/1.25, allocations: 1.774 MB / 1.004 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.253e-06/1.25, allocations: 3.719 kB / 1.004 GB, free: 6.73 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000528/1.25, allocations: 113.1 kB / 1.004 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.538e-06/1.25, allocations: 3.594 kB / 1.004 GB, free: 6.711 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.946e-05/1.25, allocations: 18.41 kB / 1.004 GB, free: 6.707 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.237e-05/1.25, allocations: 10.77 kB / 1.004 GB, free: 6.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.28e-06/1.25, allocations: 4.469 kB / 1.004 GB, free: 6.699 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001321/1.252, allocations: 1.076 MB / 1.005 GB, free: 6.332 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003946/1.252, allocations: 232.4 kB / 1.006 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/1.252, allocations: 11.72 kB / 1.006 GB, free: 6.168 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005234/1.253, allocations: 65.69 kB / 1.006 GB, free: 6.145 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.217e-05/1.253, allocations: 44.59 kB / 1.006 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.508e-05/1.253, allocations: 19.28 kB / 1.006 GB, free: 6.121 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0005905/1.254, allocations: 0.5035 MB / 1.006 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.2e-07/1.254, allocations: 0 / 1.006 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0009981/1.255, allocations: 303.8 kB / 1.007 GB, free: 5.91 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 4 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],vol.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (51): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001925/1.256, allocations: 1.742 MB / 1.008 GB, free: 4.965 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0009925/1.257, allocations: 0.6183 MB / 1.009 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/1.257, allocations: 0 / 1.009 GB, free: 4.855 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0003587/1.258, allocations: 283.7 kB / 1.009 GB, free: 4.801 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001949/1.26, allocations: 440.6 kB / 1.01 GB, free: 4.66 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008471/1.268, allocations: 5.672 MB / 1.015 GB, free: 1.785 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006637/1.269, allocations: 1.124 MB / 1.016 GB, free: 0.9258 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.00106/1.27, allocations: 271.1 kB / 1.016 GB, free: 0.8086 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004578/1.271, allocations: 364.4 kB / 1.017 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of SimCode: time 2.895e-06/1.271, allocations: 0 / 1.017 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0432/1.314, allocations: 23.34 MB / 1.04 GB, free: 14.38 MB / 0.7637 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001919/1.314, allocations: 220.7 kB / 1.04 GB, free: 14.13 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.33/3.644, allocations: 0 / 1.04 GB, free: 14.13 MB / 0.7637 GB (rm -f Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances_fmu --startTime=0 --stopTime=7200 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Fluid_Sensors_Examples_TraceSubstances.fmu > Buildings_8_Buildings.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1) Environment - environmentSimulation: