Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.ExothermicReaction.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.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.ExothermicReaction,fileNamePrefix="Chemical_Chemical_Examples_ExothermicReaction",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.006187/0.006187, allocations: 99.45 kB / 15.73 MB, free: 6.059 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.001443/0.001443, allocations: 197 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09043/0.09043, allocations: 15.3 MB / 305.8 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 67.83 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09077/0.09198, allocations: 53.61 MB / 478.3 MB, free: 6.277 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.008623/0.1006, allocations: 8.553 MB / 486.8 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02559/0.1263, allocations: 23.24 MB / 0.4981 GB, free: 6.355 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001367/0.1277, allocations: 19.88 kB / 0.4982 GB, free: 6.336 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001573/0.1293, allocations: 0.5196 MB / 0.4987 GB, free: 5.812 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005503/0.1348, allocations: 2.021 MB / 0.5006 GB, free: 3.777 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007392/0.1422, allocations: 3.029 MB / 0.5036 GB, free: 0.7305 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.2357/0.378, allocations: 2.495 MB / 0.506 GB, free: 4.961 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004143/0.3822, allocations: 1.434 MB / 0.5074 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00298/0.3852, allocations: 1.222 MB / 0.5086 GB, free: 4.789 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00383/0.3891, allocations: 1.358 MB / 0.5099 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001235/0.3903, allocations: 215.7 kB / 0.5102 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009009/0.3994, allocations: 2.599 MB / 0.5127 GB, free: 4.637 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001089/0.4005, allocations: 0.5143 MB / 0.5132 GB, free: 4.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002227/0.4027, allocations: 1.084 MB / 0.5143 GB, free: 4.293 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01297/0.4157, allocations: 5.049 MB / 0.5192 GB, free: 3.785 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.643e-06/0.4158, allocations: 1.375 kB / 0.5192 GB, free: 3.785 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.495e-06/0.4158, allocations: 0 / 0.5192 GB, free: 3.785 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000115/0.4159, allocations: 0 / 0.5192 GB, free: 3.785 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: 455 * Number of variables: 455 Notification: Performance of Generate backend data structure: time 0.007913/0.4238, allocations: 2.728 MB / 0.5218 GB, free: 2.48 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.397e-05/0.4239, allocations: 10.02 kB / 0.5219 GB, free: 2.48 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004198/0.4243, allocations: 254.1 kB / 0.5221 GB, free: 2.434 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002272/0.4266, allocations: 422.5 kB / 0.5225 GB, free: 2.32 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0024/0.429, allocations: 0.9676 MB / 0.5234 GB, free: 1.855 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002117/0.4292, allocations: 190.9 kB / 0.5236 GB, free: 1.734 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003958/0.4297, allocations: 190.9 kB / 0.5238 GB, free: 1.664 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003545/0.4332, allocations: 2.088 MB / 0.5259 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.889e-05/0.4333, allocations: 0 / 0.5259 GB, free: 0.8594 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001781/0.4335, allocations: 71.56 kB / 0.5259 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.79e-05/0.4335, allocations: 41.75 kB / 0.526 GB, free: 0.8047 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003768/0.4373, allocations: 2.584 MB / 0.5285 GB, free: 64 kB / 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.01082/0.4481, allocations: 6.351 MB / 0.5347 GB, free: 12.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005133/0.4533, allocations: 2.543 MB / 0.5372 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001259/0.4545, allocations: 0.8468 MB / 0.538 GB, free: 11.08 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01158/0.4661, allocations: 8.077 MB / 0.5459 GB, free: 2.531 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.4662, allocations: 47.16 kB / 0.5459 GB, free: 2.48 MB / 398.1 MB Notification: Performance of pre-optimization done (n=122): time 3.286e-06/0.4662, allocations: 0 / 0.5459 GB, free: 2.48 MB / 398.1 MB Notification: Performance of matching and sorting (n=150): time 0.02683/0.493, allocations: 6.228 MB / 0.552 GB, free: 12.12 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.102e-05/0.4931, allocations: 90.42 kB / 0.5521 GB, free: 12.02 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001308/0.4945, allocations: 0.9414 MB / 0.553 GB, free: 11.06 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0002038/0.4947, allocations: 53.7 kB / 0.5531 GB, free: 11 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005438/0.4952, allocations: 0.8539 MB / 0.5539 GB, free: 10.14 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005129/0.4957, allocations: 0.5434 MB / 0.5544 GB, free: 9.609 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000513/0.4963, allocations: 379.4 kB / 0.5548 GB, free: 9.23 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001104/0.4964, allocations: 301.1 kB / 0.5551 GB, free: 8.934 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001045/0.4974, allocations: 0.5311 MB / 0.5556 GB, free: 8.398 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001602/0.4991, allocations: 1.25 MB / 0.5568 GB, free: 6.824 MB / 414.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start (fixedTemperature.T = solution_at_constant_temperature.temperature_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002984/0.5021, allocations: 2.03 MB / 0.5588 GB, free: 4.543 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.397e-05/0.5021, allocations: 12 kB / 0.5588 GB, free: 4.531 MB / 414.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008502/0.5106, allocations: 2.544 MB / 0.5613 GB, free: 2.117 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.987e-05/0.5107, allocations: 16 kB / 0.5613 GB, free: 2.102 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.015e-05/0.5107, allocations: 24 kB / 0.5613 GB, free: 2.078 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005513/0.5162, allocations: 0.7039 MB / 0.562 GB, free: 1.371 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002346/0.5186, allocations: 0.5253 MB / 0.5625 GB, free: 0.875 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01315/0.5318, allocations: 8.259 MB / 0.5706 GB, free: 8.125 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002092/0.5339, allocations: 75.95 kB / 0.5707 GB, free: 8.051 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002994/0.5342, allocations: 112 kB / 0.5708 GB, free: 7.941 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: solution_at_constant_temperature.temperature = solution_at_constant_temperature.temperature_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 107 * 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 (241): * Single equations (assignments): 237 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(3,6,77.8%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,3), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009629/0.5352, allocations: 384 kB / 0.5711 GB, free: 7.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000417/0.5356, allocations: 147.1 kB / 0.5713 GB, free: 7.445 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009102/0.5447, allocations: 2.477 MB / 0.5737 GB, free: 4.922 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.021e-05/0.5448, allocations: 16 kB / 0.5737 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/0.5448, allocations: 0 / 0.5737 GB, free: 4.906 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.881e-05/0.5449, allocations: 11.91 kB / 0.5737 GB, free: 4.895 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006108/0.551, allocations: 2.532 MB / 0.5762 GB, free: 2.332 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.689e-06/0.551, allocations: 4 kB / 0.5762 GB, free: 2.328 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001474/0.5525, allocations: 315.2 kB / 0.5765 GB, free: 2.035 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006321/0.5588, allocations: 0.7491 MB / 0.5772 GB, free: 1.273 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001952/0.559, allocations: 43.92 kB / 0.5773 GB, free: 1.23 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01328/0.5723, allocations: 9.498 MB / 0.5866 GB, free: 7.082 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.865e-06/0.5724, allocations: 8.875 kB / 0.5866 GB, free: 7.074 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009774/0.5822, allocations: 2.822 MB / 0.5893 GB, free: 4.211 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006785/0.5829, allocations: 204.1 kB / 0.5895 GB, free: 3.992 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003031/0.5832, allocations: 36 kB / 0.5896 GB, free: 3.957 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008869/0.5841, allocations: 28 kB / 0.5896 GB, free: 3.93 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003343/0.5844, allocations: 126 kB / 0.5897 GB, free: 3.809 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001055/0.5845, allocations: 51.98 kB / 0.5897 GB, free: 3.758 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008924/0.5854, allocations: 0.6381 MB / 0.5904 GB, free: 3.113 MB / 446.1 MB Notification: Performance of sort global known variables: time 2.374e-06/0.5855, allocations: 0 / 0.5904 GB, free: 3.113 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.004293/0.5898, allocations: 1.069 MB / 0.5914 GB, free: 2.043 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (A1.logn,B1.logn,H2O.logn,A.logn,B.logn,H2O1.amountOfBonds,H2O1.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 (137): * Single equations (assignments): 132 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (2,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 3 systems {(1,3), (1,1), (2,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01342/0.6032, allocations: 4.374 MB / 0.5957 GB, free: 13.76 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.004539/0.6078, allocations: 2.086 MB / 0.5977 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/0.6078, allocations: 0 / 0.5977 GB, free: 11.7 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0024/0.6102, allocations: 1.369 MB / 0.5991 GB, free: 10.3 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002089/0.6124, allocations: 342.2 kB / 0.5994 GB, free: 9.973 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0325/0.6449, allocations: 13.62 MB / 0.6127 GB, free: 11.57 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00101/0.6459, allocations: 1.271 MB / 0.6139 GB, free: 10.26 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001279/0.6472, allocations: 327.8 kB / 0.6142 GB, free: 9.938 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001025/0.6483, allocations: 0.7179 MB / 0.6149 GB, free: 9.219 MB / 478.1 MB Notification: Performance of SimCode: time 9.12e-07/0.6483, allocations: 0 / 0.6149 GB, free: 9.219 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1142/0.7625, allocations: 50.73 MB / 0.6645 GB, free: 6.887 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.27/16.03, allocations: 4.062 kB / 0.6645 GB, free: 6.883 MB / 0.5137 GB (rm -f Chemical_Chemical.Examples.ExothermicReaction.pipe ; mkfifo Chemical_Chemical.Examples.ExothermicReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.ExothermicReaction.pipe >> ../files/Chemical_Chemical.Examples.ExothermicReaction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.ExothermicReaction_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_ExothermicReaction.fmu > Chemical_Chemical.Examples.ExothermicReaction.pipe 2>&1)