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.006007/0.006007, allocations: 103.9 kB / 15.73 MB, free: 6.039 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.001325/0.001325, allocations: 193.6 kB / 16.67 MB, free: 5.973 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.462/1.462, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2311/0.2311, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001551/0.001551, allocations: 59.91 kB / 424.7 MB, free: 13.63 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3141, allocations: 53.6 MB / 478.3 MB, free: 25.57 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.ExothermicReaction): time 0.009563/0.3237, allocations: 8.554 MB / 486.9 MB, free: 19.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02333/0.3471, allocations: 23.24 MB / 0.4981 GB, free: 0.5352 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002455/0.3496, allocations: 26.94 kB / 0.4982 GB, free: 0.5234 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002273/0.3519, allocations: 0.5234 MB / 0.4987 GB, free: 104 kB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008315/0.3603, allocations: 2.004 MB / 0.5006 GB, free: 14.53 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01141/0.3717, allocations: 3.001 MB / 0.5036 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00497/0.3767, allocations: 2.499 MB / 0.506 GB, free: 10.68 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002634/0.3794, allocations: 1.431 MB / 0.5074 GB, free: 9.199 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002348/0.3818, allocations: 1.223 MB / 0.5086 GB, free: 7.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002833/0.3846, allocations: 1.359 MB / 0.5099 GB, free: 6.609 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007772/0.3854, allocations: 216 kB / 0.5101 GB, free: 6.398 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01212/0.3976, allocations: 2.59 MB / 0.5127 GB, free: 3.801 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007978/0.3984, allocations: 0.5102 MB / 0.5132 GB, free: 3.289 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002135/0.4005, allocations: 1.089 MB / 0.5142 GB, free: 2.195 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01287/0.4134, allocations: 5.033 MB / 0.5191 GB, free: 13.14 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.143e-06/0.4135, allocations: 0 / 0.5191 GB, free: 13.14 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.467e-06/0.4135, allocations: 0 / 0.5191 GB, free: 13.14 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.352e-05/0.4136, allocations: 7.938 kB / 0.5192 GB, free: 13.14 MB / 398.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.007166/0.4208, allocations: 2.654 MB / 0.5217 GB, free: 10.43 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.528e-05/0.4208, allocations: 12.03 kB / 0.5218 GB, free: 10.41 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005536/0.4214, allocations: 249.7 kB / 0.522 GB, free: 10.16 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002157/0.4236, allocations: 425.8 kB / 0.5224 GB, free: 9.742 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002255/0.4258, allocations: 0.9476 MB / 0.5233 GB, free: 8.75 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001941/0.426, allocations: 195.5 kB / 0.5235 GB, free: 8.547 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004016/0.4264, allocations: 188.3 kB / 0.5237 GB, free: 8.363 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003772/0.4302, allocations: 2.086 MB / 0.5257 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.749e-05/0.4303, allocations: 0 / 0.5257 GB, free: 6.246 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001914/0.4305, allocations: 72 kB / 0.5258 GB, free: 6.176 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.206e-05/0.4305, allocations: 44 kB / 0.5258 GB, free: 6.133 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004139/0.4347, allocations: 2.584 MB / 0.5284 GB, free: 3.547 MB / 398.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.01115/0.4458, allocations: 6.334 MB / 0.5345 GB, free: 12.99 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005452/0.4513, allocations: 2.535 MB / 0.537 GB, free: 10.39 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001447/0.4528, allocations: 0.8473 MB / 0.5378 GB, free: 9.535 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01247/0.4652, allocations: 8.065 MB / 0.5457 GB, free: 0.543 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.775e-05/0.4653, allocations: 51.67 kB / 0.5458 GB, free: 496 kB / 414.1 MB Notification: Performance of pre-optimization done (n=122): time 3.146e-06/0.4653, allocations: 4 kB / 0.5458 GB, free: 492 kB / 414.1 MB Notification: Performance of matching and sorting (n=150): time 0.02843/0.4938, allocations: 6.185 MB / 0.5518 GB, free: 10.12 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.836e-05/0.4939, allocations: 94.42 kB / 0.5519 GB, free: 10.01 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001247/0.4951, allocations: 0.9373 MB / 0.5528 GB, free: 9.059 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.4952, allocations: 53.7 kB / 0.5529 GB, free: 9 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007173/0.496, allocations: 0.8327 MB / 0.5537 GB, free: 8.152 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000507/0.4965, allocations: 0.5161 MB / 0.5542 GB, free: 7.629 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005608/0.4971, allocations: 371.2 kB / 0.5545 GB, free: 7.258 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001034/0.4972, allocations: 309.1 kB / 0.5548 GB, free: 6.953 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001042/0.4982, allocations: 0.5232 MB / 0.5554 GB, free: 6.426 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001544/0.4998, allocations: 1.243 MB / 0.5566 GB, free: 4.844 MB / 430.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.002835/0.5026, allocations: 2.048 MB / 0.5586 GB, free: 2.449 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-05/0.5027, allocations: 8 kB / 0.5586 GB, free: 2.441 MB / 430.1 MB Notification: Performance of matching and sorting (n=258) (initialization): time 0.008545/0.5112, allocations: 2.537 MB / 0.5611 GB, free: 15.88 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.293e-05/0.5113, allocations: 22.02 kB / 0.5611 GB, free: 15.86 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001365/0.5115, allocations: 27.98 kB / 0.5611 GB, free: 15.84 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.005779/0.5173, allocations: 0.698 MB / 0.5618 GB, free: 15.12 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002128/0.5194, allocations: 0.5227 MB / 0.5623 GB, free: 14.6 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01348/0.5329, allocations: 8.26 MB / 0.5704 GB, free: 5.789 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002133/0.5351, allocations: 72.03 kB / 0.5704 GB, free: 5.719 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006969/0.5358, allocations: 116 kB / 0.5705 GB, free: 5.605 MB / 446.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.001653/0.5375, allocations: 373.1 kB / 0.5709 GB, free: 5.23 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008964/0.5384, allocations: 138.3 kB / 0.571 GB, free: 5.094 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00972/0.5482, allocations: 2.483 MB / 0.5734 GB, free: 2.547 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.795e-05/0.5482, allocations: 16 kB / 0.5735 GB, free: 2.531 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.76e-05/0.5482, allocations: 7.938 kB / 0.5735 GB, free: 2.523 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.914e-05/0.5482, allocations: 7.969 kB / 0.5735 GB, free: 2.516 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00592/0.5542, allocations: 2.531 MB / 0.576 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.605e-05/0.5542, allocations: 4 kB / 0.576 GB, free: 15.89 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001488/0.5557, allocations: 307.6 kB / 0.5762 GB, free: 15.59 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006659/0.5624, allocations: 0.7533 MB / 0.577 GB, free: 14.82 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001556/0.5625, allocations: 43.98 kB / 0.577 GB, free: 14.77 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01297/0.5755, allocations: 9.492 MB / 0.5863 GB, free: 4.578 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.811e-06/0.5756, allocations: 7.938 kB / 0.5863 GB, free: 4.57 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009427/0.585, allocations: 2.811 MB / 0.589 GB, free: 1.695 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000467/0.5855, allocations: 203.3 kB / 0.5892 GB, free: 1.477 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002736/0.5858, allocations: 28 kB / 0.5893 GB, free: 1.449 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001059/0.5868, allocations: 35.98 kB / 0.5893 GB, free: 1.414 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003428/0.5872, allocations: 136.9 kB / 0.5894 GB, free: 1.281 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001044/0.5873, allocations: 47.98 kB / 0.5895 GB, free: 1.234 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0009019/0.5882, allocations: 0.6342 MB / 0.5901 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.252e-06/0.5883, allocations: 0 / 0.5901 GB, free: 0.5938 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003369/0.5916, allocations: 1.046 MB / 0.5911 GB, free: 15.55 MB / 478.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.01239/0.604, allocations: 4.355 MB / 0.5954 GB, free: 11.12 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.004141/0.6082, allocations: 2.088 MB / 0.5974 GB, free: 8.98 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.6082, allocations: 0 / 0.5974 GB, free: 8.98 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002405/0.6106, allocations: 1.375 MB / 0.5988 GB, free: 7.539 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001877/0.6125, allocations: 322.2 kB / 0.5991 GB, free: 7.23 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2574/0.8699, allocations: 13.54 MB / 0.6123 GB, free: 116.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008822/0.8708, allocations: 1.262 MB / 0.6135 GB, free: 116 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00136/0.8722, allocations: 332.8 kB / 0.6138 GB, free: 116 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001088/0.8733, allocations: 0.7116 MB / 0.6145 GB, free: 115.6 MB / 478.1 MB Notification: Performance of SimCode: time 9.62e-07/0.8733, allocations: 0.5625 kB / 0.6145 GB, free: 115.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1237/0.997, allocations: 50.74 MB / 0.6641 GB, free: 81.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.7/17.7, allocations: 4.062 kB / 0.6641 GB, free: 81.15 MB / 478.1 MB (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)