Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_IDEAS_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.005991/0.005991, allocations: 101 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.001331/0.001331, allocations: 193.7 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.363/1.363, 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/IDEAS 3.0.0/package.mo): time 0.8216/0.8216, allocations: 132.2 MB / 422.7 MB, free: 6.535 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002706/0.002706, allocations: 68.27 kB / 0.5809 GB, free: 23.96 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1649/0.1676, allocations: 80.21 MB / 0.6592 GB, free: 10.7 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sensors.Examples.TraceSubstances): time 0.5874/0.7551, allocations: 195.1 MB / 0.8497 GB, free: 15.58 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01859/0.7737, allocations: 14.3 MB / 0.8637 GB, free: 3.992 MB / 0.6231 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001428/0.7751, allocations: 34.69 kB / 0.8637 GB, free: 3.98 MB / 0.6231 GB Notification: Performance of NFTyping.typeComponents: time 0.001709/0.7769, allocations: 0.4993 MB / 0.8642 GB, free: 3.559 MB / 0.6231 GB Notification: Performance of NFTyping.typeBindings: time 0.004996/0.7819, allocations: 1.884 MB / 0.866 GB, free: 2.113 MB / 0.6231 GB Notification: Performance of NFTyping.typeClassSections: time 0.002403/0.7844, allocations: 0.8679 MB / 0.8669 GB, free: 1.434 MB / 0.6231 GB Notification: Performance of NFFlatten.flatten: time 0.003614/0.788, allocations: 2.569 MB / 0.8694 GB, free: 14.86 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.00163/0.7896, allocations: 1.12 MB / 0.8705 GB, free: 13.72 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00434/0.794, allocations: 1.598 MB / 0.8721 GB, free: 12.13 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00166/0.7957, allocations: 0.9206 MB / 0.873 GB, free: 11.21 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002307/0.7959, allocations: 104 kB / 0.8731 GB, free: 11.11 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002549/0.7985, allocations: 1.103 MB / 0.8741 GB, free: 10 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0006067/0.7991, allocations: 0.4987 MB / 0.8746 GB, free: 9.504 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0008555/0.8, allocations: 0.63 MB / 0.8752 GB, free: 8.871 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.003021/0.803, allocations: 1.931 MB / 0.8771 GB, free: 6.934 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 6.553e-06/0.803, allocations: 4 kB / 0.8771 GB, free: 6.93 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.502e-06/0.803, allocations: 0 / 0.8771 GB, free: 6.93 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.447e-05/0.803, allocations: 0 / 0.8771 GB, free: 6.93 MB / 0.6387 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.002445/0.8055, allocations: 1.475 MB / 0.8786 GB, free: 5.398 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.773e-05/0.8056, allocations: 12.03 kB / 0.8786 GB, free: 5.387 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001785/0.8057, allocations: 143.6 kB / 0.8787 GB, free: 5.238 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001344/0.8071, allocations: 267 kB / 0.879 GB, free: 4.977 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001386/0.8085, allocations: 0.8006 MB / 0.8798 GB, free: 4.133 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.711e-05/0.8086, allocations: 66 kB / 0.8798 GB, free: 4.066 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001519/0.8087, allocations: 103.9 kB / 0.8799 GB, free: 3.965 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001787/0.8105, allocations: 1.169 MB / 0.8811 GB, free: 2.727 MB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.914e-05/0.8106, allocations: 3.938 kB / 0.8811 GB, free: 2.723 MB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.188e-05/0.8107, allocations: 40 kB / 0.8811 GB, free: 2.684 MB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.986e-05/0.8107, allocations: 37.98 kB / 0.8811 GB, free: 2.645 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001408/0.8121, allocations: 0.8937 MB / 0.882 GB, free: 1.75 MB / 0.6387 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.006234/0.8184, allocations: 5.748 MB / 0.8876 GB, free: 11.54 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008574/0.8192, allocations: 0.5336 MB / 0.8881 GB, free: 11 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004461/0.8197, allocations: 322.6 kB / 0.8884 GB, free: 10.69 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005961/0.8203, allocations: 311.7 kB / 0.8887 GB, free: 10.33 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.783e-05/0.8204, allocations: 39 kB / 0.8888 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=49): time 2.344e-06/0.8204, allocations: 4 kB / 0.8888 GB, free: 10.28 MB / 0.6544 GB Notification: Performance of matching and sorting (n=49): time 0.001559/0.8219, allocations: 0.803 MB / 0.8896 GB, free: 9.465 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.822, allocations: 67.72 kB / 0.8896 GB, free: 9.387 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009931/0.823, allocations: 0.751 MB / 0.8904 GB, free: 8.629 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 5.84e-05/0.8231, allocations: 37.7 kB / 0.8904 GB, free: 8.586 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004504/0.8235, allocations: 0.5155 MB / 0.8909 GB, free: 8.062 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.000189/0.8237, allocations: 186.4 kB / 0.8911 GB, free: 7.879 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002298/0.824, allocations: 150.6 kB / 0.8912 GB, free: 7.727 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001689/0.8241, allocations: 334 kB / 0.8915 GB, free: 7.395 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003982/0.8245, allocations: 245.8 kB / 0.8918 GB, free: 7.152 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007234/0.8253, allocations: 0.5566 MB / 0.8923 GB, free: 6.457 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001105/0.8264, allocations: 0.7995 MB / 0.8931 GB, free: 5.547 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.8264, allocations: 0 / 0.8931 GB, free: 5.547 MB / 0.6544 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001407/0.8278, allocations: 0.8465 MB / 0.8939 GB, free: 4.691 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.503e-05/0.8279, allocations: 8 kB / 0.8939 GB, free: 4.684 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.332e-05/0.8279, allocations: 8 kB / 0.8939 GB, free: 4.676 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.8279, allocations: 12.78 kB / 0.894 GB, free: 4.664 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005981/0.8285, allocations: 159.7 kB / 0.8941 GB, free: 4.508 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.748e-05/0.8285, allocations: 23.88 kB / 0.8941 GB, free: 4.484 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007109/0.8293, allocations: 89.22 kB / 0.8942 GB, free: 4.398 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.594e-05/0.8293, allocations: 43.98 kB / 0.8943 GB, free: 4.355 MB / 0.6544 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.0005344/0.8299, allocations: 330.4 kB / 0.8946 GB, free: 4.023 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001436/0.83, allocations: 87.44 kB / 0.8947 GB, free: 3.938 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001103/0.8311, allocations: 0.6218 MB / 0.8953 GB, free: 3.312 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.545e-06/0.8312, allocations: 4 kB / 0.8953 GB, free: 3.309 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.306e-06/0.8312, allocations: 3.938 kB / 0.8953 GB, free: 3.305 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007712/0.8319, allocations: 0.5134 MB / 0.8958 GB, free: 2.777 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002546/0.8345, allocations: 1.667 MB / 0.8974 GB, free: 1.031 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.8345, allocations: 0 / 0.8974 GB, free: 1.031 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000525/0.8351, allocations: 119.8 kB / 0.8975 GB, free: 0.9141 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.888e-06/0.8351, allocations: 7.984 kB / 0.8975 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.756e-05/0.8351, allocations: 15.98 kB / 0.8975 GB, free: 0.8906 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.8351, allocations: 4 kB / 0.8975 GB, free: 0.8867 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.404e-06/0.8351, allocations: 0 / 0.8975 GB, free: 0.8867 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.8366, allocations: 1.062 MB / 0.8986 GB, free: 15.79 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003665/0.837, allocations: 228.5 kB / 0.8988 GB, free: 15.54 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.653e-05/0.8371, allocations: 8 kB / 0.8988 GB, free: 15.54 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004343/0.8375, allocations: 19.98 kB / 0.8988 GB, free: 15.52 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.847e-05/0.8376, allocations: 35.84 kB / 0.8989 GB, free: 15.48 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-05/0.8377, allocations: 19.98 kB / 0.8989 GB, free: 15.46 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006749/0.8384, allocations: 0.5107 MB / 0.8994 GB, free: 14.95 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8384, allocations: 0 / 0.8994 GB, free: 14.95 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0008741/0.8392, allocations: 299.5 kB / 0.8997 GB, free: 14.66 MB / 0.67 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (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.002173/0.8414, allocations: 1.707 MB / 0.9013 GB, free: 12.93 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.001036/0.8425, allocations: 0.6119 MB / 0.9019 GB, free: 12.32 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.8425, allocations: 0 / 0.9019 GB, free: 12.32 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0003956/0.8429, allocations: 267.7 kB / 0.9022 GB, free: 12.05 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001915/0.8448, allocations: 449.1 kB / 0.9026 GB, free: 11.64 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009579/0.8544, allocations: 7.227 MB / 0.9097 GB, free: 4.02 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008167/0.8553, allocations: 1.122 MB / 0.9108 GB, free: 2.871 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0007941/0.8561, allocations: 271 kB / 0.911 GB, free: 2.602 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004868/0.8566, allocations: 363.2 kB / 0.9114 GB, free: 2.246 MB / 0.67 GB Notification: Performance of SimCode: time 6.22e-07/0.8566, allocations: 0 / 0.9114 GB, free: 2.246 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0575/0.9141, allocations: 23.11 MB / 0.9339 GB, free: 11.47 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.385/10.3, allocations: 7.938 kB / 0.9339 GB, free: 11.46 MB / 0.7012 GB (rm -f IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.sim & python3 -m fmpy simulate --output-file IDEAS_IDEAS.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 IDEAS_IDEAS_Fluid_Sensors_Examples_TraceSubstances.fmu > IDEAS_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)