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.001437/0.001437, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001721/0.001721, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.399/1.399, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9797/0.9797, allocations: 135.1 MB / 425.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 61.34 kB / 0.5054 GB, free: 5.23 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1541/0.1555, allocations: 80.93 MB / 0.5845 GB, free: 4.453 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Sensors.Examples.TraceSubstances): time 0.4979/0.6535, allocations: 195.1 MB / 0.775 GB, free: 9.754 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01872/0.6723, allocations: 14.31 MB / 0.7889 GB, free: 11.39 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001674/0.674, allocations: 39.75 kB / 0.789 GB, free: 11.36 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.001634/0.6757, allocations: 0.4929 MB / 0.7895 GB, free: 10.86 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.004971/0.6807, allocations: 1.886 MB / 0.7913 GB, free: 8.965 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.002397/0.6831, allocations: 0.866 MB / 0.7922 GB, free: 8.105 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.00357/0.6867, allocations: 2.563 MB / 0.7947 GB, free: 5.539 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001528/0.6882, allocations: 1.109 MB / 0.7957 GB, free: 4.418 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003703/0.6919, allocations: 1.599 MB / 0.7973 GB, free: 2.836 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001322/0.6933, allocations: 0.9148 MB / 0.7982 GB, free: 1.922 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001634/0.6934, allocations: 108 kB / 0.7983 GB, free: 1.816 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002161/0.6956, allocations: 1.099 MB / 0.7994 GB, free: 0.7148 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0004851/0.6961, allocations: 0.4948 MB / 0.7999 GB, free: 224 kB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007853/0.6969, allocations: 0.6378 MB / 0.8005 GB, free: 15.57 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.002611/0.6995, allocations: 1.889 MB / 0.8023 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.6995, allocations: 0 / 0.8023 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.373e-06/0.6996, allocations: 8 kB / 0.8023 GB, free: 13.68 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 1.96e-05/0.6996, allocations: 0 / 0.8023 GB, free: 13.68 MB / 0.6231 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.002077/0.7017, allocations: 1.451 MB / 0.8037 GB, free: 12.17 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.503e-05/0.7017, allocations: 12.03 kB / 0.8038 GB, free: 12.16 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001605/0.7019, allocations: 143.6 kB / 0.8039 GB, free: 12.01 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001385/0.7033, allocations: 254.3 kB / 0.8041 GB, free: 11.76 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001259/0.7045, allocations: 0.7531 MB / 0.8049 GB, free: 10.97 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.737e-05/0.7046, allocations: 73.94 kB / 0.8049 GB, free: 10.89 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001456/0.7048, allocations: 92 kB / 0.805 GB, free: 10.8 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001597/0.7064, allocations: 1.18 MB / 0.8062 GB, free: 9.559 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.575e-05/0.7064, allocations: 4 kB / 0.8062 GB, free: 9.555 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.807e-05/0.7065, allocations: 36 kB / 0.8062 GB, free: 9.52 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.336e-05/0.7066, allocations: 34 kB / 0.8063 GB, free: 9.484 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001315/0.7079, allocations: 0.9053 MB / 0.8071 GB, free: 8.578 MB / 0.6231 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.005434/0.7133, allocations: 5.77 MB / 0.8128 GB, free: 2.344 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0007915/0.7141, allocations: 0.5252 MB / 0.8133 GB, free: 1.812 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004169/0.7146, allocations: 318.6 kB / 0.8136 GB, free: 1.5 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006204/0.7152, allocations: 319.7 kB / 0.8139 GB, free: 1.133 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.204e-05/0.7152, allocations: 42.94 kB / 0.8139 GB, free: 1.082 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=49): time 2.604e-06/0.7152, allocations: 0 / 0.8139 GB, free: 1.082 MB / 0.6231 GB Notification: Performance of matching and sorting (n=49): time 0.001534/0.7168, allocations: 0.7987 MB / 0.8147 GB, free: 280 kB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.749e-05/0.7168, allocations: 59.84 kB / 0.8148 GB, free: 208 kB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009447/0.7178, allocations: 0.7469 MB / 0.8155 GB, free: 15.45 MB / 0.6387 GB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.7179, allocations: 37.7 kB / 0.8155 GB, free: 15.41 MB / 0.6387 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003615/0.7182, allocations: 0.5065 MB / 0.816 GB, free: 14.89 MB / 0.6387 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001523/0.7184, allocations: 185.4 kB / 0.8162 GB, free: 14.71 MB / 0.6387 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002/0.7186, allocations: 134.6 kB / 0.8163 GB, free: 14.57 MB / 0.6387 GB Notification: Performance of setup shared object (initialization): time 0.0001161/0.7187, allocations: 341.9 kB / 0.8167 GB, free: 14.23 MB / 0.6387 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003557/0.7191, allocations: 245.9 kB / 0.8169 GB, free: 13.99 MB / 0.6387 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000613/0.7197, allocations: 0.5566 MB / 0.8174 GB, free: 13.3 MB / 0.6387 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009618/0.7207, allocations: 0.7995 MB / 0.8182 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.96e-06/0.7207, allocations: 0 / 0.8182 GB, free: 12.39 MB / 0.6387 GB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001315/0.722, allocations: 0.8466 MB / 0.819 GB, free: 11.54 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.283e-05/0.722, allocations: 8 kB / 0.8191 GB, free: 11.53 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.413e-05/0.7221, allocations: 8 kB / 0.8191 GB, free: 11.52 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.399e-05/0.7221, allocations: 12 kB / 0.8191 GB, free: 11.51 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005897/0.7227, allocations: 151.8 kB / 0.8192 GB, free: 11.36 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.321e-05/0.7227, allocations: 22.19 kB / 0.8192 GB, free: 11.34 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.7234, allocations: 91.39 kB / 0.8193 GB, free: 11.25 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.822e-05/0.7235, allocations: 35.94 kB / 0.8194 GB, free: 11.22 MB / 0.6387 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.0004617/0.724, allocations: 329.5 kB / 0.8197 GB, free: 10.89 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001356/0.7241, allocations: 82.97 kB / 0.8198 GB, free: 10.8 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.7252, allocations: 0.6179 MB / 0.8204 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.7252, allocations: 4 kB / 0.8204 GB, free: 10.18 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.006e-05/0.7252, allocations: 4.812 kB / 0.8204 GB, free: 10.17 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0007393/0.726, allocations: 0.5211 MB / 0.8209 GB, free: 9.637 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00267/0.7286, allocations: 1.665 MB / 0.8225 GB, free: 7.895 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.7287, allocations: 4.219 kB / 0.8225 GB, free: 7.891 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005319/0.7292, allocations: 111.9 kB / 0.8226 GB, free: 7.781 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.607e-05/0.7292, allocations: 4 kB / 0.8226 GB, free: 7.777 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.821e-05/0.7293, allocations: 17.55 kB / 0.8226 GB, free: 7.762 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.886e-06/0.7293, allocations: 7.938 kB / 0.8226 GB, free: 7.754 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.928e-06/0.7293, allocations: 3.984 kB / 0.8226 GB, free: 7.75 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001344/0.7306, allocations: 1.062 MB / 0.8237 GB, free: 6.652 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003309/0.731, allocations: 220 kB / 0.8239 GB, free: 6.418 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.7311, allocations: 19.92 kB / 0.8239 GB, free: 6.398 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.7316, allocations: 23.12 kB / 0.8239 GB, free: 6.379 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.193e-05/0.7317, allocations: 31.95 kB / 0.824 GB, free: 6.348 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.949e-05/0.7317, allocations: 19.94 kB / 0.824 GB, free: 6.328 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.0007003/0.7324, allocations: 0.5185 MB / 0.8245 GB, free: 5.812 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.5e-07/0.7324, allocations: 0 / 0.8245 GB, free: 5.812 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001031/0.7335, allocations: 295.3 kB / 0.8248 GB, free: 5.523 MB / 0.6387 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.00226/0.7357, allocations: 1.699 MB / 0.8264 GB, free: 3.797 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.001161/0.7369, allocations: 0.7131 MB / 0.8271 GB, free: 3.086 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 6.152e-06/0.7369, allocations: 8.5 kB / 0.8271 GB, free: 3.078 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0003775/0.7373, allocations: 275.7 kB / 0.8274 GB, free: 2.809 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00205/0.7394, allocations: 447.6 kB / 0.8278 GB, free: 2.398 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01144/0.7508, allocations: 7.48 MB / 0.8351 GB, free: 10.5 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009774/0.7519, allocations: 1.118 MB / 0.8362 GB, free: 9.352 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001028/0.7529, allocations: 271 kB / 0.8365 GB, free: 9.082 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005761/0.7535, allocations: 355.3 kB / 0.8368 GB, free: 8.738 MB / 0.6544 GB Notification: Performance of SimCode: time 1.142e-06/0.7535, allocations: 0 / 0.8368 GB, free: 8.738 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05162/0.8052, allocations: 22.89 MB / 0.8592 GB, free: 2.176 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.877/8.682, allocations: 15.73 kB / 0.8592 GB, free: 2.164 MB / 0.67 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)