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.004371/0.004371, allocations: 101.1 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.001183/0.001184, allocations: 189.4 kB / 16.67 MB, free: 5.973 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.329/1.329, 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.002369/0.002369, allocations: 276.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 1.149/1.149, allocations: 178.6 MB / 0.5074 GB, free: 12.76 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002648/0.002648, allocations: 95.84 kB / 0.6943 GB, free: 15.17 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3959/0.3986, allocations: 89.13 MB / 0.7814 GB, free: 1.129 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sensors.Examples.TraceSubstances): time 0.2175/0.6161, allocations: 195.1 MB / 0.9719 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.01882/0.6349, allocations: 14.3 MB / 0.9858 GB, free: 6.586 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001137/0.6361, allocations: 35.81 kB / 0.9859 GB, free: 6.551 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.001661/0.6378, allocations: 0.5007 MB / 0.9864 GB, free: 6.047 MB / 0.7481 GB Notification: Performance of NFTyping.typeBindings: time 0.004898/0.6427, allocations: 1.893 MB / 0.9882 GB, free: 4.148 MB / 0.7481 GB Notification: Performance of NFTyping.typeClassSections: time 0.002395/0.6451, allocations: 0.8744 MB / 0.9891 GB, free: 3.277 MB / 0.7481 GB Notification: Performance of NFFlatten.flatten: time 0.003392/0.6486, allocations: 2.569 MB / 0.9916 GB, free: 0.7031 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3874/1.036, allocations: 1.105 MB / 0.9927 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004165/1.04, allocations: 1.592 MB / 0.9942 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001615/1.042, allocations: 0.9194 MB / 0.9951 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 0.0002091/1.042, allocations: 106.9 kB / 0.9952 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002352/1.044, allocations: 1.107 MB / 0.9963 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0006459/1.045, allocations: 0.4921 MB / 0.9968 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 0.0008288/1.046, allocations: 0.6314 MB / 0.9974 GB, free: 3.738 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.00336/1.049, allocations: 1.921 MB / 0.9993 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/1.049, allocations: 1.203 kB / 0.9993 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of FrontEnd: time 1.643e-06/1.049, allocations: 0.8438 kB / 0.9993 GB, free: 3.625 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 2.299e-05/1.049, allocations: 1.031 kB / 0.9993 GB, free: 3.625 MB / 0.7481 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.002596/1.052, allocations: 1.483 MB / 1.001 GB, free: 18.82 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 4.193e-05/1.052, allocations: 12.02 kB / 1.001 GB, free: 18.82 MB / 0.7637 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000163/1.052, allocations: 148.2 kB / 1.001 GB, free: 18.78 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00133/1.053, allocations: 261.7 kB / 1.001 GB, free: 18.71 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001254/1.055, allocations: 0.7912 MB / 1.002 GB, free: 18.39 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.586e-05/1.055, allocations: 78.62 kB / 1.002 GB, free: 18.39 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000142/1.055, allocations: 90.91 kB / 1.002 GB, free: 18.39 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001844/1.057, allocations: 1.171 MB / 1.003 GB, free: 18.16 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.701e-05/1.057, allocations: 4.281 kB / 1.003 GB, free: 18.16 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.446e-05/1.057, allocations: 38.38 kB / 1.003 GB, free: 18.16 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.333e-05/1.057, allocations: 35.7 kB / 1.003 GB, free: 18.16 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00156/1.059, allocations: 0.9019 MB / 1.004 GB, free: 18.16 MB / 0.7637 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.005826/1.064, allocations: 5.762 MB / 1.01 GB, free: 14.4 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008143/1.065, allocations: 0.5322 MB / 1.01 GB, free: 14.37 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004008/1.066, allocations: 319.6 kB / 1.011 GB, free: 14.36 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000605/1.066, allocations: 313.2 kB / 1.011 GB, free: 14.08 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.976e-05/1.066, allocations: 41.66 kB / 1.011 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=49): time 2.064e-06/1.066, allocations: 0 / 1.011 GB, free: 14.04 MB / 0.7637 GB Notification: Performance of matching and sorting (n=49): time 0.00149/1.068, allocations: 0.8041 MB / 1.012 GB, free: 13.95 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.257e-05/1.068, allocations: 63.23 kB / 1.012 GB, free: 13.89 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008801/1.069, allocations: 0.7491 MB / 1.013 GB, free: 13.75 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 5.415e-05/1.069, allocations: 42.44 kB / 1.013 GB, free: 13.71 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002858/1.069, allocations: 0.5175 MB / 1.013 GB, free: 13.46 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001641/1.069, allocations: 186.5 kB / 1.013 GB, free: 13.34 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002445/1.07, allocations: 139.2 kB / 1.013 GB, free: 13.32 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001672/1.07, allocations: 333.7 kB / 1.014 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/1.07, allocations: 249.6 kB / 1.014 GB, free: 13.02 MB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005639/1.071, allocations: 0.5529 MB / 1.014 GB, free: 12.67 MB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000991/1.072, allocations: 0.7984 MB / 1.015 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.73e-06/1.072, allocations: 3.484 kB / 1.015 GB, free: 12.38 MB / 0.7637 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001354/1.073, allocations: 0.8529 MB / 1.016 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/1.073, allocations: 8.656 kB / 1.016 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.338e-05/1.073, allocations: 7.406 kB / 1.016 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.562e-05/1.073, allocations: 16.81 kB / 1.016 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005364/1.074, allocations: 158 kB / 1.016 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2e-05/1.074, allocations: 21.48 kB / 1.016 GB, free: 12.29 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007628/1.074, allocations: 95.23 kB / 1.016 GB, free: 12.24 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.104e-05/1.075, allocations: 34.91 kB / 1.016 GB, free: 12.24 MB / 0.7637 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.0004362/1.075, allocations: 328.2 kB / 1.017 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001312/1.075, allocations: 94.81 kB / 1.017 GB, free: 12.07 MB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009367/1.076, allocations: 0.616 MB / 1.017 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.484e-06/1.076, allocations: 8.188 kB / 1.017 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.619e-06/1.076, allocations: 0.9062 kB / 1.017 GB, free: 12.01 MB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006813/1.077, allocations: 0.5199 MB / 1.018 GB, free: 11.93 MB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002174/1.079, allocations: 1.67 MB / 1.02 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/1.079, allocations: 2.812 kB / 1.02 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004794/1.079, allocations: 115.1 kB / 1.02 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.248e-06/1.079, allocations: 4.219 kB / 1.02 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.462e-05/1.079, allocations: 15.03 kB / 1.02 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.699e-06/1.08, allocations: 5.781 kB / 1.02 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/1.08, allocations: 3.594 kB / 1.02 GB, free: 11.55 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00104/1.081, allocations: 1.02 MB / 1.021 GB, free: 11.3 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002679/1.081, allocations: 229.3 kB / 1.021 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001013/1.081, allocations: 14.75 kB / 1.021 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004238/1.081, allocations: 15.3 kB / 1.021 GB, free: 11.16 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.727e-05/1.081, allocations: 39.95 kB / 1.021 GB, free: 11.15 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.212e-05/1.081, allocations: 21.45 kB / 1.021 GB, free: 11.15 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0005003/1.082, allocations: 0.5082 MB / 1.022 GB, free: 11.06 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.41e-07/1.082, allocations: 1.094 kB / 1.022 GB, free: 11.06 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.0008102/1.083, allocations: 299.8 kB / 1.022 GB, free: 11.02 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.0017/1.085, allocations: 1.685 MB / 1.023 GB, free: 10.23 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.0007816/1.085, allocations: 0.6067 MB / 1.024 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/1.085, allocations: 2.438 kB / 1.024 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0002853/1.086, allocations: 274.3 kB / 1.024 GB, free: 10.22 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001776/1.087, allocations: 442.3 kB / 1.025 GB, free: 10.16 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008075/1.095, allocations: 7.232 MB / 1.032 GB, free: 7.562 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007308/1.096, allocations: 1.126 MB / 1.033 GB, free: 6.859 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0008175/1.097, allocations: 262.3 kB / 1.033 GB, free: 6.84 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003855/1.097, allocations: 359.3 kB / 1.033 GB, free: 6.832 MB / 0.7637 GB Notification: Performance of SimCode: time 7.41e-07/1.097, allocations: 0.5625 kB / 1.033 GB, free: 6.832 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04891/1.146, allocations: 23.11 MB / 1.056 GB, free: 2.852 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.132/10.28, allocations: 10.75 kB / 1.056 GB, free: 2.848 MB / 0.7637 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)