Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction2.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.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",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.005771/0.005771, allocations: 100.1 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.001296/0.001296, allocations: 192.8 kB / 16.67 MB, free: 5.922 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.416/1.416, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08381/0.08381, allocations: 15.31 MB / 305.8 MB, free: 15.37 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001814/0.001814, allocations: 64.3 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.09522, allocations: 53.61 MB / 478.3 MB, free: 6.281 MB / 350.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.SimpleReaction2): time 0.0364/0.1317, allocations: 25.02 MB / 0.4915 GB, free: 13.33 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01419/0.1459, allocations: 11.62 MB / 0.5029 GB, free: 1.668 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005763/0.1465, allocations: 11.94 kB / 0.5029 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007118/0.1472, allocations: 266.1 kB / 0.5031 GB, free: 1.395 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002466/0.1497, allocations: 0.9773 MB / 0.5041 GB, free: 420 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.1981/0.3478, allocations: 1.489 MB / 0.5055 GB, free: 18.64 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001583/0.3494, allocations: 1.253 MB / 0.5068 GB, free: 18.64 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000781/0.3502, allocations: 0.7028 MB / 0.5074 GB, free: 18.58 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.3508, allocations: 0.6063 MB / 0.508 GB, free: 18.58 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007346/0.3515, allocations: 0.6711 MB / 0.5087 GB, free: 18.49 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001392/0.3517, allocations: 106.1 kB / 0.5088 GB, free: 18.49 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003205/0.3549, allocations: 1.282 MB / 0.51 GB, free: 18.49 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002229/0.3551, allocations: 262.9 kB / 0.5103 GB, free: 18.45 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004986/0.3556, allocations: 0.5424 MB / 0.5108 GB, free: 18.31 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004085/0.3597, allocations: 2.52 MB / 0.5133 GB, free: 18.05 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3597, allocations: 0 / 0.5133 GB, free: 18.05 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3597, allocations: 7.719 kB / 0.5133 GB, free: 18.05 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.03e-05/0.3598, allocations: 0 / 0.5133 GB, free: 18.05 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002539/0.3623, allocations: 1.523 MB / 0.5148 GB, free: 17.23 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.725e-05/0.3624, allocations: 9.375 kB / 0.5148 GB, free: 17.23 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001811/0.3626, allocations: 136.5 kB / 0.5149 GB, free: 17.19 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009792/0.3635, allocations: 218.6 kB / 0.5151 GB, free: 17.13 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008297/0.3644, allocations: 0.577 MB / 0.5157 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.64e-05/0.3645, allocations: 93.69 kB / 0.5158 GB, free: 16.82 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001636/0.3647, allocations: 95.8 kB / 0.5159 GB, free: 16.81 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001613/0.3663, allocations: 1.058 MB / 0.5169 GB, free: 16.39 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.001e-05/0.3663, allocations: 1.375 kB / 0.5169 GB, free: 16.39 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-05/0.3664, allocations: 34.88 kB / 0.5169 GB, free: 16.36 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.779e-05/0.3664, allocations: 23.88 kB / 0.517 GB, free: 16.36 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001881/0.3683, allocations: 1.275 MB / 0.5182 GB, free: 16 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.004948/0.3733, allocations: 3.473 MB / 0.5216 GB, free: 13.92 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002078/0.3754, allocations: 1.523 MB / 0.5231 GB, free: 13.21 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005754/0.3759, allocations: 441.6 kB / 0.5235 GB, free: 13.03 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004412/0.3804, allocations: 4.042 MB / 0.5274 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.556e-05/0.3804, allocations: 41.5 kB / 0.5275 GB, free: 9.805 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.304e-06/0.3804, allocations: 2.688 kB / 0.5275 GB, free: 9.805 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.002771/0.3832, allocations: 1.674 MB / 0.5291 GB, free: 8.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.411e-05/0.3832, allocations: 56.28 kB / 0.5292 GB, free: 8.867 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000475/0.3837, allocations: 0.5123 MB / 0.5297 GB, free: 8.621 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.573e-05/0.3837, allocations: 39.14 kB / 0.5297 GB, free: 8.582 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002112/0.384, allocations: 474.5 kB / 0.5302 GB, free: 8.207 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.3841, allocations: 233.4 kB / 0.5304 GB, free: 8.027 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002019/0.3843, allocations: 173.9 kB / 0.5306 GB, free: 7.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 8.508e-05/0.3844, allocations: 374.3 kB / 0.5309 GB, free: 7.602 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003422/0.3847, allocations: 212.9 kB / 0.5311 GB, free: 7.535 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004511/0.3852, allocations: 0.5368 MB / 0.5316 GB, free: 7.043 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008375/0.386, allocations: 0.8131 MB / 0.5324 GB, free: 6.449 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.3861, allocations: 2.75 kB / 0.5324 GB, free: 6.449 MB / 382.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001171/0.3872, allocations: 0.855 MB / 0.5333 GB, free: 6.16 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.209e-05/0.3873, allocations: 9.969 kB / 0.5333 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.3873, allocations: 13.16 kB / 0.5333 GB, free: 6.16 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.3873, allocations: 17.75 kB / 0.5333 GB, free: 6.156 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008918/0.3882, allocations: 269.4 kB / 0.5336 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.076e-05/0.3882, allocations: 26.77 kB / 0.5336 GB, free: 6.148 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004418/0.3887, allocations: 31.62 kB / 0.5336 GB, free: 6.133 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.445e-05/0.3888, allocations: 53.23 kB / 0.5337 GB, free: 6.125 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.0002475/0.389, allocations: 232.5 kB / 0.5339 GB, free: 5.949 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.029e-05/0.3891, allocations: 64.8 kB / 0.534 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001071/0.3902, allocations: 0.6931 MB / 0.5346 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.631e-06/0.3902, allocations: 9.625 kB / 0.5346 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3902, allocations: 0 / 0.5346 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.725e-06/0.3902, allocations: 3.328 kB / 0.5346 GB, free: 5.633 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008506/0.3911, allocations: 0.7738 MB / 0.5354 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.058e-06/0.3911, allocations: 2.969 kB / 0.5354 GB, free: 5.117 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006778/0.3918, allocations: 172 kB / 0.5356 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.502e-06/0.3918, allocations: 5.734 kB / 0.5356 GB, free: 5.09 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.748e-05/0.3918, allocations: 25.31 kB / 0.5356 GB, free: 5.074 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.821e-06/0.3919, allocations: 10.11 kB / 0.5356 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3919, allocations: 2.656 kB / 0.5356 GB, free: 5.07 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.393, allocations: 0.9512 MB / 0.5365 GB, free: 4.52 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001963/0.3932, allocations: 196.3 kB / 0.5367 GB, free: 4.344 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.878e-05/0.3932, allocations: 14.94 kB / 0.5367 GB, free: 4.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002687/0.3935, allocations: 12.16 kB / 0.5368 GB, free: 4.324 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001029/0.3936, allocations: 53.69 kB / 0.5368 GB, free: 4.301 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.969e-05/0.3937, allocations: 32.67 kB / 0.5368 GB, free: 4.293 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002787/0.394, allocations: 339.3 kB / 0.5372 GB, free: 4.094 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.394, allocations: 0 / 0.5372 GB, free: 4.094 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001347/0.3953, allocations: 488.4 kB / 0.5376 GB, free: 3.957 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (71): * Single equations (assignments): 71 * 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.002046/0.3974, allocations: 1.989 MB / 0.5396 GB, free: 2.059 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000773/0.3982, allocations: 0.605 MB / 0.5402 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.3982, allocations: 0 / 0.5402 GB, free: 1.465 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003058/0.3985, allocations: 287 kB / 0.5404 GB, free: 1.184 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007695/0.3993, allocations: 160.4 kB / 0.5406 GB, free: 1.051 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00796/0.4072, allocations: 6.125 MB / 0.5466 GB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006732/0.4079, allocations: 0.9566 MB / 0.5475 GB, free: 9.633 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.00056/0.4085, allocations: 175 kB / 0.5477 GB, free: 9.512 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004887/0.409, allocations: 343.3 kB / 0.548 GB, free: 9.176 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.409, allocations: 0 / 0.548 GB, free: 9.176 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05327/0.4623, allocations: 20.68 MB / 0.5682 GB, free: 5.402 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.673/10.14, allocations: 7.125 kB / 0.5682 GB, free: 5.398 MB / 414.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.SimpleReaction2_res.csv --start-time 0 --stop-time 0.0001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-08 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)