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: "" <> 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001276/0.001276, allocations: 99.36 kB / 15.33 MB, free: 0.5078 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.001469/0.001469, allocations: 193.2 kB / 16.25 MB, free: 6.629 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.283/1.283, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1984/0.1984, allocations: 15.33 MB / 305.4 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001128/0.001128, allocations: 63.91 kB / 369.9 MB, free: 4.199 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09329/0.09444, allocations: 53.62 MB / 423.6 MB, free: 14.53 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.32/0.4145, allocations: 23.9 MB / 447.4 MB, free: 39.91 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.006774/0.4213, allocations: 7.891 MB / 455.3 MB, free: 36.22 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004394/0.4217, allocations: 17.56 kB / 455.4 MB, free: 36.21 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004825/0.4222, allocations: 161.4 kB / 455.5 MB, free: 36.13 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001265/0.4235, allocations: 0.6072 MB / 456.1 MB, free: 35.81 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001966/0.4255, allocations: 0.9265 MB / 457 MB, free: 35.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.000823/0.4263, allocations: 0.9275 MB / 458 MB, free: 35.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004916/0.4268, allocations: 0.5101 MB / 458.5 MB, free: 35.13 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003639/0.4272, allocations: 458.9 kB / 458.9 MB, free: 35.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004888/0.4277, allocations: 0.5015 MB / 459.4 MB, free: 34.97 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.2e-05/0.4278, allocations: 78.28 kB / 459.5 MB, free: 34.97 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002117/0.4299, allocations: 0.8846 MB / 460.4 MB, free: 34.88 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001648/0.4301, allocations: 193.8 kB / 460.6 MB, free: 34.84 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003042/0.4304, allocations: 425.6 kB / 461 MB, free: 34.68 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002166/0.4326, allocations: 1.68 MB / 462.7 MB, free: 33.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.4326, allocations: 0 / 462.7 MB, free: 33.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.705e-06/0.4326, allocations: 0 / 462.7 MB, free: 33.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.4326, allocations: 0 / 462.7 MB, free: 33.96 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.001687/0.4343, allocations: 1.166 MB / 463.8 MB, free: 33.17 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.4344, allocations: 9.156 kB / 463.9 MB, free: 33.17 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001104/0.4345, allocations: 113.6 kB / 464 MB, free: 33.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006218/0.4351, allocations: 155.6 kB / 464.1 MB, free: 33.04 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000593/0.4357, allocations: 468.4 kB / 464.6 MB, free: 32.69 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.036e-05/0.4358, allocations: 81.89 kB / 464.7 MB, free: 32.63 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000115/0.4359, allocations: 68.41 kB / 464.7 MB, free: 32.61 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001174/0.4371, allocations: 0.781 MB / 465.5 MB, free: 32.28 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.4371, allocations: 5.094 kB / 465.5 MB, free: 32.28 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.764e-05/0.4372, allocations: 25.94 kB / 465.5 MB, free: 32.26 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.01e-05/0.4372, allocations: 15.94 kB / 465.6 MB, free: 32.26 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001414/0.4387, allocations: 0.8818 MB / 466.4 MB, free: 32 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.003342/0.442, allocations: 2.566 MB / 469 MB, free: 30.36 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001405/0.4434, allocations: 1.025 MB / 470 MB, free: 29.83 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003974/0.4438, allocations: 306.6 kB / 470.3 MB, free: 29.7 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003108/0.447, allocations: 2.836 MB / 473.2 MB, free: 27.44 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.706e-05/0.447, allocations: 40.14 kB / 473.2 MB, free: 27.4 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 2.084e-06/0.447, allocations: 0 / 473.2 MB, free: 27.4 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.002123/0.4491, allocations: 1.232 MB / 474.4 MB, free: 26.7 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.18e-05/0.4492, allocations: 56.12 kB / 474.5 MB, free: 26.64 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003756/0.4495, allocations: 418.5 kB / 474.9 MB, free: 26.44 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.4496, allocations: 35.23 kB / 474.9 MB, free: 26.4 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001468/0.4497, allocations: 370.6 kB / 475.3 MB, free: 26.1 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.245e-05/0.4498, allocations: 159.5 kB / 475.4 MB, free: 25.98 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.45, allocations: 129.1 kB / 475.6 MB, free: 25.91 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.144e-05/0.45, allocations: 356.8 kB / 475.9 MB, free: 25.57 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002299/0.4503, allocations: 148.5 kB / 476.1 MB, free: 25.53 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003094/0.4506, allocations: 392.8 kB / 476.5 MB, free: 25.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006075/0.4512, allocations: 0.587 MB / 477 MB, free: 24.69 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.479e-06/0.4512, allocations: 2.344 kB / 477 MB, free: 24.69 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.000829/0.4521, allocations: 0.6112 MB / 477.7 MB, free: 24.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.4521, allocations: 12.41 kB / 477.7 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.238e-05/0.4521, allocations: 8.344 kB / 477.7 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.438e-05/0.4521, allocations: 11.59 kB / 477.7 MB, free: 24.42 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006571/0.4528, allocations: 210.5 kB / 477.9 MB, free: 24.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.575e-05/0.4528, allocations: 14.97 kB / 477.9 MB, free: 24.39 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000347/0.4532, allocations: 38.66 kB / 477.9 MB, free: 24.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.379e-05/0.4532, allocations: 36.88 kB / 478 MB, free: 24.38 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.0001946/0.4534, allocations: 205.8 kB / 478.2 MB, free: 24.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.401e-05/0.4535, allocations: 54.12 kB / 478.2 MB, free: 24.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008482/0.4544, allocations: 0.4966 MB / 478.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.298e-06/0.4544, allocations: 2.688 kB / 478.7 MB, free: 23.95 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.4544, allocations: 6.891 kB / 478.7 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.4544, allocations: 3.281 kB / 478.7 MB, free: 23.94 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006686/0.4551, allocations: 0.62 MB / 479.4 MB, free: 23.54 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.857e-06/0.4551, allocations: 5.625 kB / 479.4 MB, free: 23.53 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/0.4556, allocations: 146.5 kB / 479.5 MB, free: 23.52 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.713e-06/0.4557, allocations: 7.375 kB / 479.5 MB, free: 23.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.145e-05/0.4557, allocations: 14.84 kB / 479.5 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.4557, allocations: 3.812 kB / 479.5 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.4557, allocations: 1.125 kB / 479.5 MB, free: 23.5 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008745/0.4566, allocations: 0.7231 MB / 480.3 MB, free: 23.11 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001529/0.4568, allocations: 158.8 kB / 480.4 MB, free: 22.97 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.561e-05/0.4568, allocations: 16.16 kB / 480.4 MB, free: 22.96 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.4571, allocations: 23.12 kB / 480.5 MB, free: 22.95 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.238e-05/0.4571, allocations: 33.97 kB / 480.5 MB, free: 22.94 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.122e-05/0.4572, allocations: 19.72 kB / 480.5 MB, free: 22.94 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002411/0.4574, allocations: 273.8 kB / 480.8 MB, free: 22.81 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.4574, allocations: 0 / 480.8 MB, free: 22.81 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.00091/0.4583, allocations: 334.3 kB / 481.1 MB, free: 22.73 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.001617/0.46, allocations: 1.592 MB / 482.7 MB, free: 21.67 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0007982/0.4608, allocations: 472.5 kB / 483.2 MB, free: 21.51 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.4608, allocations: 0 / 483.2 MB, free: 21.51 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002571/0.4611, allocations: 199.8 kB / 483.3 MB, free: 21.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006712/0.4617, allocations: 135 kB / 483.5 MB, free: 21.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005134/0.4669, allocations: 5.158 MB / 488.6 MB, free: 17.84 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002858/0.4672, allocations: 0.8855 MB / 489.5 MB, free: 17.13 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004631/0.4677, allocations: 127.2 kB / 489.6 MB, free: 17.08 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000283/0.468, allocations: 252.1 kB / 489.9 MB, free: 16.91 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.468, allocations: 0 / 489.9 MB, free: 16.91 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03178/0.4997, allocations: 14.96 MB / 0.493 GB, free: 13.09 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001393/0.4999, allocations: 172.1 kB / 0.4932 GB, free: 12.83 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.562, allocations: 8 kB / 0.4932 GB, free: 12.82 MB / 366.1 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/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)