Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-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(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_dev_IDEAS_Fluid_Sensors_Examples_TraceSubstances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Sensors.Examples.TraceSubstances,fileNamePrefix="IDEAS_dev_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.004741/0.004741, allocations: 102.5 kB / 15.73 MB, free: 5.996 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.001355/0.001355, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.41/1.41, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.951/0.951, allocations: 135.6 MB / 426.1 MB, free: 11.92 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002851/0.002851, allocations: 63.89 kB / 0.5858 GB, free: 3.211 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4121/0.4149, allocations: 81.03 MB / 0.6649 GB, free: 6.816 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sensors.Examples.TraceSubstances): time 0.2304/0.6454, allocations: 195.1 MB / 0.8554 GB, free: 13.09 MB / 0.6856 GB Notification: Performance of NFInst.instExpressions: time 0.4368/1.082, allocations: 14.3 MB / 0.8694 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001456/1.084, allocations: 37.81 kB / 0.8694 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of NFTyping.typeComponents: time 0.001742/1.085, allocations: 0.4928 MB / 0.8699 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of NFTyping.typeBindings: time 0.005639/1.091, allocations: 1.889 MB / 0.8717 GB, free: 1.938 MB / 0.6856 GB Notification: Performance of NFTyping.typeClassSections: time 0.00287/1.094, allocations: 0.8698 MB / 0.8726 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of NFFlatten.flatten: time 0.004393/1.098, allocations: 2.566 MB / 0.8751 GB, free: 1.914 MB / 0.6856 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001758/1.1, allocations: 1.125 MB / 0.8762 GB, free: 1.801 MB / 0.6856 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004925/1.105, allocations: 1.593 MB / 0.8777 GB, free: 1.781 MB / 0.6856 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002077/1.107, allocations: 0.9229 MB / 0.8786 GB, free: 1.777 MB / 0.6856 GB Notification: Performance of NFPackage.collectConstants: time 0.0002645/1.108, allocations: 110.2 kB / 0.8787 GB, free: 1.777 MB / 0.6856 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003315/1.111, allocations: 1.098 MB / 0.8798 GB, free: 1.766 MB / 0.6856 GB Notification: Performance of NFScalarize.scalarize: time 0.0007511/1.112, allocations: 0.4923 MB / 0.8803 GB, free: 1.766 MB / 0.6856 GB Notification: Performance of NFVerifyModel.verify: time 0.0012/1.113, allocations: 0.6355 MB / 0.8809 GB, free: 1.766 MB / 0.6856 GB Notification: Performance of NFConvertDAE.convert: time 0.003398/1.116, allocations: 1.925 MB / 0.8828 GB, free: 1.648 MB / 0.6856 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/1.116, allocations: 1.562 kB / 0.8828 GB, free: 1.648 MB / 0.6856 GB Notification: Performance of FrontEnd: time 2.535e-06/1.116, allocations: 0 / 0.8828 GB, free: 1.648 MB / 0.6856 GB Notification: Performance of Transformations before backend: time 2.646e-05/1.116, allocations: 2 kB / 0.8828 GB, free: 1.648 MB / 0.6856 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.002493/1.119, allocations: 1.487 MB / 0.8843 GB, free: 16.84 MB / 0.7012 GB Notification: Performance of prepare preOptimizeDAE: time 4.174e-05/1.119, allocations: 9 kB / 0.8843 GB, free: 16.84 MB / 0.7012 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001626/1.119, allocations: 149 kB / 0.8844 GB, free: 16.8 MB / 0.7012 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001381/1.12, allocations: 256.9 kB / 0.8846 GB, free: 16.73 MB / 0.7012 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001309/1.122, allocations: 0.7987 MB / 0.8854 GB, free: 16.41 MB / 0.7012 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.549e-05/1.122, allocations: 72.03 kB / 0.8855 GB, free: 16.41 MB / 0.7012 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001343/1.122, allocations: 92.28 kB / 0.8856 GB, free: 16.41 MB / 0.7012 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001663/1.124, allocations: 1.174 MB / 0.8867 GB, free: 16.18 MB / 0.7012 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.903e-05/1.124, allocations: 6.094 kB / 0.8867 GB, free: 16.18 MB / 0.7012 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.168e-05/1.124, allocations: 40.5 kB / 0.8868 GB, free: 16.18 MB / 0.7012 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.988e-05/1.124, allocations: 37.33 kB / 0.8868 GB, free: 16.18 MB / 0.7012 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001351/1.125, allocations: 0.8952 MB / 0.8877 GB, free: 16.18 MB / 0.7012 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.005784/1.131, allocations: 5.747 MB / 0.8933 GB, free: 12.4 MB / 0.7012 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000798/1.132, allocations: 0.5322 MB / 0.8938 GB, free: 12.38 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004141/1.132, allocations: 316.3 kB / 0.8941 GB, free: 12.37 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006067/1.133, allocations: 317.6 kB / 0.8944 GB, free: 12.08 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.909e-05/1.133, allocations: 50.03 kB / 0.8945 GB, free: 12.04 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=49): time 2.435e-06/1.133, allocations: 0 / 0.8945 GB, free: 12.04 MB / 0.7012 GB Notification: Performance of matching and sorting (n=49): time 0.001465/1.134, allocations: 0.8013 MB / 0.8953 GB, free: 11.95 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/1.134, allocations: 57.09 kB / 0.8953 GB, free: 11.89 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008926/1.135, allocations: 0.7456 MB / 0.896 GB, free: 11.75 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 5.568e-05/1.135, allocations: 43.16 kB / 0.8961 GB, free: 11.72 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003367/1.136, allocations: 0.5171 MB / 0.8966 GB, free: 11.46 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001757/1.136, allocations: 188.3 kB / 0.8968 GB, free: 11.35 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002122/1.136, allocations: 143.7 kB / 0.8969 GB, free: 11.32 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 0.0001587/1.136, allocations: 335.7 kB / 0.8972 GB, free: 11.02 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003433/1.137, allocations: 247.2 kB / 0.8975 GB, free: 11.02 MB / 0.7012 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006475/1.137, allocations: 0.563 MB / 0.898 GB, free: 10.67 MB / 0.7012 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001026/1.138, allocations: 0.7934 MB / 0.8988 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.931e-06/1.138, allocations: 3.125 kB / 0.8988 GB, free: 10.38 MB / 0.7012 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001349/1.14, allocations: 0.8501 MB / 0.8996 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of prepare postOptimizeDAE: time 2.424e-05/1.14, allocations: 11.19 kB / 0.8996 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.527e-05/1.14, allocations: 7.781 kB / 0.8996 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.046e-05/1.14, allocations: 13.56 kB / 0.8996 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005765/1.14, allocations: 154.5 kB / 0.8998 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.19e-05/1.14, allocations: 16.55 kB / 0.8998 GB, free: 10.29 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007779/1.141, allocations: 93.86 kB / 0.8999 GB, free: 10.24 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.555e-05/1.141, allocations: 35 kB / 0.8999 GB, free: 10.24 MB / 0.7012 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.0004249/1.142, allocations: 334.4 kB / 0.9002 GB, free: 10.12 MB / 0.7012 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001435/1.142, allocations: 91.25 kB / 0.9003 GB, free: 10.07 MB / 0.7012 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009029/1.143, allocations: 0.6214 MB / 0.9009 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.47e-06/1.143, allocations: 6.656 kB / 0.9009 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.571e-06/1.143, allocations: 0 / 0.9009 GB, free: 10.02 MB / 0.7012 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0006264/1.143, allocations: 0.5129 MB / 0.9014 GB, free: 9.945 MB / 0.7012 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/1.146, allocations: 1.67 MB / 0.9031 GB, free: 9.562 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/1.146, allocations: 0 / 0.9031 GB, free: 9.562 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004851/1.146, allocations: 113 kB / 0.9032 GB, free: 9.562 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.182e-06/1.146, allocations: 4.969 kB / 0.9032 GB, free: 9.562 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.672e-05/1.146, allocations: 13.16 kB / 0.9032 GB, free: 9.562 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.551e-06/1.146, allocations: 7.703 kB / 0.9032 GB, free: 9.562 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.242e-06/1.146, allocations: 7 kB / 0.9032 GB, free: 9.559 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001231/1.147, allocations: 1.062 MB / 0.9043 GB, free: 9.305 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003186/1.148, allocations: 224.4 kB / 0.9045 GB, free: 9.16 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.956e-05/1.148, allocations: 12.69 kB / 0.9045 GB, free: 9.16 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004192/1.148, allocations: 24.22 kB / 0.9045 GB, free: 9.16 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.164e-05/1.148, allocations: 38.16 kB / 0.9045 GB, free: 9.156 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.251e-05/1.148, allocations: 16.88 kB / 0.9046 GB, free: 9.156 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0005192/1.149, allocations: 0.5159 MB / 0.9051 GB, free: 9.062 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.41e-07/1.149, allocations: 0 / 0.9051 GB, free: 9.062 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.000874/1.15, allocations: 298.7 kB / 0.9053 GB, free: 9.023 MB / 0.7012 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.001873/1.152, allocations: 1.719 MB / 0.907 GB, free: 8.223 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.0008068/1.152, allocations: 0.6072 MB / 0.9076 GB, free: 8.215 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 3.967e-06/1.152, allocations: 2.594 kB / 0.9076 GB, free: 8.215 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.0002908/1.153, allocations: 270.8 kB / 0.9079 GB, free: 8.215 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001792/1.155, allocations: 437.1 kB / 0.9083 GB, free: 8.168 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008476/1.163, allocations: 7.213 MB / 0.9153 GB, free: 5.508 MB / 0.7012 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007321/1.164, allocations: 1.125 MB / 0.9164 GB, free: 4.797 MB / 0.7012 GB Notification: Performance of simCode: alias equations: time 0.0009406/1.165, allocations: 275.5 kB / 0.9167 GB, free: 4.746 MB / 0.7012 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004369/1.165, allocations: 359.4 kB / 0.917 GB, free: 4.742 MB / 0.7012 GB Notification: Performance of SimCode: time 1.763e-06/1.165, allocations: 0 / 0.917 GB, free: 4.742 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05191/1.217, allocations: 23.11 MB / 0.9396 GB, free: 14.31 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.25/10.47, allocations: 3.938 kB / 0.9396 GB, free: 14.3 MB / 0.7169 GB (rm -f IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.sim & python3 -m fmpy simulate --output-file IDEAS_dev_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_dev_IDEAS_Fluid_Sensors_Examples_TraceSubstances.fmu > IDEAS_dev_IDEAS.Fluid.Sensors.Examples.TraceSubstances.pipe 2>&1)