Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction.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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-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(Chemical.Examples.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",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.01466/0.01466, allocations: 98.2 kB / 15.73 MB, free: 6.004 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.002716/0.002716, allocations: 192.6 kB / 16.67 MB, free: 5.934 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.537/1.537, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2439/0.2439, allocations: 15.31 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 68.03 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3301/0.3324, allocations: 53.6 MB / 478.3 MB, free: 25.67 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.SimpleReaction): time 0.04418/0.3766, allocations: 24.22 MB / 0.4907 GB, free: 10.53 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007176/0.3838, allocations: 7.963 MB / 0.4985 GB, free: 2.535 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006038/0.3845, allocations: 7.938 kB / 0.4985 GB, free: 2.527 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005759/0.3851, allocations: 190.5 kB / 0.4987 GB, free: 2.34 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00143/0.3865, allocations: 0.6787 MB / 0.4994 GB, free: 1.656 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002078/0.3886, allocations: 1.041 MB / 0.5004 GB, free: 0.6094 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.3898, allocations: 0.9239 MB / 0.5013 GB, free: 15.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006854/0.3904, allocations: 0.5096 MB / 0.5018 GB, free: 15.17 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004986/0.391, allocations: 454.7 kB / 0.5022 GB, free: 14.72 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006784/0.3917, allocations: 0.4905 MB / 0.5027 GB, free: 14.23 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001163/0.3918, allocations: 80 kB / 0.5028 GB, free: 14.15 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002467/0.3943, allocations: 0.8698 MB / 0.5036 GB, free: 13.28 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002145/0.3945, allocations: 191.4 kB / 0.5038 GB, free: 13.09 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004225/0.3949, allocations: 418.1 kB / 0.5042 GB, free: 12.68 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003364/0.3983, allocations: 1.766 MB / 0.5059 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.883e-06/0.3983, allocations: 3.984 kB / 0.5059 GB, free: 10.91 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.3983, allocations: 0 / 0.5059 GB, free: 10.91 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.058e-05/0.3983, allocations: 0 / 0.5059 GB, free: 10.91 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002067/0.4004, allocations: 1.195 MB / 0.5071 GB, free: 9.656 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.4005, allocations: 12.03 kB / 0.5071 GB, free: 9.645 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001446/0.4006, allocations: 106.7 kB / 0.5072 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006379/0.4013, allocations: 156.1 kB / 0.5074 GB, free: 9.379 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007549/0.402, allocations: 487.6 kB / 0.5078 GB, free: 8.863 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001125/0.4021, allocations: 80.27 kB / 0.5079 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000133/0.4023, allocations: 68.33 kB / 0.508 GB, free: 8.715 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.4036, allocations: 0.7776 MB / 0.5087 GB, free: 7.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.747e-05/0.4036, allocations: 3.938 kB / 0.5087 GB, free: 7.914 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.365e-05/0.4037, allocations: 32 kB / 0.5088 GB, free: 7.883 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.622e-05/0.4037, allocations: 16 kB / 0.5088 GB, free: 7.867 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001375/0.4051, allocations: 0.8757 MB / 0.5096 GB, free: 6.992 MB / 382.1 MB 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.004106/0.4092, allocations: 2.575 MB / 0.5122 GB, free: 4.266 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00167/0.4109, allocations: 1.017 MB / 0.5131 GB, free: 3.203 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004722/0.4114, allocations: 302.4 kB / 0.5134 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003981/0.4153, allocations: 2.828 MB / 0.5162 GB, free: 15.75 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.67e-05/0.4154, allocations: 38.55 kB / 0.5162 GB, free: 15.7 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 4.288e-06/0.4154, allocations: 11.92 kB / 0.5162 GB, free: 15.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.00249/0.4179, allocations: 1.24 MB / 0.5175 GB, free: 14.39 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.135e-05/0.418, allocations: 55.41 kB / 0.5175 GB, free: 14.33 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000534/0.4185, allocations: 417.8 kB / 0.5179 GB, free: 13.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.045e-05/0.4186, allocations: 33.7 kB / 0.5179 GB, free: 13.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000271/0.4189, allocations: 380.1 kB / 0.5183 GB, free: 13.5 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001429/0.419, allocations: 174.5 kB / 0.5185 GB, free: 13.32 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001752/0.4192, allocations: 126.6 kB / 0.5186 GB, free: 13.2 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.4194, allocations: 358.8 kB / 0.5189 GB, free: 12.84 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002741/0.4196, allocations: 149.9 kB / 0.5191 GB, free: 12.69 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000477/0.4201, allocations: 393.5 kB / 0.5194 GB, free: 12.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007679/0.4209, allocations: 0.5747 MB / 0.52 GB, free: 11.52 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.4209, allocations: 4 kB / 0.52 GB, free: 11.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009954/0.4219, allocations: 0.6129 MB / 0.5206 GB, free: 10.89 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.739e-05/0.422, allocations: 13.66 kB / 0.5206 GB, free: 10.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.422, allocations: 11.98 kB / 0.5206 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.455e-05/0.422, allocations: 12 kB / 0.5206 GB, free: 10.86 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007403/0.4228, allocations: 200.2 kB / 0.5208 GB, free: 10.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.696e-05/0.4228, allocations: 23.91 kB / 0.5209 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002949/0.4231, allocations: 24 kB / 0.5209 GB, free: 10.62 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.584e-05/0.4232, allocations: 39.92 kB / 0.5209 GB, free: 10.58 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (83): * Single equations (assignments): 83 * 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.0002551/0.4234, allocations: 197.6 kB / 0.5211 GB, free: 10.38 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.343e-05/0.4235, allocations: 59.56 kB / 0.5212 GB, free: 10.32 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009273/0.4244, allocations: 0.4898 MB / 0.5216 GB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.536e-06/0.4245, allocations: 4 kB / 0.5217 GB, free: 9.816 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.4245, allocations: 7.938 kB / 0.5217 GB, free: 9.809 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.4245, allocations: 4 kB / 0.5217 GB, free: 9.805 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008478/0.4253, allocations: 0.6199 MB / 0.5223 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.685e-06/0.4254, allocations: 0 / 0.5223 GB, free: 9.117 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005728/0.4259, allocations: 144 kB / 0.5224 GB, free: 8.977 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.572e-06/0.4259, allocations: 3.938 kB / 0.5224 GB, free: 8.973 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.36e-05/0.426, allocations: 19.98 kB / 0.5224 GB, free: 8.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.167e-05/0.426, allocations: 11.94 kB / 0.5224 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.674e-06/0.426, allocations: 0 / 0.5224 GB, free: 8.941 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001092/0.4271, allocations: 0.7229 MB / 0.5231 GB, free: 8.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002165/0.4273, allocations: 172.7 kB / 0.5233 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.134e-05/0.4274, allocations: 11.94 kB / 0.5233 GB, free: 7.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.4276, allocations: 12 kB / 0.5233 GB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.864e-05/0.4277, allocations: 36.33 kB / 0.5234 GB, free: 7.941 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.632e-05/0.4278, allocations: 23.98 kB / 0.5234 GB, free: 7.918 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003032/0.4281, allocations: 279.2 kB / 0.5237 GB, free: 7.645 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.4281, allocations: 0 / 0.5237 GB, free: 7.645 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009115/0.429, allocations: 331.1 kB / 0.524 GB, free: 7.32 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (solution.temperature,A.logn,B.logn) * 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 (53): * Single equations (assignments): 53 * 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.001964/0.431, allocations: 1.591 MB / 0.5255 GB, free: 5.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007754/0.4317, allocations: 438.5 kB / 0.5259 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.4318, allocations: 0 / 0.5259 GB, free: 5.27 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003215/0.4321, allocations: 210.4 kB / 0.5261 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007489/0.4328, allocations: 133 kB / 0.5263 GB, free: 4.934 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006675/0.4395, allocations: 4.818 MB / 0.531 GB, free: 15.8 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005779/0.4401, allocations: 0.8938 MB / 0.5318 GB, free: 14.88 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004217/0.4406, allocations: 116.6 kB / 0.532 GB, free: 14.77 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003679/0.441, allocations: 255.3 kB / 0.5322 GB, free: 14.52 MB / 414.1 MB Notification: Performance of SimCode: time 6.82e-07/0.441, allocations: 0 / 0.5322 GB, free: 14.52 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04063/0.4816, allocations: 15.24 MB / 0.5471 GB, free: 15.36 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.076/9.558, allocations: 11.78 kB / 0.5471 GB, free: 15.34 MB / 430.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.SimpleReaction_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_Chemical_Examples_SimpleReaction.fmu > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)