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"}) [: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.07606/0.07606, allocations: 15.26 MB / 22.54 MB, free: 1.102 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.001/0.001, allocations: 191.4 kB / 27.31 MB, free: 6.172 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.167/1.167, allocations: 221.4 MB / 253.3 MB, free: 10.71 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.0008894/0.0008894, allocations: 95.78 kB / 308.4 MB, free: 10.71 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.212/0.213, allocations: 60.73 MB / 369.1 MB, free: 53.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08162/0.2946, allocations: 54.63 MB / 423.7 MB, free: 12.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.247/0.5417, allocations: 99.06 MB / 0.5106 GB, free: 32.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001619/0.5419, allocations: 67.61 kB / 0.5106 GB, free: 32.53 MB / 378.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: 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.05462/0.5965, allocations: 25.26 MB / 0.5353 GB, free: 29.72 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.403e-05/0.5966, allocations: 7.844 kB / 0.5353 GB, free: 29.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007021/0.5973, allocations: 194.5 kB / 0.5355 GB, free: 29.67 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009842/0.5983, allocations: 0.5883 MB / 0.5361 GB, free: 29.38 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.818e-05/0.5983, allocations: 59.58 kB / 0.5361 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.832e-05/0.5984, allocations: 39.59 kB / 0.5362 GB, free: 29.35 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001697/0.6001, allocations: 1.5 MB / 0.5376 GB, free: 29.34 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001093/0.6012, allocations: 0.9641 MB / 0.5386 GB, free: 29.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.6013, allocations: 3.984 kB / 0.5386 GB, free: 29.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.782e-05/0.6013, allocations: 3.938 kB / 0.5386 GB, free: 29.24 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.259e-05/0.6013, allocations: 15.62 kB / 0.5386 GB, free: 29.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004237/0.6056, allocations: 3.701 MB / 0.5422 GB, free: 28.15 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006126/0.6062, allocations: 0.6775 MB / 0.5429 GB, free: 28.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004671/0.6067, allocations: 0.5658 MB / 0.5434 GB, free: 28.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00019/0.6069, allocations: 167.2 kB / 0.5436 GB, free: 28.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.363e-05/0.6069, allocations: 40.67 kB / 0.5436 GB, free: 28.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=70): time 2.555e-06/0.6069, allocations: 0 / 0.5436 GB, free: 28.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=81): time 0.006385/0.6133, allocations: 3.411 MB / 0.5469 GB, free: 27.57 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.103e-05/0.6134, allocations: 60.62 kB / 0.547 GB, free: 27.51 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003657/0.6137, allocations: 385.4 kB / 0.5474 GB, free: 27.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.218e-05/0.6138, allocations: 33.64 kB / 0.5474 GB, free: 27.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001163/0.6139, allocations: 258.5 kB / 0.5476 GB, free: 27.19 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001565/0.6141, allocations: 266.7 kB / 0.5479 GB, free: 27.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.014e-05/0.6141, allocations: 0 / 0.5479 GB, free: 27.02 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000107/0.6142, allocations: 365.7 kB / 0.5482 GB, free: 26.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005314/0.6148, allocations: 0.5057 MB / 0.5487 GB, free: 26.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005159/0.6153, allocations: 0.5916 MB / 0.5493 GB, free: 26.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001308/0.6166, allocations: 0.6546 MB / 0.55 GB, free: 26.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.6166, allocations: 0 / 0.55 GB, free: 26.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=93) (initialization): time 0.002083/0.6187, allocations: 1.414 MB / 0.5513 GB, free: 26.36 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.6187, allocations: 7.625 kB / 0.5513 GB, free: 26.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.6187, allocations: 0 / 0.5513 GB, free: 26.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002135/0.6189, allocations: 81.56 kB / 0.5514 GB, free: 26.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000929/0.6199, allocations: 199.5 kB / 0.5516 GB, free: 26.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003616/0.6203, allocations: 0.7116 MB / 0.5523 GB, free: 25.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004028/0.6207, allocations: 23.73 kB / 0.5523 GB, free: 25.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/0.6207, allocations: 35.08 kB / 0.5524 GB, free: 25.72 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.0001749/0.6209, allocations: 117.9 kB / 0.5525 GB, free: 25.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.648e-05/0.621, allocations: 58.69 kB / 0.5525 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002456/0.6235, allocations: 1.498 MB / 0.554 GB, free: 25.17 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.6235, allocations: 7.719 kB / 0.554 GB, free: 25.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.6235, allocations: 3.906 kB / 0.554 GB, free: 25.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.879e-06/0.6235, allocations: 3.984 kB / 0.554 GB, free: 25.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003362/0.6269, allocations: 2.669 MB / 0.5566 GB, free: 24.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.087e-06/0.6269, allocations: 0 / 0.5566 GB, free: 24.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009067/0.6278, allocations: 194.4 kB / 0.5568 GB, free: 24.25 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001837/0.628, allocations: 90.62 kB / 0.5569 GB, free: 24.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.959e-05/0.6281, allocations: 12.8 kB / 0.5569 GB, free: 24.22 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003286/0.6284, allocations: 0.7016 MB / 0.5576 GB, free: 23.67 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.6284, allocations: 0 / 0.5576 GB, free: 23.67 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.002549/0.631, allocations: 2.336 MB / 0.5599 GB, free: 22.98 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.003235/0.6342, allocations: 3.455 MB / 0.5632 GB, free: 21.04 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000233/0.6345, allocations: 199.1 kB / 0.5634 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.877e-05/0.6346, allocations: 3.906 kB / 0.5634 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003617/0.6349, allocations: 15.61 kB / 0.5634 GB, free: 20.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.747e-05/0.635, allocations: 59.61 kB / 0.5635 GB, free: 20.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.181e-05/0.6351, allocations: 31.23 kB / 0.5635 GB, free: 20.8 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002444/0.6353, allocations: 307 kB / 0.5638 GB, free: 20.62 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001414/0.6368, allocations: 397.2 kB / 0.5642 GB, free: 20.5 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.0006771/0.6375, allocations: 0.4892 MB / 0.5647 GB, free: 20.22 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001099/0.6386, allocations: 1.147 MB / 0.5658 GB, free: 19.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.6386, allocations: 0 / 0.5658 GB, free: 19.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005742/0.6392, allocations: 0.6148 MB / 0.5664 GB, free: 19.41 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008344/0.64, allocations: 188.4 kB / 0.5666 GB, free: 19.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001854/0.6419, allocations: 1.271 MB / 0.5678 GB, free: 18.57 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005381/0.6424, allocations: 1.049 MB / 0.5688 GB, free: 17.72 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6424, allocations: 4 kB / 0.5689 GB, free: 17.72 MB / 378.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)