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: "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",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.001303/0.001303, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001403/0.001403, allocations: 194.1 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.303/1.303, allocations: 222.9 MB / 239.9 MB, free: 4.527 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1863/0.1863, allocations: 15.32 MB / 305.4 MB, free: 15.3 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 55.91 kB / 369.9 MB, free: 4.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09536/0.09658, allocations: 53.62 MB / 423.6 MB, free: 14.56 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.SimpleReaction2): time 0.3369/0.4335, allocations: 24.85 MB / 448.4 MB, free: 39.21 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.009173/0.4427, allocations: 11.48 MB / 459.9 MB, free: 33.68 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008137/0.4435, allocations: 16.84 kB / 459.9 MB, free: 33.67 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006516/0.4442, allocations: 243.8 kB / 460.1 MB, free: 33.55 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002241/0.4464, allocations: 0.8684 MB / 461 MB, free: 33.1 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003364/0.4498, allocations: 1.339 MB / 462.3 MB, free: 32.56 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001206/0.451, allocations: 1.254 MB / 463.6 MB, free: 32.24 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005867/0.4516, allocations: 0.697 MB / 464.3 MB, free: 32.09 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004486/0.4521, allocations: 0.6158 MB / 464.9 MB, free: 31.86 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005636/0.4527, allocations: 0.6786 MB / 465.6 MB, free: 31.59 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001118/0.4528, allocations: 107.5 kB / 465.7 MB, free: 31.59 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003156/0.4559, allocations: 1.312 MB / 467 MB, free: 31.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.4561, allocations: 270 kB / 467.3 MB, free: 31.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004101/0.4566, allocations: 0.5586 MB / 467.8 MB, free: 30.76 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00371/0.4603, allocations: 2.384 MB / 470.2 MB, free: 29.75 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.4603, allocations: 0.75 kB / 470.2 MB, free: 29.75 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.4603, allocations: 0 / 470.2 MB, free: 29.75 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.874e-05/0.4603, allocations: 5 kB / 470.2 MB, free: 29.75 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002334/0.4627, allocations: 1.492 MB / 471.7 MB, free: 28.79 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.287e-05/0.4627, allocations: 9.875 kB / 471.7 MB, free: 28.79 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001295/0.4629, allocations: 136.2 kB / 471.9 MB, free: 28.7 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008644/0.4637, allocations: 218.9 kB / 472.1 MB, free: 28.63 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006958/0.4644, allocations: 0.5531 MB / 472.6 MB, free: 28.23 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.107e-05/0.4645, allocations: 95.17 kB / 472.7 MB, free: 28.18 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001395/0.4647, allocations: 94.66 kB / 472.8 MB, free: 28.14 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00148/0.4662, allocations: 1.05 MB / 473.9 MB, free: 27.71 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.061e-05/0.4662, allocations: 4 kB / 473.9 MB, free: 27.71 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.426e-05/0.4663, allocations: 36.25 kB / 473.9 MB, free: 27.68 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.647e-05/0.4663, allocations: 20.62 kB / 473.9 MB, free: 27.68 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001682/0.468, allocations: 1.279 MB / 475.2 MB, free: 27.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.004391/0.4724, allocations: 3.467 MB / 478.7 MB, free: 25.15 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001991/0.4744, allocations: 1.523 MB / 480.2 MB, free: 24.43 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000543/0.475, allocations: 444.9 kB / 480.6 MB, free: 24.24 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00417/0.4791, allocations: 4.055 MB / 484.7 MB, free: 21.01 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.877e-05/0.4792, allocations: 41.31 kB / 484.7 MB, free: 20.96 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 2.354e-06/0.4792, allocations: 0 / 484.7 MB, free: 20.96 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.00296/0.4821, allocations: 1.674 MB / 486.4 MB, free: 20.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.778e-05/0.4822, allocations: 63.06 kB / 486.5 MB, free: 20.01 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004857/0.4827, allocations: 0.5076 MB / 487 MB, free: 19.77 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.4827, allocations: 35.8 kB / 487 MB, free: 19.73 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001818/0.4829, allocations: 458.8 kB / 487.4 MB, free: 19.37 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000113/0.483, allocations: 221.8 kB / 487.7 MB, free: 19.19 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002085/0.4832, allocations: 173.2 kB / 487.8 MB, free: 19.11 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.448e-05/0.4833, allocations: 374.2 kB / 488.2 MB, free: 18.77 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003596/0.4837, allocations: 214.8 kB / 488.4 MB, free: 18.7 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004777/0.4842, allocations: 0.5311 MB / 488.9 MB, free: 18.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008694/0.4851, allocations: 0.8134 MB / 489.8 MB, free: 17.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.27e-06/0.4851, allocations: 3.344 kB / 489.8 MB, free: 17.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001234/0.4863, allocations: 0.8479 MB / 490.6 MB, free: 17.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.217e-05/0.4863, allocations: 9.625 kB / 490.6 MB, free: 17.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.735e-05/0.4864, allocations: 19.78 kB / 490.6 MB, free: 17.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.443e-05/0.4864, allocations: 17.16 kB / 490.6 MB, free: 17.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009272/0.4873, allocations: 265.5 kB / 490.9 MB, free: 17.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.223e-05/0.4874, allocations: 22.95 kB / 490.9 MB, free: 17.14 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005481/0.4879, allocations: 58.06 kB / 491 MB, free: 17.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.421e-05/0.488, allocations: 51.28 kB / 491 MB, free: 17.11 MB / 366.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.0002602/0.4883, allocations: 231.8 kB / 491.3 MB, free: 16.92 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.804e-05/0.4884, allocations: 67.38 kB / 491.3 MB, free: 16.89 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001278/0.4897, allocations: 0.6968 MB / 492 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.4897, allocations: 7.062 kB / 492 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.991e-06/0.4897, allocations: 0 / 492 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.759e-06/0.4897, allocations: 3.703 kB / 492 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009711/0.4907, allocations: 0.7728 MB / 492.8 MB, free: 16.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.118e-06/0.4907, allocations: 1.188 kB / 492.8 MB, free: 16.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000713/0.4914, allocations: 172 kB / 493 MB, free: 16.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.362e-06/0.4914, allocations: 3.625 kB / 493 MB, free: 16.09 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.244e-05/0.4915, allocations: 28.44 kB / 493 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.33e-06/0.4915, allocations: 3.297 kB / 493 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.4915, allocations: 9.625 kB / 493 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.4926, allocations: 0.9399 MB / 494 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002234/0.4928, allocations: 193.7 kB / 494.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.304e-05/0.4929, allocations: 24.42 kB / 494.2 MB, free: 15.42 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003008/0.4932, allocations: 29.94 kB / 494.2 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001078/0.4933, allocations: 50.31 kB / 494.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.032e-05/0.4934, allocations: 24.34 kB / 494.3 MB, free: 15.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002934/0.4937, allocations: 341.4 kB / 494.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4937, allocations: 3.656 kB / 494.6 MB, free: 15.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001232/0.4949, allocations: 473 kB / 495.1 MB, free: 15.12 MB / 366.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.002006/0.4969, allocations: 1.97 MB / 497 MB, free: 13.92 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00111/0.4981, allocations: 0.6468 MB / 497.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.4981, allocations: 0 / 497.7 MB, free: 13.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003176/0.4984, allocations: 287.4 kB / 498 MB, free: 13.6 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007709/0.4992, allocations: 168.8 kB / 498.1 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006235/0.5054, allocations: 6.643 MB / 0.4929 GB, free: 9.047 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003355/0.5058, allocations: 0.9574 MB / 0.4939 GB, free: 8.328 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006101/0.5064, allocations: 175.6 kB / 0.4941 GB, free: 8.262 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003599/0.5067, allocations: 350.8 kB / 0.4944 GB, free: 8.027 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.5068, allocations: 0 / 0.4944 GB, free: 8.027 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0343/0.5411, allocations: 20.31 MB / 0.5142 GB, free: 7.875 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002263/0.5413, allocations: 177.3 kB / 0.5144 GB, free: 7.617 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.211/2.752, allocations: 0 / 0.5144 GB, free: 7.617 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_SimpleReaction2_fmu --startTime=0 --stopTime=0.0001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)