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.007477/0.007477, allocations: 101.2 kB / 15.73 MB, free: 6.051 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.001914/0.001914, allocations: 186.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.362/1.362, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8319/0.8319, allocations: 135.1 MB / 425.7 MB, free: 4.133 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 59.81 kB / 0.5851 GB, free: 21.91 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1712, allocations: 80.93 MB / 0.6642 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sensors.Examples.TraceSubstances): time 0.5888/0.76, allocations: 195.1 MB / 0.8547 GB, free: 9.926 MB / 0.6231 GB Notification: Performance of NFInst.instExpressions: time 0.01701/0.7771, allocations: 14.32 MB / 0.8687 GB, free: 14.06 MB / 0.6387 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00136/0.7785, allocations: 35.81 kB / 0.8687 GB, free: 14.03 MB / 0.6387 GB Notification: Performance of NFTyping.typeComponents: time 0.001546/0.78, allocations: 0.5047 MB / 0.8692 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of NFTyping.typeBindings: time 0.004665/0.7848, allocations: 1.956 MB / 0.8711 GB, free: 11.55 MB / 0.6387 GB Notification: Performance of NFTyping.typeClassSections: time 0.002396/0.7872, allocations: 0.876 MB / 0.872 GB, free: 10.68 MB / 0.6387 GB Notification: Performance of NFFlatten.flatten: time 0.003323/0.7905, allocations: 2.577 MB / 0.8745 GB, free: 8.098 MB / 0.6387 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001438/0.7919, allocations: 1.111 MB / 0.8756 GB, free: 6.969 MB / 0.6387 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00396/0.7959, allocations: 1.654 MB / 0.8772 GB, free: 5.332 MB / 0.6387 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001564/0.7975, allocations: 0.9242 MB / 0.8781 GB, free: 4.41 MB / 0.6387 GB Notification: Performance of NFPackage.collectConstants: time 0.0001662/0.7977, allocations: 108 kB / 0.8782 GB, free: 4.305 MB / 0.6387 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002416/0.8001, allocations: 1.111 MB / 0.8793 GB, free: 3.191 MB / 0.6387 GB Notification: Performance of NFScalarize.scalarize: time 0.0004815/0.8006, allocations: 0.4988 MB / 0.8798 GB, free: 2.691 MB / 0.6387 GB Notification: Performance of NFVerifyModel.verify: time 0.0007009/0.8013, allocations: 0.6338 MB / 0.8804 GB, free: 2.055 MB / 0.6387 GB Notification: Performance of NFConvertDAE.convert: time 0.002461/0.8038, allocations: 1.935 MB / 0.8823 GB, free: 116 kB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.8038, allocations: 0 / 0.8823 GB, free: 116 kB / 0.6387 GB Notification: Performance of FrontEnd: time 1.052e-06/0.8038, allocations: 0 / 0.8823 GB, free: 116 kB / 0.6387 GB Notification: Performance of Transformations before backend: time 1.53e-05/0.8038, allocations: 0 / 0.8823 GB, free: 116 kB / 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.002178/0.806, allocations: 1.479 MB / 0.8837 GB, free: 14.57 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.562e-05/0.806, allocations: 13.11 kB / 0.8837 GB, free: 14.56 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001776/0.8062, allocations: 139.6 kB / 0.8839 GB, free: 14.42 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001338/0.8076, allocations: 263 kB / 0.8841 GB, free: 14.16 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.809, allocations: 0.8006 MB / 0.8849 GB, free: 13.32 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.474e-05/0.809, allocations: 70 kB / 0.885 GB, free: 13.25 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001365/0.8092, allocations: 95.95 kB / 0.885 GB, free: 13.16 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.8108, allocations: 1.173 MB / 0.8862 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.968e-05/0.8108, allocations: 7.938 kB / 0.8862 GB, free: 11.91 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.006e-05/0.8109, allocations: 36 kB / 0.8862 GB, free: 11.87 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.4e-05/0.811, allocations: 37.98 kB / 0.8863 GB, free: 11.83 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001323/0.8123, allocations: 0.8937 MB / 0.8871 GB, free: 10.94 MB / 0.6544 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.005543/0.8179, allocations: 5.748 MB / 0.8928 GB, free: 4.734 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007665/0.8186, allocations: 0.5382 MB / 0.8933 GB, free: 4.191 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004046/0.8191, allocations: 318.6 kB / 0.8936 GB, free: 3.879 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0005737/0.8196, allocations: 311.7 kB / 0.8939 GB, free: 3.52 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.087e-05/0.8197, allocations: 39 kB / 0.8939 GB, free: 3.469 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=49): time 2.545e-06/0.8197, allocations: 0 / 0.8939 GB, free: 3.469 MB / 0.6544 GB Notification: Performance of matching and sorting (n=49): time 0.00145/0.8212, allocations: 0.803 MB / 0.8947 GB, free: 2.66 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.8212, allocations: 63.78 kB / 0.8948 GB, free: 2.586 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008271/0.822, allocations: 0.7471 MB / 0.8955 GB, free: 1.832 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 4.822e-05/0.8221, allocations: 37.7 kB / 0.8955 GB, free: 1.789 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003565/0.8225, allocations: 0.5233 MB / 0.896 GB, free: 1.258 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001529/0.8226, allocations: 182.4 kB / 0.8962 GB, free: 1.078 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002069/0.8228, allocations: 150.6 kB / 0.8964 GB, free: 0.9258 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 0.0001242/0.823, allocations: 334 kB / 0.8967 GB, free: 0.5938 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.8233, allocations: 241.9 kB / 0.8969 GB, free: 368 kB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005936/0.8239, allocations: 0.5566 MB / 0.8975 GB, free: 15.67 MB / 0.67 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009413/0.8249, allocations: 0.7995 MB / 0.8982 GB, free: 14.76 MB / 0.67 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.653e-06/0.8249, allocations: 8 kB / 0.8982 GB, free: 14.75 MB / 0.67 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001198/0.8261, allocations: 0.8466 MB / 0.8991 GB, free: 13.9 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 2.113e-05/0.8261, allocations: 8 kB / 0.8991 GB, free: 13.89 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.8261, allocations: 8 kB / 0.8991 GB, free: 13.88 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.8262, allocations: 12 kB / 0.8991 GB, free: 13.87 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000565/0.8267, allocations: 156.4 kB / 0.8992 GB, free: 13.72 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.218e-05/0.8268, allocations: 23.86 kB / 0.8993 GB, free: 13.7 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007064/0.8275, allocations: 91.39 kB / 0.8994 GB, free: 13.61 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.76e-05/0.8276, allocations: 36 kB / 0.8994 GB, free: 13.57 MB / 0.67 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.000405/0.828, allocations: 337.4 kB / 0.8997 GB, free: 13.23 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001333/0.8281, allocations: 87.44 kB / 0.8998 GB, free: 13.14 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009797/0.8291, allocations: 0.6218 MB / 0.9004 GB, free: 12.51 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.8291, allocations: 8 kB / 0.9004 GB, free: 12.5 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.303e-06/0.8291, allocations: 3.938 kB / 0.9004 GB, free: 12.5 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.000723/0.8299, allocations: 0.5173 MB / 0.9009 GB, free: 11.97 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002317/0.8322, allocations: 1.663 MB / 0.9025 GB, free: 10.23 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.176e-06/0.8322, allocations: 0 / 0.9025 GB, free: 10.23 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005225/0.8327, allocations: 115.8 kB / 0.9026 GB, free: 10.12 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.652e-06/0.8328, allocations: 4 kB / 0.9027 GB, free: 10.11 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.111e-05/0.8328, allocations: 16 kB / 0.9027 GB, free: 10.1 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.061e-05/0.8328, allocations: 7.984 kB / 0.9027 GB, free: 10.09 MB / 0.67 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.21e-06/0.8328, allocations: 4 kB / 0.9027 GB, free: 10.09 MB / 0.67 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001463/0.8343, allocations: 1.055 MB / 0.9037 GB, free: 8.992 MB / 0.67 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003633/0.8347, allocations: 232.5 kB / 0.9039 GB, free: 8.746 MB / 0.67 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001142/0.8348, allocations: 12 kB / 0.9039 GB, free: 8.734 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004595/0.8353, allocations: 12 kB / 0.904 GB, free: 8.723 MB / 0.67 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.485e-05/0.8353, allocations: 39.83 kB / 0.904 GB, free: 8.684 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.352e-05/0.8354, allocations: 19.98 kB / 0.904 GB, free: 8.664 MB / 0.67 GB Notification: Performance of sorting global known variables: time 0.0006285/0.836, allocations: 0.5107 MB / 0.9045 GB, free: 8.156 MB / 0.67 GB Notification: Performance of sort global known variables: time 1.31e-07/0.836, allocations: 0 / 0.9045 GB, free: 8.156 MB / 0.67 GB Notification: Performance of remove unused functions: time 0.0008514/0.8369, allocations: 299.5 kB / 0.9048 GB, free: 7.863 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.002072/0.839, allocations: 1.706 MB / 0.9065 GB, free: 6.117 MB / 0.67 GB Notification: Performance of simCode: created initialization part: time 0.0009916/0.84, allocations: 0.6121 MB / 0.9071 GB, free: 5.508 MB / 0.67 GB Notification: Performance of simCode: created event and clocks part: time 4.288e-06/0.84, allocations: 0 / 0.9071 GB, free: 5.508 MB / 0.67 GB Notification: Performance of simCode: created simulation system equations: time 0.0003607/0.8403, allocations: 271.7 kB / 0.9073 GB, free: 5.242 MB / 0.67 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001988/0.8423, allocations: 447.4 kB / 0.9077 GB, free: 4.82 MB / 0.67 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01024/0.8526, allocations: 7.215 MB / 0.9148 GB, free: 13.21 MB / 0.6856 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009066/0.8535, allocations: 1.125 MB / 0.9159 GB, free: 12.06 MB / 0.6856 GB Notification: Performance of simCode: alias equations: time 0.0008617/0.8544, allocations: 259.1 kB / 0.9161 GB, free: 11.8 MB / 0.6856 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005529/0.855, allocations: 359.3 kB / 0.9165 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of SimCode: time 7.51e-07/0.855, allocations: 4 kB / 0.9165 GB, free: 11.45 MB / 0.6856 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05175/0.9067, allocations: 23.13 MB / 0.9391 GB, free: 4.621 MB / 0.7012 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.042/9.949, allocations: 2.031 kB / 0.9391 GB, free: 4.621 MB / 0.7012 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)