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.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.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.0009479/0.000948, allocations: 99.7 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.0009656/0.0009657, allocations: 177.3 kB / 15.95 MB, free: 216 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.421/1.421, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2483/0.2483, allocations: 15.26 MB / 306.2 MB, free: 15.66 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003313/0.0003313, allocations: 8 kB / 371.5 MB, free: 3.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3082/0.3085, allocations: 54.62 MB / 426.1 MB, free: 39.88 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.SimpleReaction2): time 0.004452/0.313, allocations: 4.544 MB / 430.6 MB, free: 39.54 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.3234, allocations: 9.824 MB / 440.4 MB, free: 32.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001177/0.3247, allocations: 18.09 kB / 440.5 MB, free: 32.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008429/0.3255, allocations: 248.4 kB / 440.7 MB, free: 32.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003941/0.3295, allocations: 0.9592 MB / 441.7 MB, free: 31.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004898/0.3344, allocations: 1.336 MB / 443 MB, free: 31.17 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00174/0.3361, allocations: 0.8443 MB / 443.8 MB, free: 30.71 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006552/0.3368, allocations: 0.5326 MB / 444.4 MB, free: 30.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005601/0.3374, allocations: 450.2 kB / 444.8 MB, free: 30.32 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006433/0.338, allocations: 0.5822 MB / 445.4 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.815e-05/0.3381, allocations: 55.19 kB / 445.5 MB, free: 30.11 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004671/0.3428, allocations: 1.38 MB / 446.8 MB, free: 29.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001997/0.343, allocations: 201.3 kB / 447 MB, free: 29.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002592/0.3433, allocations: 198 kB / 447.2 MB, free: 29.64 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002701/0.346, allocations: 1.5 MB / 448.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.346, allocations: 0 / 448.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.346, allocations: 2.594 kB / 448.7 MB, free: 29.14 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.3461, allocations: 0 / 448.7 MB, free: 29.14 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.002049/0.3481, allocations: 1.266 MB / 450 MB, free: 28.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.356e-05/0.3482, allocations: 11.78 kB / 450 MB, free: 28.3 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.3483, allocations: 141.9 kB / 450.1 MB, free: 28.21 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007779/0.3491, allocations: 209.5 kB / 450.3 MB, free: 28.14 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005896/0.3497, allocations: 0.5104 MB / 450.9 MB, free: 27.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.053e-05/0.3498, allocations: 100.3 kB / 451 MB, free: 27.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001176/0.3499, allocations: 93.77 kB / 451 MB, free: 27.66 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00141/0.3513, allocations: 1.032 MB / 452.1 MB, free: 27.23 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.438e-05/0.3514, allocations: 3.281 kB / 452.1 MB, free: 27.23 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.3515, allocations: 38.64 kB / 452.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.187e-05/0.3515, allocations: 22.09 kB / 452.1 MB, free: 27.2 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001706/0.3532, allocations: 1.269 MB / 453.4 MB, free: 26.84 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.004185/0.3574, allocations: 3.423 MB / 456.8 MB, free: 24.66 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001942/0.3594, allocations: 1.518 MB / 458.4 MB, free: 23.94 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004303/0.3637, allocations: 3.92 MB / 462.3 MB, free: 20.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.557e-05/0.3637, allocations: 38.44 kB / 462.3 MB, free: 20.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=56): time 2.685e-06/0.3637, allocations: 3.984 kB / 462.3 MB, free: 20.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=63): time 0.00353/0.3673, allocations: 1.657 MB / 464 MB, free: 19.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.338e-05/0.3673, allocations: 58.56 kB / 464 MB, free: 19.74 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006347/0.368, allocations: 0.5053 MB / 464.5 MB, free: 19.5 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.642e-05/0.368, allocations: 36.42 kB / 464.6 MB, free: 19.46 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002555/0.3683, allocations: 466 kB / 465 MB, free: 19.09 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001513/0.3684, allocations: 222 kB / 465.2 MB, free: 18.92 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.342e-05/0.3685, allocations: 19.31 kB / 465.3 MB, free: 18.9 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001127/0.3686, allocations: 375.1 kB / 465.6 MB, free: 18.56 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003619/0.369, allocations: 206.7 kB / 465.8 MB, free: 18.5 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005623/0.3695, allocations: 0.5248 MB / 466.4 MB, free: 18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004702/0.37, allocations: 295 kB / 466.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.612e-06/0.37, allocations: 3.094 kB / 466.6 MB, free: 17.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.001354/0.3714, allocations: 0.8409 MB / 467.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.642e-05/0.3714, allocations: 13.61 kB / 467.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.028e-05/0.3715, allocations: 12.3 kB / 467.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.548e-05/0.3715, allocations: 17.47 kB / 467.5 MB, free: 17.51 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009808/0.3725, allocations: 274 kB / 467.8 MB, free: 17.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.974e-05/0.3725, allocations: 23.06 kB / 467.8 MB, free: 17.47 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005332/0.3731, allocations: 53.95 kB / 467.9 MB, free: 17.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.624e-05/0.3732, allocations: 54.41 kB / 467.9 MB, free: 17.44 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003005/0.3735, allocations: 232.6 kB / 468.1 MB, free: 17.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.643e-05/0.3736, allocations: 65.81 kB / 468.2 MB, free: 17.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001356/0.3749, allocations: 0.6911 MB / 468.9 MB, free: 16.9 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.3749, allocations: 6.219 kB / 468.9 MB, free: 16.9 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.375, allocations: 0.7031 kB / 468.9 MB, free: 16.9 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.375, allocations: 4.406 kB / 468.9 MB, free: 16.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001075/0.3761, allocations: 0.7696 MB / 469.7 MB, free: 16.44 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.019e-06/0.3761, allocations: 1.375 kB / 469.7 MB, free: 16.44 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007302/0.3768, allocations: 175.8 kB / 469.9 MB, free: 16.42 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.426e-06/0.3768, allocations: 2.312 kB / 469.9 MB, free: 16.42 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.276e-05/0.3769, allocations: 28.3 kB / 469.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.923e-06/0.3769, allocations: 6.031 kB / 469.9 MB, free: 16.41 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.3769, allocations: 3.938 kB / 469.9 MB, free: 16.4 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001349/0.3783, allocations: 0.9846 MB / 470.9 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000268/0.3785, allocations: 187.3 kB / 471.1 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.3787, allocations: 17.98 kB / 471.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004798/0.3792, allocations: 21.45 kB / 471.1 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.3793, allocations: 58.45 kB / 471.2 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.712e-05/0.3794, allocations: 25.81 kB / 471.2 MB, free: 15.65 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0006144/0.38, allocations: 336.2 kB / 471.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 2e-07/0.38, allocations: 7.938 kB / 471.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00218/0.3822, allocations: 464.6 kB / 472 MB, free: 15.38 MB / 350.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 (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.003167/0.3854, allocations: 2.262 MB / 474.2 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.387, allocations: 0.5998 MB / 474.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.387, allocations: 1 kB / 474.8 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005828/0.3876, allocations: 285.9 kB / 475.1 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001061/0.3886, allocations: 144.9 kB / 475.3 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008168/0.3968, allocations: 10.1 MB / 485.4 MB, free: 4.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008274/0.3977, allocations: 0.9747 MB / 486.3 MB, free: 3.449 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0008418/0.3986, allocations: 173.8 kB / 486.5 MB, free: 3.383 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004327/0.399, allocations: 345.9 kB / 486.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of SimCode: time 1.272e-06/0.399, allocations: 0 / 486.8 MB, free: 3.152 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03742/0.4365, allocations: 19.28 MB / 0.4943 GB, free: 4.695 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001704/0.4367, allocations: 152 kB / 0.4944 GB, free: 4.461 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.102/2.539, allocations: 4.062 kB / 0.4944 GB, free: 4.457 MB / 366.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/linux/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) Environment - environmentSimulation: