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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07074/0.07074, allocations: 15.26 MB / 22.55 MB, free: 1.105 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.0009515/0.0009516, allocations: 187.4 kB / 27.31 MB, free: 4 kB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.16/1.16, allocations: 221.4 MB / 253.3 MB, free: 10.31 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.00092/0.0009199, allocations: 92.14 kB / 308.4 MB, free: 10.62 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.2125/0.2135, allocations: 60.73 MB / 369.1 MB, free: 53.74 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08244/0.2959, allocations: 54.63 MB / 423.8 MB, free: 14.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2652/0.5612, allocations: 99.07 MB / 0.5106 GB, free: 8.238 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001896/0.5614, allocations: 66.92 kB / 0.5106 GB, free: 8.238 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: 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.0824/0.6438, allocations: 35.09 MB / 0.5449 GB, free: 15.63 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.098e-05/0.6439, allocations: 7.625 kB / 0.5449 GB, free: 15.63 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001208/0.6451, allocations: 267.7 kB / 0.5452 GB, free: 15.51 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001828/0.6469, allocations: 0.7537 MB / 0.5459 GB, free: 15.09 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000127/0.6471, allocations: 61.95 kB / 0.546 GB, free: 15.06 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002559/0.6474, allocations: 57.28 kB / 0.546 GB, free: 15.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002975/0.6503, allocations: 2.1 MB / 0.5481 GB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001965/0.6523, allocations: 1.204 MB / 0.5492 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.085e-05/0.6524, allocations: 5.188 kB / 0.5492 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.595e-05/0.6524, allocations: 0 / 0.5492 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.053e-05/0.6525, allocations: 21.25 kB / 0.5493 GB, free: 14.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00787/0.6603, allocations: 4.739 MB / 0.5539 GB, free: 12.47 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002028/0.6624, allocations: 1.566 MB / 0.5554 GB, free: 11.82 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009676/0.6634, allocations: 0.7471 MB / 0.5561 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004154/0.6638, allocations: 251.5 kB / 0.5564 GB, free: 11.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.6639, allocations: 47.03 kB / 0.5564 GB, free: 11.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=98): time 2.995e-06/0.6639, allocations: 0 / 0.5564 GB, free: 11.29 MB / 378.7 MB Notification: Performance of matching and sorting (n=118): time 0.01196/0.6758, allocations: 4.772 MB / 0.5611 GB, free: 8.527 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.6759, allocations: 64.12 kB / 0.5612 GB, free: 8.465 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008576/0.6768, allocations: 0.5014 MB / 0.5616 GB, free: 8.074 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/0.6769, allocations: 25.7 kB / 0.5617 GB, free: 8.043 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001813/0.6771, allocations: 300.7 kB / 0.562 GB, free: 7.742 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003003/0.6774, allocations: 390.1 kB / 0.5623 GB, free: 7.355 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.407e-05/0.6774, allocations: 4 kB / 0.5623 GB, free: 7.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001728/0.6776, allocations: 390.7 kB / 0.5627 GB, free: 6.961 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008131/0.6784, allocations: 0.6625 MB / 0.5634 GB, free: 6.297 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009153/0.6794, allocations: 0.7749 MB / 0.5641 GB, free: 5.488 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002186/0.6815, allocations: 0.9227 MB / 0.565 GB, free: 4.566 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.51e-06/0.6816, allocations: 0 / 0.565 GB, free: 4.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=134) (initialization): time 0.00366/0.6852, allocations: 1.919 MB / 0.5669 GB, free: 2.637 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.106e-05/0.6853, allocations: 8 kB / 0.5669 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.6853, allocations: 0 / 0.5669 GB, free: 2.629 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003752/0.6857, allocations: 125 kB / 0.567 GB, free: 2.504 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001494/0.6872, allocations: 275.6 kB / 0.5673 GB, free: 2.234 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007425/0.6879, allocations: 0.7859 MB / 0.568 GB, free: 1.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007832/0.6887, allocations: 35.92 kB / 0.5681 GB, free: 1.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.6889, allocations: 43.98 kB / 0.5681 GB, free: 1.348 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.0002199/0.6891, allocations: 121.2 kB / 0.5682 GB, free: 1.223 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002118/0.6893, allocations: 90.97 kB / 0.5683 GB, free: 1.133 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004101/0.6934, allocations: 2.065 MB / 0.5703 GB, free: 15.06 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.382e-05/0.6934, allocations: 15.91 kB / 0.5704 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.6935, allocations: 0 / 0.5704 GB, free: 15.04 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.624e-05/0.6935, allocations: 19.91 kB / 0.5704 GB, free: 15.02 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006274/0.6998, allocations: 3.941 MB / 0.5742 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.727e-06/0.6998, allocations: 4.5 kB / 0.5742 GB, free: 11.01 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001389/0.7012, allocations: 267.7 kB / 0.5745 GB, free: 10.75 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003113/0.7015, allocations: 116.8 kB / 0.5746 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.189e-05/0.7016, allocations: 19.98 kB / 0.5746 GB, free: 10.61 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000624/0.7022, allocations: 0.798 MB / 0.5754 GB, free: 9.785 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.7023, allocations: 7.938 kB / 0.5754 GB, free: 9.777 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004823/0.7071, allocations: 3.294 MB / 0.5786 GB, free: 6.316 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005795/0.7129, allocations: 4.699 MB / 0.5832 GB, free: 1.445 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004494/0.7134, allocations: 251.8 kB / 0.5834 GB, free: 1.18 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.7135, allocations: 8 kB / 0.5834 GB, free: 1.172 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005581/0.7141, allocations: 23.92 kB / 0.5835 GB, free: 1.148 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001298/0.7142, allocations: 80.73 kB / 0.5835 GB, free: 1.07 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.525e-05/0.7143, allocations: 51.98 kB / 0.5836 GB, free: 1.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0004748/0.7148, allocations: 394.9 kB / 0.584 GB, free: 0.6328 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001945/0.7168, allocations: 0.5581 MB / 0.5845 GB, free: 76 kB / 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.001289/0.7181, allocations: 0.6659 MB / 0.5852 GB, free: 15.43 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002017/0.7201, allocations: 1.557 MB / 0.5867 GB, free: 13.87 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.656e-06/0.7201, allocations: 0 / 0.5867 GB, free: 13.87 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009812/0.7211, allocations: 0.839 MB / 0.5875 GB, free: 13.04 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001275/0.7224, allocations: 244.9 kB / 0.5877 GB, free: 12.81 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003289/0.7257, allocations: 1.761 MB / 0.5895 GB, free: 10.97 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009096/0.7266, allocations: 1.184 MB / 0.5906 GB, free: 9.754 MB / 410.7 MB Notification: Performance of SimCode: time 7.41e-07/0.7266, allocations: 0 / 0.5906 GB, free: 9.754 MB / 410.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)