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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.08233/0.08233, allocations: 15.26 MB / 22.74 MB, free: 0.9648 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009139/0.0009141, allocations: 184.9 kB / 27.52 MB, free: 6.117 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.265/1.265, allocations: 221.5 MB / 253.7 MB, free: 10.33 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008433/0.0008433, allocations: 82.39 kB / 308.7 MB, free: 10.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.442e-05/1.444e-05, allocations: 0 / 369.7 MB, free: 53.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07483/0.07486, allocations: 54.64 MB / 424.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3024/0.3773, allocations: 99.13 MB / 0.5112 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001355/0.3775, allocations: 62.06 kB / 0.5112 GB, free: 12.36 MB / 362.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System A.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$A. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System B.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$B. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.05111/0.4286, allocations: 24.37 MB / 0.535 GB, free: 24.14 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.4287, allocations: 0 / 0.535 GB, free: 24.14 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.07e-05/0.4287, allocations: 15.62 kB / 0.535 GB, free: 24.14 MB / 378.7 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.001365/0.4301, allocations: 1.02 MB / 0.536 GB, free: 23.39 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.294e-05/0.4301, allocations: 15.61 kB / 0.536 GB, free: 23.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004996/0.4306, allocations: 185 kB / 0.5362 GB, free: 23.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007541/0.4314, allocations: 0.5857 MB / 0.5368 GB, free: 22.95 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.334e-05/0.4315, allocations: 66.09 kB / 0.5369 GB, free: 22.91 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.736e-05/0.4316, allocations: 42.25 kB / 0.5369 GB, free: 22.91 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001357/0.4329, allocations: 1.487 MB / 0.5384 GB, free: 22.73 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009693/0.4339, allocations: 0.9543 MB / 0.5393 GB, free: 22.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.332e-05/0.4339, allocations: 0 / 0.5393 GB, free: 22.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.342e-05/0.434, allocations: 0 / 0.5393 GB, free: 22.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.247e-06/0.434, allocations: 19.31 kB / 0.5393 GB, free: 22.51 MB / 378.7 MB Warning: The model contains alias variables with conflicting start and/or 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.003818/0.4378, allocations: 3.626 MB / 0.5428 GB, free: 20.92 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001611/0.4394, allocations: 1.613 MB / 0.5444 GB, free: 20.53 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004324/0.4399, allocations: 0.5662 MB / 0.545 GB, free: 20.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001867/0.4401, allocations: 164.2 kB / 0.5451 GB, free: 20.45 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.305e-05/0.4401, allocations: 53.83 kB / 0.5452 GB, free: 20.4 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 2.415e-06/0.4401, allocations: 0 / 0.5452 GB, free: 20.4 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.005489/0.4456, allocations: 3.345 MB / 0.5484 GB, free: 19.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.4457, allocations: 59.94 kB / 0.5485 GB, free: 19.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.446, allocations: 390 kB / 0.5489 GB, free: 19.13 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.312e-05/0.446, allocations: 25.7 kB / 0.5489 GB, free: 19.1 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001309/0.4462, allocations: 328.3 kB / 0.5492 GB, free: 18.89 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001102/0.4463, allocations: 267.5 kB / 0.5495 GB, free: 18.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.765e-05/0.4463, allocations: 0 / 0.5495 GB, free: 18.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.4465, allocations: 368.1 kB / 0.5498 GB, free: 18.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004119/0.4469, allocations: 0.4964 MB / 0.5503 GB, free: 18.32 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004339/0.4473, allocations: 0.588 MB / 0.5509 GB, free: 18.19 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001132/0.4485, allocations: 0.637 MB / 0.5515 GB, free: 18.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.4485, allocations: 3.953 kB / 0.5515 GB, free: 18.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.001946/0.4504, allocations: 1.391 MB / 0.5529 GB, free: 17.7 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.701e-05/0.4505, allocations: 6.375 kB / 0.5529 GB, free: 17.7 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.522e-06/0.4505, allocations: 0 / 0.5529 GB, free: 17.7 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001972/0.4507, allocations: 82.83 kB / 0.5529 GB, free: 17.68 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008422/0.4515, allocations: 198.7 kB / 0.5531 GB, free: 17.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004579/0.452, allocations: 0.702 MB / 0.5538 GB, free: 17.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003809/0.4524, allocations: 19.67 kB / 0.5538 GB, free: 17.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.652e-05/0.4524, allocations: 32.44 kB / 0.5539 GB, free: 17.07 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: A.solution.I:VARIABLE(flow=false min = 0.0 max = 0.0 unit = "1" ) "Mole fraction based ionic strength of the solution" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (89): * Single equations (assignments): 88 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0001751/0.4526, allocations: 117 kB / 0.554 GB, free: 16.95 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001851/0.4545, allocations: 1.329 MB / 0.5553 GB, free: 16.54 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.677e-05/0.4546, allocations: 58.5 kB / 0.5553 GB, free: 16.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002068/0.4566, allocations: 1.456 MB / 0.5568 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.271e-06/0.4567, allocations: 11.56 kB / 0.5568 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.4567, allocations: 0 / 0.5568 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.666e-06/0.4567, allocations: 3.984 kB / 0.5568 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.4599, allocations: 2.662 MB / 0.5594 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.4599, allocations: 0 / 0.5594 GB, free: 14.01 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000831/0.4608, allocations: 193 kB / 0.5596 GB, free: 13.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001587/0.4609, allocations: 86.52 kB / 0.5596 GB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.294e-05/0.461, allocations: 15.61 kB / 0.5597 GB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000392/0.4614, allocations: 0.6974 MB / 0.5603 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.4614, allocations: 3.969 kB / 0.5603 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002541/0.4639, allocations: 2.283 MB / 0.5626 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.4642, allocations: 198.9 kB / 0.5628 GB, free: 11.69 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.225e-05/0.4643, allocations: 7.547 kB / 0.5628 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003192/0.4646, allocations: 15.58 kB / 0.5628 GB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.883e-05/0.4647, allocations: 71.53 kB / 0.5628 GB, free: 11.64 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.152e-05/0.4648, allocations: 31.23 kB / 0.5629 GB, free: 11.63 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002784/0.4651, allocations: 307.7 kB / 0.5632 GB, free: 11.44 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4651, allocations: 0 / 0.5632 GB, free: 11.44 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008367/0.4659, allocations: 359.2 kB / 0.5635 GB, free: 11.36 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 3 (solution.temperature,A.logn,B.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.004043/0.47, allocations: 3.76 MB / 0.5672 GB, free: 7.578 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.4713, allocations: 1.137 MB / 0.5683 GB, free: 6.441 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.4713, allocations: 0.5 kB / 0.5683 GB, free: 6.441 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006481/0.472, allocations: 0.604 MB / 0.5689 GB, free: 5.836 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008589/0.4728, allocations: 187.9 kB / 0.5691 GB, free: 5.66 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002288/0.4751, allocations: 1.463 MB / 0.5705 GB, free: 4.137 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000517/0.4757, allocations: 0.968 MB / 0.5714 GB, free: 3.137 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004548/0.4761, allocations: 125.2 kB / 0.5716 GB, free: 3.012 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003873/0.4765, allocations: 291.3 kB / 0.5718 GB, free: 2.727 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4765, allocations: 0 / 0.5718 GB, free: 2.727 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03963/0.5162, allocations: 19.67 MB / 0.591 GB, free: 15.2 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001694/0.5164, allocations: 115.8 kB / 0.5912 GB, free: 15 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.459/2.975, allocations: 11.86 kB / 0.5912 GB, free: 14.99 MB / 410.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction.fmu > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)