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.00761/0.00761, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001567/0.001567, allocations: 201.1 kB / 16.68 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.335/1.335, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7634/0.7634, allocations: 132.2 MB / 422.7 MB, free: 1.688 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001233/0.001233, allocations: 63.78 kB / 0.5809 GB, free: 1.086 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1587/0.1599, allocations: 80.21 MB / 0.6592 GB, free: 13.97 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sensors.Examples.TraceSubstances): time 0.5838/0.7438, allocations: 195.1 MB / 0.8497 GB, free: 2.656 MB / 0.6387 GB Notification: Performance of NFInst.instExpressions: time 0.01696/0.7608, allocations: 14.3 MB / 0.8637 GB, free: 2.438 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001761/0.7626, allocations: 37.28 kB / 0.8637 GB, free: 2.438 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001675/0.7643, allocations: 0.5087 MB / 0.8642 GB, free: 2.434 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.005263/0.7696, allocations: 1.965 MB / 0.8661 GB, free: 2.348 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002824/0.7725, allocations: 0.8653 MB / 0.867 GB, free: 2.328 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003587/0.7761, allocations: 2.581 MB / 0.8695 GB, free: 2.316 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001591/0.7777, allocations: 1.118 MB / 0.8706 GB, free: 2.207 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004446/0.7822, allocations: 1.653 MB / 0.8722 GB, free: 2.16 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001769/0.7839, allocations: 0.9274 MB / 0.8731 GB, free: 2.039 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0002098/0.7842, allocations: 105.5 kB / 0.8732 GB, free: 2.039 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003073/0.7872, allocations: 1.103 MB / 0.8743 GB, free: 2.031 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0005701/0.7878, allocations: 0.5029 MB / 0.8748 GB, free: 1.98 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0009471/0.7888, allocations: 0.6351 MB / 0.8754 GB, free: 1.805 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.004028/0.7928, allocations: 1.923 MB / 0.8773 GB, free: 1.555 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 7.384e-06/0.7929, allocations: 0 / 0.8773 GB, free: 1.555 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.953e-06/0.7929, allocations: 0.6875 kB / 0.8773 GB, free: 1.555 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 2.779e-05/0.7929, allocations: 0 / 0.8773 GB, free: 1.555 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.002229/0.7952, allocations: 1.484 MB / 0.8787 GB, free: 0.7422 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 4.324e-05/0.7952, allocations: 9.406 kB / 0.8787 GB, free: 0.7422 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001415/0.7954, allocations: 147.2 kB / 0.8789 GB, free: 0.7031 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001424/0.7968, allocations: 256.3 kB / 0.8791 GB, free: 0.6367 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00144/0.7982, allocations: 0.8019 MB / 0.8799 GB, free: 316 kB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.095e-05/0.7983, allocations: 75.72 kB / 0.88 GB, free: 308 kB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000158/0.7985, allocations: 94.55 kB / 0.8801 GB, free: 304 kB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001717/0.8002, allocations: 1.171 MB / 0.8812 GB, free: 76 kB / 0.6387 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.056e-05/0.8002, allocations: 3.125 kB / 0.8812 GB, free: 76 kB / 0.6387 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.436e-05/0.8003, allocations: 37.12 kB / 0.8813 GB, free: 76 kB / 0.6387 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.54e-05/0.8004, allocations: 36.44 kB / 0.8813 GB, free: 72 kB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.8016, allocations: 0.9001 MB / 0.8822 GB, free: 64 kB / 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.005612/0.8072, allocations: 5.738 MB / 0.8878 GB, free: 12.29 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0008399/0.8081, allocations: 0.5482 MB / 0.8883 GB, free: 12.2 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004105/0.8085, allocations: 322.1 kB / 0.8886 GB, free: 12.09 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005825/0.8091, allocations: 307.1 kB / 0.8889 GB, free: 11.8 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.272e-05/0.8091, allocations: 39.12 kB / 0.8889 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=49): time 2.214e-06/0.8092, allocations: 3.312 kB / 0.8889 GB, free: 11.76 MB / 0.6544 GB Notification: Performance of matching and sorting (n=49): time 0.001518/0.8107, allocations: 0.799 MB / 0.8897 GB, free: 11.45 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.8107, allocations: 60.31 kB / 0.8898 GB, free: 11.38 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008736/0.8116, allocations: 0.7477 MB / 0.8905 GB, free: 11.08 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 6.737e-05/0.8117, allocations: 39.3 kB / 0.8906 GB, free: 11.04 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004068/0.8121, allocations: 0.5204 MB / 0.8911 GB, free: 10.62 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.8123, allocations: 184.8 kB / 0.8912 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001983/0.8125, allocations: 146 kB / 0.8914 GB, free: 10.41 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001313/0.8126, allocations: 331.7 kB / 0.8917 GB, free: 10.09 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003583/0.813, allocations: 254.5 kB / 0.8919 GB, free: 10.01 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006108/0.8136, allocations: 0.5564 MB / 0.8925 GB, free: 9.547 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009356/0.8146, allocations: 0.7937 MB / 0.8933 GB, free: 9.039 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.415e-06/0.8146, allocations: 10.44 kB / 0.8933 GB, free: 9.031 MB / 0.6544 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001254/0.8158, allocations: 0.846 MB / 0.8941 GB, free: 8.727 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 2.211e-05/0.8159, allocations: 8.719 kB / 0.8941 GB, free: 8.727 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.259e-05/0.8159, allocations: 7.938 kB / 0.8941 GB, free: 8.727 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.8159, allocations: 13.62 kB / 0.8941 GB, free: 8.727 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000561/0.8165, allocations: 154.3 kB / 0.8943 GB, free: 8.723 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.619e-05/0.8165, allocations: 15.3 kB / 0.8943 GB, free: 8.723 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007961/0.8173, allocations: 92.81 kB / 0.8944 GB, free: 8.664 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.785e-05/0.8174, allocations: 38.08 kB / 0.8944 GB, free: 8.656 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.0004927/0.8179, allocations: 341.4 kB / 0.8947 GB, free: 8.449 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001339/0.818, allocations: 87.62 kB / 0.8948 GB, free: 8.402 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008946/0.8189, allocations: 0.6155 MB / 0.8954 GB, free: 8.141 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.593e-06/0.8189, allocations: 8.438 kB / 0.8954 GB, free: 8.141 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.8189, allocations: 0 / 0.8954 GB, free: 8.141 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006834/0.8196, allocations: 0.5128 MB / 0.8959 GB, free: 7.914 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002379/0.822, allocations: 1.668 MB / 0.8976 GB, free: 7.082 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.122e-06/0.822, allocations: 2.844 kB / 0.8976 GB, free: 7.082 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005179/0.8226, allocations: 110.5 kB / 0.8977 GB, free: 7.082 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.066e-06/0.8226, allocations: 6.688 kB / 0.8977 GB, free: 7.078 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.917e-05/0.8226, allocations: 18.38 kB / 0.8977 GB, free: 7.07 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.576e-06/0.8227, allocations: 7.344 kB / 0.8977 GB, free: 7.066 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.735e-06/0.8227, allocations: 5.188 kB / 0.8977 GB, free: 7.066 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001366/0.824, allocations: 1.054 MB / 0.8987 GB, free: 6.527 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000413/0.8245, allocations: 230.5 kB / 0.8989 GB, free: 6.352 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.8246, allocations: 13.61 kB / 0.899 GB, free: 6.344 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004584/0.825, allocations: 20.38 kB / 0.899 GB, free: 6.332 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.807e-05/0.8251, allocations: 30.33 kB / 0.899 GB, free: 6.328 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-05/0.8252, allocations: 24.58 kB / 0.899 GB, free: 6.32 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0006339/0.8258, allocations: 0.5096 MB / 0.8995 GB, free: 6.109 MB / 0.6544 GB Notification: Performance of sort global known variables: time 2.5e-07/0.8258, allocations: 3.188 kB / 0.8995 GB, free: 6.109 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0009085/0.8267, allocations: 299.4 kB / 0.8998 GB, free: 6.051 MB / 0.6544 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.002025/0.8288, allocations: 1.722 MB / 0.9015 GB, free: 4.934 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.001133/0.8299, allocations: 0.6101 MB / 0.9021 GB, free: 4.758 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 3.937e-06/0.8299, allocations: 0 / 0.9021 GB, free: 4.758 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 0.0003755/0.8303, allocations: 270 kB / 0.9024 GB, free: 4.684 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002077/0.8324, allocations: 443.3 kB / 0.9028 GB, free: 4.555 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01003/0.8424, allocations: 7.225 MB / 0.9098 GB, free: 15.47 MB / 0.67 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007099/0.8432, allocations: 1.118 MB / 0.9109 GB, free: 14.32 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.0008954/0.8441, allocations: 267.1 kB / 0.9112 GB, free: 14.06 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004483/0.8446, allocations: 359.3 kB / 0.9115 GB, free: 13.71 MB / 0.67 GB Notification: Performance of SimCode: time 6.91e-07/0.8446, allocations: 0 / 0.9115 GB, free: 13.71 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04952/0.8941, allocations: 23.11 MB / 0.9341 GB, free: 7.02 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.184/10.08, allocations: 14.02 kB / 0.9341 GB, free: 7.012 MB / 0.6856 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)