Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.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: translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") translateModel(Chemical.Examples.CheckSubstancesData.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2") [: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.07103/0.07103, allocations: 15.27 MB / 22.54 MB, free: 1.098 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.0008678/0.0008678, allocations: 183.5 kB / 27.31 MB, free: 6.184 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.094/1.094, allocations: 221.4 MB / 253.3 MB, free: 10.24 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.000867/0.000867, allocations: 100.5 kB / 308.4 MB, free: 10.6 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.78e-06/5.911e-06, allocations: 1.219 kB / 369 MB, free: 53.68 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06669/0.06671, allocations: 54.62 MB / 423.7 MB, free: 14.33 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2202/0.287, allocations: 94.14 MB / 0.5057 GB, free: 8.207 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000145/0.2872, allocations: 69.19 kB / 0.5057 GB, free: 8.203 MB / 362.7 MB [/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.Sources.PureSubstance. 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:1535:7-1535:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System reaction.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.Sensors.DissociationCoefficient$reaction. 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.Sources.PureSubstance. 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.Sources.PureSubstance$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: time 0.03866/0.3258, allocations: 18.87 MB / 0.5242 GB, free: 6.52 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.808e-05/0.3259, allocations: 15.34 kB / 0.5242 GB, free: 6.516 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.0007511/0.3266, allocations: 0.8027 MB / 0.525 GB, free: 5.875 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.828e-05/0.3267, allocations: 7.812 kB / 0.525 GB, free: 5.875 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006271/0.3273, allocations: 216.9 kB / 0.5252 GB, free: 5.789 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005541/0.3279, allocations: 0.5072 MB / 0.5257 GB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.212e-05/0.3279, allocations: 11.72 kB / 0.5257 GB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.879e-05/0.3279, allocations: 15.5 kB / 0.5257 GB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001265/0.3292, allocations: 1.629 MB / 0.5273 GB, free: 5.215 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006029/0.3298, allocations: 0.7506 MB / 0.528 GB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.09e-05/0.3298, allocations: 0 / 0.528 GB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.967e-05/0.3299, allocations: 0 / 0.528 GB, free: 5.004 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.115e-06/0.3299, allocations: 11.77 kB / 0.528 GB, free: 5 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00271/0.3326, allocations: 3.182 MB / 0.5311 GB, free: 19.34 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.018e-05/0.3327, allocations: 55.94 kB / 0.5312 GB, free: 19.31 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.799e-05/0.3327, allocations: 34.52 kB / 0.5312 GB, free: 19.3 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.64e-05/0.3327, allocations: 3.984 kB / 0.5312 GB, free: 19.29 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.633e-05/0.3328, allocations: 34.5 kB / 0.5313 GB, free: 19.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.3328, allocations: 0 / 0.5313 GB, free: 19.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002054/0.333, allocations: 136 kB / 0.5314 GB, free: 19.18 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.891e-05/0.333, allocations: 63.06 kB / 0.5315 GB, free: 19.11 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001243/0.3343, allocations: 1.653 MB / 0.5331 GB, free: 18.84 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.123e-05/0.3343, allocations: 25.7 kB / 0.5331 GB, free: 18.81 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001009/0.3344, allocations: 305.2 kB / 0.5334 GB, free: 18.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.324e-05/0.3344, allocations: 27.55 kB / 0.5334 GB, free: 18.56 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.159e-05/0.3344, allocations: 0 / 0.5334 GB, free: 18.56 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.3345, allocations: 364.8 kB / 0.5338 GB, free: 18.23 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003606/0.3349, allocations: 490.4 kB / 0.5342 GB, free: 18.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003968/0.3353, allocations: 0.6481 MB / 0.5349 GB, free: 17.89 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001438/0.3367, allocations: 0.7399 MB / 0.5356 GB, free: 17.66 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3368, allocations: 0 / 0.5356 GB, free: 17.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.002013/0.3388, allocations: 1.401 MB / 0.5369 GB, free: 17.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.3388, allocations: 3.844 kB / 0.537 GB, free: 17.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.3388, allocations: 7.656 kB / 0.537 GB, free: 17.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.389e-05/0.3388, allocations: 7.719 kB / 0.537 GB, free: 17.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003824/0.3392, allocations: 111.8 kB / 0.5371 GB, free: 17.24 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.045e-06/0.3392, allocations: 11.62 kB / 0.5371 GB, free: 17.24 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004219/0.3397, allocations: 50.67 kB / 0.5371 GB, free: 17.21 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.886e-05/0.3397, allocations: 26.55 kB / 0.5372 GB, free: 17.21 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 53 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.15e-05/0.3398, allocations: 120.9 kB / 0.5373 GB, free: 17.09 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.581e-05/0.3399, allocations: 65.16 kB / 0.5373 GB, free: 17.05 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002006/0.3401, allocations: 152.4 kB / 0.5375 GB, free: 16.98 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.3401, allocations: 0 / 0.5375 GB, free: 16.98 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3401, allocations: 0 / 0.5375 GB, free: 16.98 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.3401, allocations: 3.906 kB / 0.5375 GB, free: 16.97 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006996/0.3408, allocations: 0.9248 MB / 0.5384 GB, free: 16.24 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3408, allocations: 0 / 0.5384 GB, free: 16.24 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.883e-05/0.3409, allocations: 15.34 kB / 0.5384 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.365e-06/0.3409, allocations: 0 / 0.5384 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.3409, allocations: 7.781 kB / 0.5384 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3409, allocations: 3.984 kB / 0.5384 GB, free: 16.23 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3409, allocations: 8 kB / 0.5384 GB, free: 16.22 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001699/0.3411, allocations: 259.9 kB / 0.5387 GB, free: 15.99 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001481/0.3413, allocations: 175.8 kB / 0.5388 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.917e-05/0.3413, allocations: 3.875 kB / 0.5388 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002096/0.3416, allocations: 7.891 kB / 0.5388 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.498e-05/0.3416, allocations: 7.719 kB / 0.5389 GB, free: 15.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.911e-06/0.3416, allocations: 3.906 kB / 0.5389 GB, free: 15.84 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008809/0.3425, allocations: 1.315 MB / 0.5401 GB, free: 15.64 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000536/0.343, allocations: 277.6 kB / 0.5404 GB, free: 15.58 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004353/0.3435, allocations: 374.4 kB / 0.5408 GB, free: 15.39 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005028/0.344, allocations: 0.5939 MB / 0.5413 GB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.344, allocations: 1.562 kB / 0.5413 GB, free: 15.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.669e-05/0.344, allocations: 34.48 kB / 0.5414 GB, free: 15.29 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006731/0.3447, allocations: 195.8 kB / 0.5416 GB, free: 15.23 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000776/0.3455, allocations: 0.535 MB / 0.5421 GB, free: 14.94 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004329/0.3459, allocations: 0.9206 MB / 0.543 GB, free: 14.14 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3459, allocations: 0 / 0.543 GB, free: 14.14 MB / 378.7 MB Notification: Performance of Templates: time 0.01641/0.3624, allocations: 11.37 MB / 0.5541 GB, free: 8.594 MB / 378.7 MB make -j1 -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.makefile (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & ./Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)