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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") translateModel(Chemical.Examples.SimpleReaction,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001576/0.001576, allocations: 100.1 kB / 15.88 MB, free: 12 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001941/0.001941, allocations: 201.1 kB / 16.79 MB, free: 6.828 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.367/1.367, allocations: 222.9 MB / 240.5 MB, free: 4.621 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2007/0.2007, allocations: 15.32 MB / 305.9 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 59.91 kB / 370.3 MB, free: 4.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1081/0.1094, allocations: 53.61 MB / 423.9 MB, free: 14.79 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.SimpleReaction): time 0.3653/0.4747, allocations: 23.93 MB / 447.8 MB, free: 39.69 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.00701/0.4817, allocations: 7.961 MB / 455.8 MB, free: 35.98 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005399/0.4823, allocations: 18.09 kB / 455.8 MB, free: 35.97 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005213/0.4828, allocations: 171.5 kB / 456 MB, free: 35.89 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001449/0.4843, allocations: 0.5805 MB / 456.6 MB, free: 35.57 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00219/0.4865, allocations: 0.9072 MB / 457.5 MB, free: 35.2 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009421/0.4875, allocations: 0.9109 MB / 458.4 MB, free: 34.96 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004406/0.4879, allocations: 446 kB / 458.8 MB, free: 34.9 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003356/0.4883, allocations: 429.2 kB / 459.2 MB, free: 34.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000439/0.4887, allocations: 491.9 kB / 459.7 MB, free: 34.73 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.677e-05/0.4888, allocations: 52.72 kB / 459.8 MB, free: 34.73 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002124/0.4909, allocations: 0.8401 MB / 460.6 MB, free: 34.64 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001549/0.4911, allocations: 162.4 kB / 460.8 MB, free: 34.61 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003082/0.4914, allocations: 394.3 kB / 461.1 MB, free: 34.5 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001297/0.4927, allocations: 1.292 MB / 462.4 MB, free: 34.04 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.4927, allocations: 0 / 462.4 MB, free: 34.04 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.21e-07/0.4927, allocations: 0 / 462.4 MB, free: 34.04 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.518e-06/0.4928, allocations: 0 / 462.4 MB, free: 34.04 MB / 366.1 MB 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.001698/0.4945, allocations: 1.165 MB / 463.6 MB, free: 33.24 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.824e-05/0.4945, allocations: 8.906 kB / 463.6 MB, free: 33.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006338/0.4952, allocations: 155 kB / 463.8 MB, free: 33.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005523/0.4957, allocations: 470.2 kB / 464.2 MB, free: 32.85 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.135e-05/0.4958, allocations: 82.83 kB / 464.3 MB, free: 32.79 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001003/0.4959, allocations: 71.81 kB / 464.4 MB, free: 32.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00109/0.497, allocations: 0.7751 MB / 465.1 MB, free: 32.44 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.497, allocations: 0 / 465.1 MB, free: 32.44 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.058e-05/0.4971, allocations: 30.09 kB / 465.2 MB, free: 32.41 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.623e-05/0.4972, allocations: 18.81 kB / 465.2 MB, free: 32.41 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001349/0.4985, allocations: 0.8779 MB / 466.1 MB, free: 32.16 MB / 366.1 MB Warning: The model contains alias variables with redundant start and/or conflicting 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.003519/0.502, allocations: 2.58 MB / 468.6 MB, free: 30.51 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001478/0.5035, allocations: 1.008 MB / 469.7 MB, free: 29.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004173/0.504, allocations: 305.4 kB / 470 MB, free: 29.87 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003267/0.5072, allocations: 2.846 MB / 472.8 MB, free: 27.6 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.5073, allocations: 37.31 kB / 472.8 MB, free: 27.55 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.645e-06/0.5073, allocations: 0 / 472.8 MB, free: 27.55 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002376/0.5097, allocations: 1.224 MB / 474.1 MB, free: 26.87 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.179e-05/0.5097, allocations: 63.53 kB / 474.1 MB, free: 26.8 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004265/0.5101, allocations: 421.4 kB / 474.5 MB, free: 26.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.692e-05/0.5102, allocations: 32.2 kB / 474.6 MB, free: 26.55 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001674/0.5104, allocations: 366.5 kB / 474.9 MB, free: 26.25 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000101/0.5105, allocations: 167.8 kB / 475.1 MB, free: 26.12 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001559/0.5106, allocations: 125.7 kB / 475.2 MB, free: 26.06 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.359e-05/0.5107, allocations: 358.8 kB / 475.6 MB, free: 25.73 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002526/0.511, allocations: 148.2 kB / 475.7 MB, free: 25.68 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00035/0.5113, allocations: 393.2 kB / 476.1 MB, free: 25.33 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006344/0.512, allocations: 0.5783 MB / 476.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.512, allocations: 2.75 kB / 476.7 MB, free: 24.85 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0008997/0.5129, allocations: 0.6161 MB / 477.3 MB, free: 24.59 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.104e-05/0.5129, allocations: 8.344 kB / 477.3 MB, free: 24.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.289e-05/0.5129, allocations: 15.53 kB / 477.3 MB, free: 24.58 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.557e-05/0.513, allocations: 12.94 kB / 477.3 MB, free: 24.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006933/0.5137, allocations: 202.5 kB / 477.5 MB, free: 24.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.5137, allocations: 18.59 kB / 477.5 MB, free: 24.55 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003695/0.5141, allocations: 43.03 kB / 477.6 MB, free: 24.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.776e-05/0.5142, allocations: 36.12 kB / 477.6 MB, free: 24.53 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002224/0.5144, allocations: 207.5 kB / 477.8 MB, free: 24.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.828e-05/0.5145, allocations: 46.22 kB / 477.9 MB, free: 24.33 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009277/0.5154, allocations: 0.4966 MB / 478.4 MB, free: 24.11 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.793e-06/0.5154, allocations: 7.156 kB / 478.4 MB, free: 24.11 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.5154, allocations: 1.094 kB / 478.4 MB, free: 24.11 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.5154, allocations: 0 / 478.4 MB, free: 24.11 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007563/0.5162, allocations: 0.6299 MB / 479 MB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.268e-06/0.5162, allocations: 1.375 kB / 479 MB, free: 23.69 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005673/0.5168, allocations: 142.6 kB / 479.1 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.943e-06/0.5168, allocations: 6.438 kB / 479.1 MB, free: 23.68 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.407e-05/0.5168, allocations: 15.69 kB / 479.2 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.512e-06/0.5169, allocations: 6.219 kB / 479.2 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/0.5169, allocations: 1.125 kB / 479.2 MB, free: 23.67 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009538/0.5178, allocations: 0.7254 MB / 479.9 MB, free: 23.27 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001766/0.518, allocations: 158.9 kB / 480.1 MB, free: 23.13 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.134e-05/0.5181, allocations: 15.75 kB / 480.1 MB, free: 23.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002364/0.5183, allocations: 20.88 kB / 480.1 MB, free: 23.11 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.693e-05/0.5184, allocations: 35.67 kB / 480.1 MB, free: 23.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.548e-05/0.5185, allocations: 20.31 kB / 480.1 MB, free: 23.1 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002858/0.5188, allocations: 284.4 kB / 480.4 MB, free: 22.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5188, allocations: 0 / 480.4 MB, free: 22.95 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000981/0.5198, allocations: 327.5 kB / 480.7 MB, free: 22.88 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (solution.temperature,A.logn,B.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007312/0.5205, allocations: 437 kB / 481.2 MB, free: 22.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007098/0.5212, allocations: 429.1 kB / 481.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.5212, allocations: 1.906 kB / 481.6 MB, free: 22.53 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000294/0.5215, allocations: 213.4 kB / 481.8 MB, free: 22.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007207/0.5223, allocations: 124.5 kB / 481.9 MB, free: 22.41 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.5242, allocations: 1.498 MB / 483.4 MB, free: 21.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003082/0.5245, allocations: 0.8875 MB / 484.3 MB, free: 20.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.5247, allocations: 96.77 kB / 484.4 MB, free: 20.68 MB / 366.1 MB Notification: Performance of SimCode: time 5.72e-07/0.5247, allocations: 0 / 484.4 MB, free: 20.68 MB / 366.1 MB Notification: Performance of Templates: time 0.01606/0.5408, allocations: 9.086 MB / 493.5 MB, free: 19.57 MB / 366.1 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction.makefile (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 & ./Chemical_Chemical.Examples.SimpleReaction -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)