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/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.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/Chemical 1.4.0-master/package.mo): time 0.07478/0.07478, allocations: 15.26 MB / 22.73 MB, free: 0.9453 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.0009263/0.0009262, allocations: 189 kB / 27.52 MB, free: 6.105 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.259/1.259, allocations: 221.5 MB / 253.7 MB, free: 10.39 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.0009084/0.0009085, allocations: 90.39 kB / 308.7 MB, free: 10.46 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 1.641e-05/1.643e-05, allocations: 1.938 kB / 369.7 MB, free: 53.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08164/0.08166, allocations: 54.64 MB / 424.3 MB, free: 13.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3166/0.3983, allocations: 99.14 MB / 0.5112 GB, free: 12.36 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001527/0.3985, allocations: 64.03 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. [/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 C.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$C. 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.07991/0.4784, allocations: 33.87 MB / 0.5443 GB, free: 20.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.4784, allocations: 0 / 0.5443 GB, free: 20.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.92e-05/0.4785, allocations: 24.62 kB / 0.5443 GB, free: 20.87 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.001947/0.4804, allocations: 1.275 MB / 0.5456 GB, free: 19.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.502e-05/0.4805, allocations: 15.67 kB / 0.5456 GB, free: 19.98 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007306/0.4812, allocations: 252.9 kB / 0.5458 GB, free: 19.88 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009921/0.4822, allocations: 0.763 MB / 0.5466 GB, free: 19.44 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.094e-05/0.4823, allocations: 66.3 kB / 0.5466 GB, free: 19.41 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.941e-05/0.4824, allocations: 57.62 kB / 0.5467 GB, free: 19.4 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002022/0.4844, allocations: 2.082 MB / 0.5487 GB, free: 19.16 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001341/0.4858, allocations: 1.198 MB / 0.5499 GB, free: 18.9 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.4858, allocations: 4 kB / 0.5499 GB, free: 18.9 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.729e-05/0.4859, allocations: 0 / 0.5499 GB, free: 18.9 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.337e-05/0.4859, allocations: 19.41 kB / 0.5499 GB, free: 18.9 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.005253/0.4912, allocations: 4.643 MB / 0.5545 GB, free: 16.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00212/0.4933, allocations: 2.117 MB / 0.5565 GB, free: 16.36 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005963/0.4939, allocations: 0.7429 MB / 0.5573 GB, free: 16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000285/0.4942, allocations: 251.2 kB / 0.5575 GB, free: 15.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.984e-05/0.4943, allocations: 43.22 kB / 0.5575 GB, free: 15.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 3.316e-06/0.4943, allocations: 0 / 0.5575 GB, free: 15.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=118): time 0.008476/0.5027, allocations: 4.686 MB / 0.5621 GB, free: 13.14 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.403e-05/0.5028, allocations: 64.5 kB / 0.5622 GB, free: 13.08 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000563/0.5034, allocations: 0.5 MB / 0.5627 GB, free: 12.69 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.708e-05/0.5035, allocations: 25.7 kB / 0.5627 GB, free: 12.66 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002603/0.5037, allocations: 396.6 kB / 0.5631 GB, free: 12.26 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002688/0.504, allocations: 386.2 kB / 0.5634 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.037e-05/0.504, allocations: 0 / 0.5634 GB, free: 11.88 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.5042, allocations: 398.7 kB / 0.5638 GB, free: 11.48 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007397/0.505, allocations: 0.6469 MB / 0.5644 GB, free: 10.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007955/0.5058, allocations: 0.7791 MB / 0.5652 GB, free: 10.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001891/0.5077, allocations: 0.8988 MB / 0.5661 GB, free: 9.121 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.517e-06/0.5077, allocations: 0 / 0.5661 GB, free: 9.121 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.003061/0.5108, allocations: 1.878 MB / 0.5679 GB, free: 7.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.974e-05/0.5108, allocations: 8.031 kB / 0.5679 GB, free: 7.223 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.088e-06/0.5108, allocations: 4 kB / 0.5679 GB, free: 7.219 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002998/0.5111, allocations: 120.7 kB / 0.568 GB, free: 7.098 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001267/0.5124, allocations: 263.7 kB / 0.5683 GB, free: 6.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006646/0.5131, allocations: 0.7979 MB / 0.5691 GB, free: 6.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005771/0.5137, allocations: 23.86 kB / 0.5691 GB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.239e-05/0.5138, allocations: 47.97 kB / 0.5691 GB, free: 5.949 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: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (128): * Single equations (assignments): 127 * 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 6} Notification: Performance of prepare postOptimizeDAE: time 0.0002113/0.514, allocations: 133.2 kB / 0.5693 GB, free: 5.812 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00305/0.517, allocations: 1.811 MB / 0.571 GB, free: 3.992 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000124/0.5172, allocations: 82.97 kB / 0.5711 GB, free: 3.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003435/0.5206, allocations: 2.005 MB / 0.5731 GB, free: 1.891 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.148e-05/0.5207, allocations: 12 kB / 0.5731 GB, free: 1.879 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.5207, allocations: 7.969 kB / 0.5731 GB, free: 1.871 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.316e-05/0.5207, allocations: 3.984 kB / 0.5731 GB, free: 1.867 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00564/0.5263, allocations: 3.941 MB / 0.5769 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.907e-06/0.5264, allocations: 4 kB / 0.5769 GB, free: 13.86 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001228/0.5276, allocations: 264.1 kB / 0.5772 GB, free: 13.6 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002495/0.5279, allocations: 112.8 kB / 0.5773 GB, free: 13.48 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.789e-05/0.5279, allocations: 23.94 kB / 0.5773 GB, free: 13.46 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005995/0.5285, allocations: 0.7978 MB / 0.5781 GB, free: 12.64 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.11e-06/0.5286, allocations: 8 kB / 0.5781 GB, free: 12.63 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004281/0.5329, allocations: 3.231 MB / 0.5813 GB, free: 9.238 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004381/0.5333, allocations: 251.8 kB / 0.5815 GB, free: 8.973 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001053/0.5334, allocations: 15.98 kB / 0.5815 GB, free: 8.957 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004645/0.5339, allocations: 23.89 kB / 0.5815 GB, free: 8.934 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001363/0.534, allocations: 97.09 kB / 0.5816 GB, free: 8.836 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.217e-05/0.5341, allocations: 39.98 kB / 0.5817 GB, free: 8.797 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004455/0.5346, allocations: 402.8 kB / 0.5821 GB, free: 8.402 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5346, allocations: 0 / 0.5821 GB, free: 8.402 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001285/0.5359, allocations: 0.5112 MB / 0.5826 GB, free: 7.891 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (127): * Single equations (assignments): 126 * 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 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006169/0.542, allocations: 5.433 MB / 0.5879 GB, free: 2.348 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002095/0.5442, allocations: 1.537 MB / 0.5894 GB, free: 0.8086 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 7.615e-06/0.5442, allocations: 4 kB / 0.5894 GB, free: 0.8047 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009682/0.5452, allocations: 0.8185 MB / 0.5902 GB, free: 15.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001313/0.5465, allocations: 256 kB / 0.5904 GB, free: 15.75 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003612/0.5501, allocations: 2.033 MB / 0.5924 GB, free: 13.62 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005939/0.5507, allocations: 1.052 MB / 0.5934 GB, free: 12.55 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0006858/0.5514, allocations: 171.1 kB / 0.5936 GB, free: 12.38 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005297/0.552, allocations: 411.3 kB / 0.594 GB, free: 11.97 MB / 410.7 MB Notification: Performance of SimCode: time 1.292e-06/0.552, allocations: 0 / 0.594 GB, free: 11.97 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05358/0.6056, allocations: 27.04 MB / 0.6204 GB, free: 1.129 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000185/0.6058, allocations: 109.1 kB / 0.6205 GB, free: 0.9375 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.515/3.121, allocations: 0 / 0.6205 GB, free: 0.9375 MB / 426.7 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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction2_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)