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.004369/0.004369, allocations: 97.39 kB / 15.73 MB, free: 6.484 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.001185/0.001185, allocations: 191.9 kB / 16.67 MB, free: 6.391 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002443/0.002443, allocations: 279 kB / 290.8 MB, free: 1.914 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9478/0.9478, allocations: 169.2 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00272/0.00272, allocations: 94.44 kB / 0.681 GB, free: 15.97 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1622/0.165, allocations: 86.97 MB / 0.7659 GB, free: 8.922 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.5249/0.6899, allocations: 195.1 MB / 0.9564 GB, free: 15.95 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.01773/0.7077, allocations: 14.32 MB / 0.9704 GB, free: 1.59 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001189/0.7089, allocations: 39.75 kB / 0.9705 GB, free: 1.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001462/0.7104, allocations: 0.5046 MB / 0.971 GB, free: 1.043 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.004396/0.7148, allocations: 1.878 MB / 0.9728 GB, free: 15.16 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002257/0.7171, allocations: 0.8651 MB / 0.9736 GB, free: 14.3 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.003294/0.7204, allocations: 2.585 MB / 0.9762 GB, free: 11.71 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001458/0.7219, allocations: 1.111 MB / 0.9772 GB, free: 10.58 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003816/0.7257, allocations: 1.599 MB / 0.9788 GB, free: 9 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001499/0.7272, allocations: 0.9163 MB / 0.9797 GB, free: 8.082 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 0.0001683/0.7274, allocations: 108 kB / 0.9798 GB, free: 7.977 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002106/0.7295, allocations: 1.103 MB / 0.9809 GB, free: 6.871 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0005164/0.73, allocations: 0.4987 MB / 0.9814 GB, free: 6.371 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0007298/0.7308, allocations: 0.6338 MB / 0.982 GB, free: 5.734 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.002545/0.7333, allocations: 1.923 MB / 0.9839 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.7333, allocations: 4 kB / 0.9839 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.543e-06/0.7333, allocations: 0 / 0.9839 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 1.46e-05/0.7334, allocations: 0 / 0.9839 GB, free: 3.801 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.002196/0.7356, allocations: 1.482 MB / 0.9853 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.7356, allocations: 12.03 kB / 0.9853 GB, free: 2.254 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000177/0.7358, allocations: 140.3 kB / 0.9855 GB, free: 2.109 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001279/0.7371, allocations: 267 kB / 0.9857 GB, free: 1.848 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001276/0.7384, allocations: 0.8044 MB / 0.9865 GB, free: 1.004 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.264e-05/0.7384, allocations: 66 kB / 0.9866 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000141/0.7386, allocations: 92 kB / 0.9866 GB, free: 0.8516 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0018/0.7404, allocations: 1.173 MB / 0.9878 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.384e-05/0.7404, allocations: 0 / 0.9878 GB, free: 15.6 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.374e-05/0.7405, allocations: 44.81 kB / 0.9878 GB, free: 15.56 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.412e-05/0.7406, allocations: 41.92 kB / 0.9879 GB, free: 15.52 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001427/0.742, allocations: 0.8937 MB / 0.9887 GB, free: 14.62 MB / 0.7481 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.005865/0.7479, allocations: 5.752 MB / 0.9944 GB, free: 8.418 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008835/0.7488, allocations: 0.5307 MB / 0.9949 GB, free: 7.883 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004605/0.7492, allocations: 330.5 kB / 0.9952 GB, free: 7.559 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006019/0.7498, allocations: 311.7 kB / 0.9955 GB, free: 7.199 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.671e-05/0.7499, allocations: 39.94 kB / 0.9955 GB, free: 7.152 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=49): time 2.114e-06/0.7499, allocations: 0 / 0.9955 GB, free: 7.152 MB / 0.7481 GB Notification: Performance of matching and sorting (n=49): time 0.001543/0.7515, allocations: 0.807 MB / 0.9963 GB, free: 6.336 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.7515, allocations: 55.84 kB / 0.9964 GB, free: 6.27 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009457/0.7525, allocations: 0.7587 MB / 0.9971 GB, free: 5.504 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.708e-05/0.7525, allocations: 33.7 kB / 0.9971 GB, free: 5.465 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004291/0.753, allocations: 0.5193 MB / 0.9977 GB, free: 4.938 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001771/0.7531, allocations: 186.5 kB / 0.9978 GB, free: 4.754 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002117/0.7534, allocations: 146.6 kB / 0.998 GB, free: 4.602 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.000194/0.7536, allocations: 341.8 kB / 0.9983 GB, free: 4.262 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003868/0.7539, allocations: 245.9 kB / 0.9985 GB, free: 4.023 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006687/0.7546, allocations: 0.5508 MB / 0.9991 GB, free: 3.34 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001052/0.7557, allocations: 0.7996 MB / 0.9999 GB, free: 2.43 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.504e-06/0.7557, allocations: 4 kB / 0.9999 GB, free: 2.426 MB / 0.7481 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001297/0.757, allocations: 0.8506 MB / 1.001 GB, free: 1.57 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.757, allocations: 8 kB / 1.001 GB, free: 1.562 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.132e-05/0.757, allocations: 8 kB / 1.001 GB, free: 1.555 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.375e-05/0.7571, allocations: 12.75 kB / 1.001 GB, free: 1.543 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005438/0.7576, allocations: 155.8 kB / 1.001 GB, free: 1.391 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.273e-05/0.7576, allocations: 16.55 kB / 1.001 GB, free: 1.375 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006517/0.7583, allocations: 99.28 kB / 1.001 GB, free: 1.277 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.151e-05/0.7584, allocations: 35.94 kB / 1.001 GB, free: 1.242 MB / 0.7481 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.0004354/0.7588, allocations: 329.5 kB / 1.001 GB, free: 0.9102 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000141/0.759, allocations: 91.44 kB / 1.001 GB, free: 0.8203 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001022/0.76, allocations: 0.6218 MB / 1.002 GB, free: 192 kB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.671e-06/0.76, allocations: 8 kB / 1.002 GB, free: 184 kB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.76, allocations: 0 / 1.002 GB, free: 184 kB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007687/0.7608, allocations: 0.5212 MB / 1.003 GB, free: 15.65 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002427/0.7632, allocations: 1.667 MB / 1.004 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.19e-06/0.7632, allocations: 3.938 kB / 1.004 GB, free: 13.9 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004946/0.7637, allocations: 111.9 kB / 1.004 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.7638, allocations: 4 kB / 1.004 GB, free: 13.79 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.734e-05/0.7638, allocations: 12 kB / 1.004 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.706e-06/0.7638, allocations: 7.984 kB / 1.004 GB, free: 13.77 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.707e-06/0.7638, allocations: 7.938 kB / 1.004 GB, free: 13.76 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.7652, allocations: 1.016 MB / 1.005 GB, free: 12.7 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003139/0.7655, allocations: 228.4 kB / 1.006 GB, free: 12.46 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.865e-05/0.7657, allocations: 19.98 kB / 1.006 GB, free: 12.44 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000416/0.7661, allocations: 12 kB / 1.006 GB, free: 12.43 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.511e-05/0.7662, allocations: 31.95 kB / 1.006 GB, free: 12.4 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.67e-05/0.7662, allocations: 20 kB / 1.006 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0006602/0.7669, allocations: 0.5107 MB / 1.006 GB, free: 11.88 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.6e-07/0.7669, allocations: 4 kB / 1.006 GB, free: 11.87 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008193/0.7677, allocations: 299.4 kB / 1.006 GB, free: 11.58 MB / 0.7637 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.00215/0.7699, allocations: 1.679 MB / 1.008 GB, free: 9.867 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0009736/0.7708, allocations: 0.6166 MB / 1.009 GB, free: 9.258 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7708, allocations: 0 / 1.009 GB, free: 9.258 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0003821/0.7712, allocations: 275.8 kB / 1.009 GB, free: 8.988 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001797/0.773, allocations: 442.2 kB / 1.009 GB, free: 8.562 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009836/0.7829, allocations: 7.243 MB / 1.016 GB, free: 0.9219 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008321/0.7838, allocations: 1.126 MB / 1.017 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.0008201/0.7846, allocations: 263 kB / 1.018 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000497/0.7851, allocations: 363.3 kB / 1.018 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of SimCode: time 8.82e-07/0.7851, allocations: 4 kB / 1.018 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05433/0.8394, allocations: 23.1 MB / 1.041 GB, free: 8.449 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.95/9.79, allocations: 11.28 kB / 1.041 GB, free: 8.441 MB / 0.795 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)