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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0009719/0.0009717, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0009744/0.0009747, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 223.2 MB / 239.9 MB, free: 5.25 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2525/0.2525, allocations: 15.26 MB / 306.2 MB, free: 15.82 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003064/0.0003064, allocations: 8 kB / 371.4 MB, free: 3.898 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3138/0.3141, allocations: 54.61 MB / 426.1 MB, free: 40.18 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65: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.0/package.mo:3011:6-3011:65: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.004191/0.3184, allocations: 3.793 MB / 429.9 MB, free: 39.9 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008208/0.3266, allocations: 6.784 MB / 436.6 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007634/0.3274, allocations: 14.72 kB / 436.7 MB, free: 35.82 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005809/0.328, allocations: 171.8 kB / 436.8 MB, free: 35.72 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001749/0.3298, allocations: 0.6821 MB / 437.5 MB, free: 35.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003152/0.3329, allocations: 0.9059 MB / 438.4 MB, free: 34.71 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009135/0.3338, allocations: 0.6316 MB / 439 MB, free: 34.38 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004525/0.3343, allocations: 419.7 kB / 439.5 MB, free: 34.22 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003301/0.3346, allocations: 329.1 kB / 439.8 MB, free: 34.09 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004611/0.3351, allocations: 427.2 kB / 440.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.484e-05/0.3352, allocations: 41.34 kB / 440.2 MB, free: 33.94 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002634/0.3378, allocations: 0.9293 MB / 441.2 MB, free: 33.77 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001619/0.338, allocations: 153.1 kB / 441.3 MB, free: 33.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001484/0.3382, allocations: 159.5 kB / 441.5 MB, free: 33.59 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001475/0.3397, allocations: 1.059 MB / 442.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.726e-06/0.3397, allocations: 0 / 442.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.275e-06/0.3397, allocations: 0 / 442.5 MB, free: 33.25 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.948e-06/0.3397, allocations: 0 / 442.5 MB, free: 33.25 MB / 350.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.001482/0.3412, allocations: 1.011 MB / 443.5 MB, free: 32.54 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.034e-05/0.3412, allocations: 9.188 kB / 443.5 MB, free: 32.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001074/0.3413, allocations: 114 kB / 443.7 MB, free: 32.45 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005451/0.3419, allocations: 154.4 kB / 443.8 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005113/0.3424, allocations: 432.2 kB / 444.2 MB, free: 32.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.291e-05/0.3425, allocations: 76.11 kB / 444.3 MB, free: 32.02 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001057/0.3426, allocations: 77.33 kB / 444.4 MB, free: 31.99 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001059/0.3437, allocations: 0.7654 MB / 445.1 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.3437, allocations: 4 kB / 445.1 MB, free: 31.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.587e-05/0.3438, allocations: 34.56 kB / 445.2 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.694e-05/0.3438, allocations: 15.84 kB / 445.2 MB, free: 31.63 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001129/0.3449, allocations: 0.8745 MB / 446.1 MB, free: 31.38 MB / 350.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.00303/0.348, allocations: 2.543 MB / 448.6 MB, free: 29.73 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001183/0.3492, allocations: 1.008 MB / 449.6 MB, free: 29.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002622/0.3518, allocations: 2.753 MB / 452.4 MB, free: 26.96 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.841e-05/0.3518, allocations: 37.38 kB / 452.4 MB, free: 26.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.525e-06/0.3519, allocations: 0 / 452.4 MB, free: 26.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.002038/0.3539, allocations: 1.228 MB / 453.6 MB, free: 26.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.176e-05/0.3539, allocations: 60.75 kB / 453.7 MB, free: 26.16 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003393/0.3543, allocations: 426 kB / 454.1 MB, free: 25.94 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.604e-05/0.3543, allocations: 29.7 kB / 454.1 MB, free: 25.9 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001534/0.3545, allocations: 365.8 kB / 454.5 MB, free: 25.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.59e-05/0.3546, allocations: 161.3 kB / 454.7 MB, free: 25.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.366e-05/0.3546, allocations: 18.66 kB / 454.7 MB, free: 25.46 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.473e-05/0.3547, allocations: 359.9 kB / 455 MB, free: 25.13 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002173/0.3549, allocations: 145.5 kB / 455.2 MB, free: 25.09 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003076/0.3552, allocations: 391 kB / 455.6 MB, free: 24.73 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002823/0.3555, allocations: 210.8 kB / 455.8 MB, free: 24.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.3555, allocations: 0 / 455.8 MB, free: 24.63 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0007634/0.3563, allocations: 0.6059 MB / 456.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.988e-05/0.3563, allocations: 9.844 kB / 456.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.3563, allocations: 8.938 kB / 456.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3564, allocations: 15.91 kB / 456.4 MB, free: 24.37 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006692/0.357, allocations: 202.8 kB / 456.6 MB, free: 24.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.768e-05/0.3571, allocations: 20.75 kB / 456.6 MB, free: 24.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003149/0.3574, allocations: 47.36 kB / 456.7 MB, free: 24.32 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.864e-05/0.3574, allocations: 35.34 kB / 456.7 MB, free: 24.32 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001909/0.3576, allocations: 200.7 kB / 456.9 MB, free: 24.14 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.45e-05/0.3577, allocations: 51.34 kB / 456.9 MB, free: 24.12 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008027/0.3585, allocations: 0.491 MB / 457.4 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.194e-06/0.3585, allocations: 9.031 kB / 457.4 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.3585, allocations: 0 / 457.4 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.3586, allocations: 4 kB / 457.4 MB, free: 23.89 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006482/0.3592, allocations: 0.6325 MB / 458.1 MB, free: 23.47 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3592, allocations: 1 kB / 458.1 MB, free: 23.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005633/0.3598, allocations: 146.1 kB / 458.2 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.763e-06/0.3598, allocations: 6.234 kB / 458.2 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.941e-05/0.3598, allocations: 15.38 kB / 458.2 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.5e-06/0.3599, allocations: 3.344 kB / 458.2 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3599, allocations: 1.125 kB / 458.2 MB, free: 23.45 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009445/0.3608, allocations: 0.7655 MB / 459 MB, free: 22.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001594/0.361, allocations: 157 kB / 459.2 MB, free: 22.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.587e-05/0.3611, allocations: 13.25 kB / 459.2 MB, free: 22.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.3613, allocations: 19.41 kB / 459.2 MB, free: 22.82 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.384e-05/0.3614, allocations: 39.97 kB / 459.2 MB, free: 22.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.719e-05/0.3614, allocations: 21.56 kB / 459.3 MB, free: 22.81 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002842/0.3617, allocations: 270.5 kB / 459.5 MB, free: 22.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3617, allocations: 0 / 459.5 MB, free: 22.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00106/0.3628, allocations: 318 kB / 459.8 MB, free: 22.6 MB / 350.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 (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.002142/0.3649, allocations: 1.892 MB / 461.7 MB, free: 21.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008026/0.3658, allocations: 435 kB / 462.2 MB, free: 21.08 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3658, allocations: 2.812 kB / 462.2 MB, free: 21.08 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003157/0.3661, allocations: 200.8 kB / 462.3 MB, free: 21.02 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006219/0.3667, allocations: 117.8 kB / 462.5 MB, free: 20.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003277/0.37, allocations: 7.338 MB / 469.8 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003799/0.3704, allocations: 0.9057 MB / 470.7 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004653/0.3709, allocations: 122.3 kB / 470.8 MB, free: 13.47 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3712, allocations: 254 kB / 471.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3712, allocations: 0 / 471.1 MB, free: 13.3 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04313/0.4143, allocations: 14.16 MB / 485.2 MB, free: 9.68 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001366/0.4145, allocations: 162 kB / 485.4 MB, free: 9.438 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.944/2.358, allocations: 0 / 485.4 MB, free: 9.438 MB / 350.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/linux/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) Environment - environmentSimulation: