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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1235/0.1235, allocations: 15.26 MB / 22.73 MB, free: 0.9727 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.001124/0.001124, allocations: 185 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.535/1.535, allocations: 221.5 MB / 253.7 MB, free: 10.43 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.0009102/0.0009101, allocations: 87.84 kB / 308.7 MB, free: 10.46 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.69e-05/1.702e-05, allocations: 2.75 kB / 369.6 MB, free: 54 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1152, allocations: 54.63 MB / 424.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4409/0.5561, allocations: 94.21 MB / 0.5063 GB, free: 12.33 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002429/0.5564, allocations: 68.81 kB / 0.5063 GB, free: 12.33 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 - DAE generated: time 0.04302/0.5995, allocations: 19.06 MB / 0.5249 GB, free: 26.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.5995, allocations: 0 / 0.5249 GB, free: 26.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.203e-05/0.5996, allocations: 15.47 kB / 0.525 GB, free: 26.83 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001167/0.6007, allocations: 0.8066 MB / 0.5257 GB, free: 26.22 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.6008, allocations: 15.39 kB / 0.5258 GB, free: 26.22 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006807/0.6015, allocations: 203.5 kB / 0.526 GB, free: 26.14 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006125/0.6021, allocations: 0.4994 MB / 0.5264 GB, free: 25.8 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.6021, allocations: 7.594 kB / 0.5265 GB, free: 25.8 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.975e-05/0.6022, allocations: 26.92 kB / 0.5265 GB, free: 25.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001544/0.6038, allocations: 1.619 MB / 0.5281 GB, free: 25.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008418/0.6046, allocations: 0.7432 MB / 0.5288 GB, free: 25.35 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.6046, allocations: 3.281 kB / 0.5288 GB, free: 25.35 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.543e-05/0.6047, allocations: 3.75 kB / 0.5288 GB, free: 25.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.6047, allocations: 7.625 kB / 0.5288 GB, free: 25.35 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003412/0.6081, allocations: 2.935 MB / 0.5317 GB, free: 23.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001008/0.6082, allocations: 68.2 kB / 0.5317 GB, free: 23.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.912e-05/0.6083, allocations: 28.06 kB / 0.5318 GB, free: 23.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.6083, allocations: 0 / 0.5318 GB, free: 23.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.391e-05/0.6084, allocations: 38.41 kB / 0.5318 GB, free: 23.89 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.483e-06/0.6084, allocations: 0 / 0.5318 GB, free: 23.89 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002725/0.6086, allocations: 134 kB / 0.5319 GB, free: 23.81 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.823e-05/0.6087, allocations: 55.41 kB / 0.532 GB, free: 23.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001597/0.6103, allocations: 1.647 MB / 0.5336 GB, free: 23.48 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.6103, allocations: 25.7 kB / 0.5336 GB, free: 23.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002082/0.6105, allocations: 395.1 kB / 0.534 GB, free: 23.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.716e-05/0.6106, allocations: 26.7 kB / 0.534 GB, free: 23.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.197e-05/0.6106, allocations: 0 / 0.534 GB, free: 23.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.6107, allocations: 366.5 kB / 0.5344 GB, free: 22.87 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003832/0.6111, allocations: 479.8 kB / 0.5348 GB, free: 22.82 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004348/0.6116, allocations: 0.6449 MB / 0.5354 GB, free: 22.54 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001472/0.613, allocations: 0.7163 MB / 0.5361 GB, free: 22.32 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.379e-06/0.6131, allocations: 0 / 0.5361 GB, free: 22.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.002002/0.6151, allocations: 1.374 MB / 0.5375 GB, free: 21.95 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.6151, allocations: 11.86 kB / 0.5375 GB, free: 21.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.847e-06/0.6151, allocations: 3.875 kB / 0.5375 GB, free: 21.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.996e-05/0.6151, allocations: 11.59 kB / 0.5375 GB, free: 21.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003685/0.6155, allocations: 108.3 kB / 0.5376 GB, free: 21.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.031e-05/0.6155, allocations: 11.69 kB / 0.5376 GB, free: 21.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004633/0.616, allocations: 51.3 kB / 0.5377 GB, free: 21.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.6161, allocations: 34.86 kB / 0.5377 GB, free: 21.88 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 0.0001089/0.6162, allocations: 124.5 kB / 0.5378 GB, free: 21.76 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.731e-05/0.6162, allocations: 54.66 kB / 0.5379 GB, free: 21.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002262/0.6165, allocations: 137.2 kB / 0.538 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.6165, allocations: 3.875 kB / 0.538 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.6165, allocations: 0 / 0.538 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.545e-06/0.6165, allocations: 0 / 0.538 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007596/0.6173, allocations: 0.7691 MB / 0.5388 GB, free: 21.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.826e-06/0.6173, allocations: 3.875 kB / 0.5388 GB, free: 21.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.029e-05/0.6173, allocations: 7.875 kB / 0.5388 GB, free: 21.11 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.368e-06/0.6174, allocations: 7.812 kB / 0.5388 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.004e-05/0.6174, allocations: 3.938 kB / 0.5388 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.6174, allocations: 15.98 kB / 0.5388 GB, free: 21.09 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.6174, allocations: 0 / 0.5388 GB, free: 21.09 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001956/0.6176, allocations: 261.3 kB / 0.5391 GB, free: 20.85 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001566/0.6178, allocations: 173.8 kB / 0.5392 GB, free: 20.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.677e-05/0.6178, allocations: 4 kB / 0.5392 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001889/0.618, allocations: 7.859 kB / 0.5392 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.013e-05/0.6181, allocations: 11.5 kB / 0.5392 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.6181, allocations: 7.875 kB / 0.5392 GB, free: 20.69 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009467/0.619, allocations: 1.309 MB / 0.5405 GB, free: 20.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.619, allocations: 0 / 0.5405 GB, free: 20.5 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006808/0.6197, allocations: 268.4 kB / 0.5408 GB, free: 20.44 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.0005545/0.6203, allocations: 381.9 kB / 0.5411 GB, free: 20.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005436/0.6208, allocations: 0.5776 MB / 0.5417 GB, free: 20.17 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.726e-06/0.6209, allocations: 0 / 0.5417 GB, free: 20.17 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.64e-05/0.6209, allocations: 30.92 kB / 0.5417 GB, free: 20.16 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007939/0.6217, allocations: 199.2 kB / 0.5419 GB, free: 20.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007927/0.6225, allocations: 0.5128 MB / 0.5424 GB, free: 19.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003582/0.6229, allocations: 0.862 MB / 0.5433 GB, free: 19.03 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003095/0.6232, allocations: 114.7 kB / 0.5434 GB, free: 18.98 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.946e-05/0.6233, allocations: 45.89 kB / 0.5434 GB, free: 18.96 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.6233, allocations: 0 / 0.5434 GB, free: 18.96 MB / 378.7 MB Notification: Performance of Templates: time 0.01334/0.6366, allocations: 9.69 MB / 0.5529 GB, free: 14.23 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)