Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="BuildingSystems_BuildingSystems_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.004338/0.004337, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001029/0.001029, allocations: 197 kB / 16.67 MB, free: 5.969 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.206/1.206, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001994/0.001994, allocations: 284.8 kB / 290.8 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8861/0.8861, allocations: 169.2 MB / 0.4983 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001689/0.001689, allocations: 95.86 kB / 0.681 GB, free: 7.457 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3896/0.3913, allocations: 86.98 MB / 0.7659 GB, free: 3.855 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.1909/0.5822, allocations: 195.1 MB / 0.9564 GB, free: 36 kB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.3825/0.9648, allocations: 14.3 MB / 0.9704 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001166/0.966, allocations: 37.03 kB / 0.9704 GB, free: 1.855 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001237/0.9672, allocations: 0.5114 MB / 0.9709 GB, free: 1.848 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.003838/0.9711, allocations: 1.964 MB / 0.9728 GB, free: 1.777 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.002111/0.9732, allocations: 0.8756 MB / 0.9737 GB, free: 1.75 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.002509/0.9757, allocations: 2.582 MB / 0.9762 GB, free: 1.738 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001187/0.9769, allocations: 1.117 MB / 0.9773 GB, free: 1.625 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003366/0.9803, allocations: 1.644 MB / 0.9789 GB, free: 1.602 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001144/0.9815, allocations: 0.9289 MB / 0.9798 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.0001268/0.9816, allocations: 107.5 kB / 0.9799 GB, free: 1.598 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001896/0.9835, allocations: 1.106 MB / 0.981 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0003919/0.9839, allocations: 0.4949 MB / 0.9815 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000582/0.9845, allocations: 0.6421 MB / 0.9821 GB, free: 1.582 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.001961/0.9865, allocations: 1.925 MB / 0.984 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.9865, allocations: 0 / 0.984 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.353e-06/0.9865, allocations: 0.8438 kB / 0.984 GB, free: 1.461 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.745e-05/0.9865, allocations: 0 / 0.984 GB, free: 1.461 MB / 0.7169 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.001871/0.9884, allocations: 1.491 MB / 0.9855 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.526e-05/0.9884, allocations: 10.88 kB / 0.9855 GB, free: 16.65 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001459/0.9886, allocations: 143.4 kB / 0.9856 GB, free: 16.61 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001227/0.9898, allocations: 257.1 kB / 0.9859 GB, free: 16.55 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00113/0.991, allocations: 0.7982 MB / 0.9866 GB, free: 16.23 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.977e-05/0.991, allocations: 69.91 kB / 0.9867 GB, free: 16.23 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001169/0.9911, allocations: 94.38 kB / 0.9868 GB, free: 16.23 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.9924, allocations: 1.174 MB / 0.9879 GB, free: 16 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.473e-05/0.9925, allocations: 7.656 kB / 0.9879 GB, free: 16 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.793e-05/0.9925, allocations: 38.44 kB / 0.988 GB, free: 16 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.439e-05/0.9926, allocations: 35.47 kB / 0.988 GB, free: 16 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001093/0.9937, allocations: 0.9023 MB / 0.9889 GB, free: 15.99 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.004483/0.9982, allocations: 5.745 MB / 0.9945 GB, free: 12.22 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006742/0.9989, allocations: 0.544 MB / 0.995 GB, free: 12.19 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003382/0.9992, allocations: 314.3 kB / 0.9953 GB, free: 12.18 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005189/0.9997, allocations: 314.3 kB / 0.9956 GB, free: 11.89 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.667e-05/0.9998, allocations: 47.61 kB / 0.9957 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=49): time 1.714e-06/0.9998, allocations: 0 / 0.9957 GB, free: 11.85 MB / 0.7325 GB Notification: Performance of matching and sorting (n=49): time 0.001231/1.001, allocations: 0.8044 MB / 0.9965 GB, free: 11.76 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.193e-05/1.001, allocations: 60.25 kB / 0.9965 GB, free: 11.7 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006958/1.002, allocations: 0.7481 MB / 0.9973 GB, free: 11.56 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 4.79e-05/1.002, allocations: 41.23 kB / 0.9973 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000304/1.002, allocations: 0.5188 MB / 0.9978 GB, free: 11.28 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.000143/1.002, allocations: 187.4 kB / 0.998 GB, free: 11.16 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001711/1.002, allocations: 137.6 kB / 0.9981 GB, free: 11.14 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001172/1.003, allocations: 340.4 kB / 0.9984 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002962/1.003, allocations: 248.1 kB / 0.9987 GB, free: 10.83 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000516/1.003, allocations: 0.5526 MB / 0.9992 GB, free: 10.48 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007815/1.004, allocations: 0.7978 MB / 1 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/1.004, allocations: 2.594 kB / 1 GB, free: 10.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.0009921/1.005, allocations: 0.851 MB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/1.005, allocations: 6.844 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/1.005, allocations: 9.094 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.028e-05/1.005, allocations: 13.72 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004752/1.006, allocations: 157.3 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.692e-05/1.006, allocations: 18.31 kB / 1.001 GB, free: 10.11 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006549/1.006, allocations: 98.48 kB / 1.001 GB, free: 10.06 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.879e-05/1.007, allocations: 33.38 kB / 1.001 GB, free: 10.06 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 36 * 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 (86): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * 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.0003251/1.007, allocations: 335.2 kB / 1.001 GB, free: 9.938 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/1.007, allocations: 90.28 kB / 1.002 GB, free: 9.891 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007863/1.008, allocations: 0.6189 MB / 1.002 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/1.008, allocations: 3.406 kB / 1.002 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/1.008, allocations: 4.938 kB / 1.002 GB, free: 9.828 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0005623/1.008, allocations: 0.5163 MB / 1.003 GB, free: 9.758 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001921/1.01, allocations: 1.683 MB / 1.004 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/1.01, allocations: 0 / 1.004 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000467/1.011, allocations: 110 kB / 1.004 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.779e-06/1.011, allocations: 5.469 kB / 1.004 GB, free: 9.371 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.505e-05/1.011, allocations: 19.47 kB / 1.004 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.028e-06/1.011, allocations: 6.469 kB / 1.004 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/1.011, allocations: 0.8438 kB / 1.004 GB, free: 9.367 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001043/1.012, allocations: 1.015 MB / 1.005 GB, free: 9.125 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003108/1.012, allocations: 227.2 kB / 1.006 GB, free: 8.98 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/1.012, allocations: 21.12 kB / 1.006 GB, free: 8.977 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004545/1.013, allocations: 15.39 kB / 1.006 GB, free: 8.977 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.915e-05/1.013, allocations: 34.02 kB / 1.006 GB, free: 8.977 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.913e-05/1.013, allocations: 20.22 kB / 1.006 GB, free: 8.977 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0004774/1.013, allocations: 0.5179 MB / 1.006 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.3e-07/1.013, allocations: 0 / 1.006 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0007164/1.014, allocations: 300.8 kB / 1.007 GB, free: 8.844 MB / 0.7325 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 4 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,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 (49): * Single equations (assignments): 49 * Array equations: 0 * Algorithm blocks: 0 * 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 Backend phase and start with SimCode phase: time 0.001556/1.016, allocations: 1.672 MB / 1.008 GB, free: 8.043 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.0007073/1.016, allocations: 0.6101 MB / 1.009 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.795e-06/1.016, allocations: 0.9375 kB / 1.009 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0002829/1.017, allocations: 276.6 kB / 1.009 GB, free: 8.035 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001701/1.018, allocations: 439.7 kB / 1.009 GB, free: 7.977 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007476/1.026, allocations: 7.233 MB / 1.017 GB, free: 5.246 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005539/1.026, allocations: 1.125 MB / 1.018 GB, free: 4.535 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.0006252/1.027, allocations: 264.4 kB / 1.018 GB, free: 4.492 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003593/1.027, allocations: 360.6 kB / 1.018 GB, free: 4.484 MB / 0.7325 GB Notification: Performance of SimCode: time 4.21e-07/1.027, allocations: 4 kB / 1.018 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0419/1.069, allocations: 23.11 MB / 1.041 GB, free: 8.918 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.733/9.803, allocations: 3.75 kB / 1.041 GB, free: 8.914 MB / 0.7481 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances_res.csv --start-time 0 --stop-time 7200 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 2.88 BuildingSystems_BuildingSystems_Fluid_Sensors_Examples_TraceSubstances.fmu > BuildingSystems_BuildingSystems.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)