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/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.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") translateModel(Chemical.Examples.SimpleReaction2,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.SimpleReaction2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001478/0.001478, allocations: 103.2 kB / 16.41 MB, free: 6.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.00155, allocations: 189.5 kB / 17.34 MB, free: 5.719 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.472/1.472, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08156/0.08156, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 67.89 kB / 425.8 MB, free: 11.56 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1029, allocations: 53.61 MB / 479.5 MB, free: 5.895 MB / 350.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.SimpleReaction2): time 0.03326/0.1362, allocations: 24.62 MB / 0.4923 GB, free: 13.36 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.1494, allocations: 11.61 MB / 0.5036 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006809/0.1502, allocations: 11.94 kB / 0.5036 GB, free: 1.688 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007662/0.1509, allocations: 262 kB / 0.5039 GB, free: 1.43 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002677/0.1536, allocations: 0.9734 MB / 0.5048 GB, free: 460 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.2588/0.4125, allocations: 1.505 MB / 0.5063 GB, free: 19.37 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002166/0.4147, allocations: 1.244 MB / 0.5075 GB, free: 19.36 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008917/0.4156, allocations: 0.6985 MB / 0.5082 GB, free: 19.3 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007364/0.4163, allocations: 0.6157 MB / 0.5088 GB, free: 19.3 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001041/0.4174, allocations: 0.6625 MB / 0.5094 GB, free: 19.21 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001838/0.4176, allocations: 106.1 kB / 0.5095 GB, free: 19.21 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003736/0.4213, allocations: 1.285 MB / 0.5108 GB, free: 19.21 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002711/0.4216, allocations: 261.6 kB / 0.511 GB, free: 19.18 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006902/0.4223, allocations: 0.5501 MB / 0.5116 GB, free: 19.04 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004923/0.4272, allocations: 2.51 MB / 0.514 GB, free: 18.77 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.6e-06/0.4272, allocations: 1.125 kB / 0.514 GB, free: 18.77 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.184e-06/0.4273, allocations: 0 / 0.514 GB, free: 18.77 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.863e-05/0.4273, allocations: 0 / 0.514 GB, free: 18.77 MB / 382.1 MB 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.002941/0.4302, allocations: 1.49 MB / 0.5155 GB, free: 17.83 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.4303, allocations: 12.22 kB / 0.5155 GB, free: 17.83 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009484/0.4312, allocations: 207.6 kB / 0.5157 GB, free: 17.77 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008048/0.432, allocations: 0.5774 MB / 0.5162 GB, free: 17.39 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.691e-05/0.4321, allocations: 95.33 kB / 0.5163 GB, free: 17.33 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001436/0.4323, allocations: 103 kB / 0.5164 GB, free: 17.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00173/0.434, allocations: 1.048 MB / 0.5175 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.105e-05/0.4341, allocations: 0 / 0.5175 GB, free: 16.88 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001052/0.4342, allocations: 36.52 kB / 0.5175 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.775e-05/0.4342, allocations: 24.34 kB / 0.5175 GB, free: 16.85 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002302/0.4365, allocations: 1.276 MB / 0.5188 GB, free: 16.49 MB / 382.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.005291/0.4418, allocations: 3.463 MB / 0.5221 GB, free: 14.43 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002091/0.4439, allocations: 1.524 MB / 0.5236 GB, free: 13.71 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005793/0.4445, allocations: 437.2 kB / 0.5241 GB, free: 13.54 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004463/0.449, allocations: 4.037 MB / 0.528 GB, free: 10.36 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.864e-05/0.449, allocations: 40.94 kB / 0.528 GB, free: 10.32 MB / 382.1 MB Notification: Performance of pre-optimization done (n=56): time 2.164e-06/0.449, allocations: 3.938 kB / 0.528 GB, free: 10.31 MB / 382.1 MB Notification: Performance of matching and sorting (n=63): time 0.002878/0.4519, allocations: 1.663 MB / 0.5297 GB, free: 9.441 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.452, allocations: 63.86 kB / 0.5297 GB, free: 9.379 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004871/0.4525, allocations: 0.5111 MB / 0.5302 GB, free: 9.137 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.34e-05/0.4525, allocations: 36.36 kB / 0.5303 GB, free: 9.098 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001921/0.4527, allocations: 460.8 kB / 0.5307 GB, free: 8.734 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001201/0.4528, allocations: 221.9 kB / 0.5309 GB, free: 8.566 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001917/0.453, allocations: 175.4 kB / 0.5311 GB, free: 8.48 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 7.861e-05/0.4531, allocations: 377.5 kB / 0.5314 GB, free: 8.141 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003357/0.4534, allocations: 208 kB / 0.5316 GB, free: 8.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000474/0.4539, allocations: 0.5347 MB / 0.5322 GB, free: 7.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008571/0.4548, allocations: 0.8177 MB / 0.533 GB, free: 6.988 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.59e-06/0.4548, allocations: 3.219 kB / 0.533 GB, free: 6.988 MB / 382.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001172/0.456, allocations: 0.8491 MB / 0.5338 GB, free: 6.703 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.234e-05/0.456, allocations: 10.56 kB / 0.5338 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.398e-05/0.456, allocations: 13.72 kB / 0.5338 GB, free: 6.703 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.739e-05/0.4561, allocations: 25.12 kB / 0.5338 GB, free: 6.699 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008924/0.457, allocations: 260.4 kB / 0.5341 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.057e-05/0.457, allocations: 24.19 kB / 0.5341 GB, free: 6.691 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004473/0.4575, allocations: 33.22 kB / 0.5341 GB, free: 6.676 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.465e-05/0.4575, allocations: 51.52 kB / 0.5342 GB, free: 6.668 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.0002505/0.4578, allocations: 231.3 kB / 0.5344 GB, free: 6.492 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.898e-05/0.4579, allocations: 61.19 kB / 0.5345 GB, free: 6.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.459, allocations: 0.687 MB / 0.5351 GB, free: 6.184 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.459, allocations: 9.906 kB / 0.5351 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.59e-06/0.459, allocations: 2.656 kB / 0.5351 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.157e-06/0.459, allocations: 3.609 kB / 0.5352 GB, free: 6.18 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008457/0.4599, allocations: 0.7762 MB / 0.5359 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.887e-06/0.4599, allocations: 9.141 kB / 0.5359 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006899/0.4606, allocations: 170 kB / 0.5361 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.4606, allocations: 2.938 kB / 0.5361 GB, free: 5.609 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.745e-05/0.4606, allocations: 24.34 kB / 0.5361 GB, free: 5.598 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.202e-06/0.4606, allocations: 8.938 kB / 0.5361 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.624e-06/0.4606, allocations: 3.281 kB / 0.5361 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001087/0.4617, allocations: 0.9473 MB / 0.537 GB, free: 5.047 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/0.462, allocations: 187.2 kB / 0.5372 GB, free: 4.879 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.503e-05/0.462, allocations: 14.41 kB / 0.5372 GB, free: 4.871 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002657/0.4623, allocations: 26.02 kB / 0.5373 GB, free: 4.852 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.995e-05/0.4624, allocations: 54.41 kB / 0.5373 GB, free: 4.832 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.677e-05/0.4624, allocations: 24.62 kB / 0.5373 GB, free: 4.828 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002834/0.4627, allocations: 340.9 kB / 0.5377 GB, free: 4.625 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4627, allocations: 0 / 0.5377 GB, free: 4.625 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001293/0.464, allocations: 481.6 kB / 0.5381 GB, free: 4.43 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (71): * Single equations (assignments): 71 * 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.0008259/0.4649, allocations: 0.5872 MB / 0.5387 GB, free: 3.926 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0007786/0.4657, allocations: 0.6065 MB / 0.5393 GB, free: 3.344 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.4657, allocations: 0 / 0.5393 GB, free: 3.344 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000306/0.466, allocations: 283 kB / 0.5396 GB, free: 3.066 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007397/0.4667, allocations: 161 kB / 0.5397 GB, free: 2.934 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001918/0.4687, allocations: 1.52 MB / 0.5412 GB, free: 1.41 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003023/0.469, allocations: 0.963 MB / 0.5421 GB, free: 444 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00024/0.4692, allocations: 127.4 kB / 0.5423 GB, free: 316 kB / 382.1 MB Notification: Performance of SimCode: time 3.21e-07/0.4692, allocations: 0 / 0.5423 GB, free: 316 kB / 382.1 MB Notification: Performance of Templates: time 0.01672/0.486, allocations: 12.53 MB / 0.5545 GB, free: 4.59 MB / 398.1 MB make -j1 -f Chemical_Chemical.Examples.SimpleReaction2.makefile (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 & ./Chemical_Chemical.Examples.SimpleReaction2 -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)