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.005701/0.005701, allocations: 103.8 kB / 15.74 MB, free: 6.445 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.001202/0.001202, allocations: 196.4 kB / 16.67 MB, free: 6.352 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.258/0.258, allocations: 15.33 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 67.89 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2829/0.2843, allocations: 53.6 MB / 478.3 MB, free: 25.66 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.0357/0.32, allocations: 23.97 MB / 0.4905 GB, free: 10.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007443/0.3275, allocations: 7.955 MB / 0.4983 GB, free: 2.781 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007332/0.3283, allocations: 7.938 kB / 0.4983 GB, free: 2.773 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006547/0.3289, allocations: 194.5 kB / 0.4985 GB, free: 2.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001636/0.3306, allocations: 0.6903 MB / 0.4991 GB, free: 1.887 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002271/0.3329, allocations: 1.033 MB / 0.5002 GB, free: 0.8477 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009006/0.3338, allocations: 0.9316 MB / 0.5011 GB, free: 15.91 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005859/0.3344, allocations: 0.5134 MB / 0.5016 GB, free: 15.39 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004232/0.3348, allocations: 458.8 kB / 0.502 GB, free: 14.95 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006099/0.3354, allocations: 0.4904 MB / 0.5025 GB, free: 14.45 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001038/0.3356, allocations: 80 kB / 0.5026 GB, free: 14.38 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002435/0.338, allocations: 0.8581 MB / 0.5034 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002045/0.3382, allocations: 191.5 kB / 0.5036 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003964/0.3386, allocations: 426 kB / 0.504 GB, free: 12.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00268/0.3413, allocations: 1.766 MB / 0.5057 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3413, allocations: 0 / 0.5057 GB, free: 11.14 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3413, allocations: 4 kB / 0.5057 GB, free: 11.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.3414, allocations: 0 / 0.5057 GB, free: 11.13 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.001868/0.3432, allocations: 1.191 MB / 0.5069 GB, free: 9.887 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.3433, allocations: 12.03 kB / 0.5069 GB, free: 9.875 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001186/0.3434, allocations: 110.7 kB / 0.507 GB, free: 9.758 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006082/0.344, allocations: 164.1 kB / 0.5072 GB, free: 9.598 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000649/0.3447, allocations: 479.6 kB / 0.5076 GB, free: 9.09 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.63e-05/0.3448, allocations: 80.27 kB / 0.5077 GB, free: 9.008 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001082/0.3449, allocations: 72.33 kB / 0.5078 GB, free: 8.938 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001144/0.346, allocations: 0.7814 MB / 0.5085 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.678e-05/0.3461, allocations: 0 / 0.5085 GB, free: 8.137 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.182e-05/0.3461, allocations: 28 kB / 0.5085 GB, free: 8.109 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.519e-05/0.3462, allocations: 16 kB / 0.5086 GB, free: 8.094 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001307/0.3475, allocations: 0.8834 MB / 0.5094 GB, free: 7.211 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.003817/0.3513, allocations: 2.575 MB / 0.5119 GB, free: 4.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001514/0.3528, allocations: 1.017 MB / 0.5129 GB, free: 3.422 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004404/0.3533, allocations: 302.4 kB / 0.5132 GB, free: 3.121 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003561/0.3569, allocations: 2.836 MB / 0.516 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.354e-05/0.3569, allocations: 30.56 kB / 0.516 GB, free: 15.91 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 1.984e-06/0.3569, allocations: 0 / 0.516 GB, free: 15.91 MB / 398.1 MB Notification: Performance of matching and sorting (n=46): time 0.002313/0.3592, allocations: 1.244 MB / 0.5172 GB, free: 14.62 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.554e-05/0.3593, allocations: 59.41 kB / 0.5173 GB, free: 14.55 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000423/0.3597, allocations: 417.8 kB / 0.5177 GB, free: 14.13 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.128e-05/0.3598, allocations: 29.7 kB / 0.5177 GB, free: 14.1 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002443/0.36, allocations: 380 kB / 0.5181 GB, free: 13.72 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001128/0.3601, allocations: 174.5 kB / 0.5182 GB, free: 13.55 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001604/0.3603, allocations: 134.6 kB / 0.5184 GB, free: 13.41 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3604, allocations: 354.8 kB / 0.5187 GB, free: 13.06 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.3607, allocations: 149.9 kB / 0.5189 GB, free: 12.91 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000397/0.3611, allocations: 393.5 kB / 0.5192 GB, free: 12.43 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007037/0.3618, allocations: 0.567 MB / 0.5198 GB, free: 11.75 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.3618, allocations: 0 / 0.5198 GB, free: 11.75 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0009244/0.3628, allocations: 0.6172 MB / 0.5204 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.3628, allocations: 19.88 kB / 0.5204 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.3628, allocations: 8 kB / 0.5204 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.407e-05/0.3628, allocations: 15.94 kB / 0.5204 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007049/0.3635, allocations: 199.7 kB / 0.5206 GB, free: 10.89 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.98e-05/0.3636, allocations: 19.92 kB / 0.5206 GB, free: 10.87 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003224/0.3639, allocations: 20 kB / 0.5207 GB, free: 10.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.464e-05/0.364, allocations: 40 kB / 0.5207 GB, free: 10.81 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.000246/0.3642, allocations: 205.6 kB / 0.5209 GB, free: 10.6 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.305e-05/0.3643, allocations: 59.56 kB / 0.521 GB, free: 10.54 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008994/0.3652, allocations: 493.5 kB / 0.5214 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.3652, allocations: 4 kB / 0.5214 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.3652, allocations: 0 / 0.5214 GB, free: 10.05 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.3653, allocations: 3.984 kB / 0.5214 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007595/0.366, allocations: 0.6277 MB / 0.522 GB, free: 9.348 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.366, allocations: 7.875 kB / 0.5221 GB, free: 9.34 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005683/0.3666, allocations: 143.9 kB / 0.5222 GB, free: 9.199 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.076e-06/0.3666, allocations: 7.938 kB / 0.5222 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.387e-05/0.3667, allocations: 20.11 kB / 0.5222 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.13e-06/0.3667, allocations: 4 kB / 0.5222 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3667, allocations: 0 / 0.5222 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009709/0.3677, allocations: 0.7306 MB / 0.5229 GB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002067/0.3679, allocations: 164.7 kB / 0.5231 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.439e-05/0.368, allocations: 11.94 kB / 0.5231 GB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002072/0.3682, allocations: 12 kB / 0.5231 GB, free: 8.207 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.043e-05/0.3683, allocations: 36.39 kB / 0.5231 GB, free: 8.168 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.478e-05/0.3683, allocations: 20 kB / 0.5232 GB, free: 8.148 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002738/0.3686, allocations: 279.1 kB / 0.5234 GB, free: 7.875 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3686, allocations: 0 / 0.5234 GB, free: 7.875 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009552/0.3696, allocations: 335.1 kB / 0.5238 GB, free: 7.547 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.001963/0.3716, allocations: 1.602 MB / 0.5253 GB, free: 5.906 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007349/0.3723, allocations: 441.6 kB / 0.5257 GB, free: 5.48 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3723, allocations: 0 / 0.5257 GB, free: 5.48 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002873/0.3726, allocations: 202.4 kB / 0.5259 GB, free: 5.277 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007749/0.3734, allocations: 130.2 kB / 0.5261 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005801/0.3792, allocations: 4.798 MB / 0.5307 GB, free: 44 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004989/0.3798, allocations: 0.8938 MB / 0.5316 GB, free: 15.12 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004849/0.3802, allocations: 124.6 kB / 0.5317 GB, free: 15 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003394/0.3806, allocations: 247.3 kB / 0.532 GB, free: 14.75 MB / 414.1 MB Notification: Performance of SimCode: time 9.92e-07/0.3806, allocations: 4 kB / 0.532 GB, free: 14.75 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03888/0.4195, allocations: 15.25 MB / 0.5469 GB, free: 15.59 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.94/9.359, allocations: 16.33 kB / 0.5469 GB, free: 15.57 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)