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.0008103/0.0008104, allocations: 87.42 kB / 15.07 MB, free: 1.082 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.0009337/0.0009337, allocations: 168.7 kB / 15.95 MB, free: 200 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.28/1.28, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1823/0.1823, allocations: 15.25 MB / 306.3 MB, free: 15.8 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002879/0.0002879, allocations: 8 kB / 371.6 MB, free: 3.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.255/0.2553, allocations: 54.61 MB / 426.2 MB, free: 39.78 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.003855/0.2592, allocations: 4.132 MB / 430.3 MB, free: 39.5 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006229/0.2655, allocations: 7.288 MB / 437.6 MB, free: 34.94 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00036/0.2658, allocations: 13.94 kB / 437.6 MB, free: 34.93 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004048/0.2663, allocations: 173 kB / 437.8 MB, free: 34.84 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001193/0.2675, allocations: 0.583 MB / 438.4 MB, free: 34.47 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001683/0.2692, allocations: 0.8353 MB / 439.2 MB, free: 33.99 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000717/0.2699, allocations: 0.859 MB / 440.1 MB, free: 33.56 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004314/0.2703, allocations: 413.9 kB / 440.5 MB, free: 33.41 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003371/0.2707, allocations: 350.7 kB / 440.8 MB, free: 33.29 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004568/0.2711, allocations: 451.8 kB / 441.2 MB, free: 33.13 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 7.554e-05/0.2712, allocations: 40.72 kB / 441.3 MB, free: 33.13 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001905/0.2731, allocations: 0.7703 MB / 442.1 MB, free: 32.95 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001526/0.2733, allocations: 151.1 kB / 442.2 MB, free: 32.87 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001334/0.2734, allocations: 161.8 kB / 442.4 MB, free: 32.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001173/0.2746, allocations: 1.298 MB / 443.7 MB, free: 32.29 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.2746, allocations: 0 / 443.7 MB, free: 32.29 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.754e-06/0.2746, allocations: 0 / 443.7 MB, free: 32.29 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.846e-06/0.2747, allocations: 0 / 443.7 MB, free: 32.29 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.001334/0.276, allocations: 1.012 MB / 444.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.699e-05/0.276, allocations: 10.44 kB / 444.7 MB, free: 31.57 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001009/0.2761, allocations: 113.4 kB / 444.8 MB, free: 31.49 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005421/0.2767, allocations: 156.2 kB / 444.9 MB, free: 31.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004917/0.2772, allocations: 443 kB / 445.4 MB, free: 31.11 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.133e-05/0.2773, allocations: 79.72 kB / 445.5 MB, free: 31.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.168e-05/0.2774, allocations: 76.47 kB / 445.5 MB, free: 31.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009791/0.2784, allocations: 0.7663 MB / 446.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2784, allocations: 4 kB / 446.3 MB, free: 30.7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.83e-05/0.2785, allocations: 29.53 kB / 446.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.497e-05/0.2785, allocations: 15.81 kB / 446.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001089/0.2796, allocations: 0.8828 MB / 447.2 MB, free: 30.41 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.002912/0.2825, allocations: 2.567 MB / 449.8 MB, free: 28.76 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.2837, allocations: 1.006 MB / 450.8 MB, free: 28.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.284, allocations: 301.2 kB / 451.1 MB, free: 28.12 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002486/0.2865, allocations: 2.781 MB / 453.9 MB, free: 25.86 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.737e-05/0.2866, allocations: 37.5 kB / 453.9 MB, free: 25.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 2.415e-06/0.2866, allocations: 0 / 453.9 MB, free: 25.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.00192/0.2885, allocations: 1.233 MB / 455.1 MB, free: 25.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.563e-05/0.2885, allocations: 58.45 kB / 455.2 MB, free: 25.06 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003193/0.2889, allocations: 415.4 kB / 455.6 MB, free: 24.85 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.438e-05/0.2889, allocations: 36.67 kB / 455.6 MB, free: 24.81 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001407/0.2891, allocations: 364.8 kB / 456 MB, free: 24.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.853e-05/0.2891, allocations: 160.3 kB / 456.2 MB, free: 24.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.38e-05/0.2892, allocations: 14.75 kB / 456.2 MB, free: 24.38 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.245e-05/0.2892, allocations: 361.1 kB / 456.5 MB, free: 24.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002145/0.2895, allocations: 146.7 kB / 456.7 MB, free: 24 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002849/0.2898, allocations: 387.4 kB / 457 MB, free: 23.65 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002779/0.29, allocations: 208.8 kB / 457.3 MB, free: 23.55 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2901, allocations: 3.094 kB / 457.3 MB, free: 23.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0007619/0.2908, allocations: 0.6075 MB / 457.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.2909, allocations: 10.22 kB / 457.9 MB, free: 23.29 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.746e-06/0.2909, allocations: 13.22 kB / 457.9 MB, free: 23.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.117e-05/0.2909, allocations: 12.09 kB / 457.9 MB, free: 23.28 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000649/0.2916, allocations: 198.6 kB / 458.1 MB, free: 23.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.769e-05/0.2916, allocations: 20.09 kB / 458.1 MB, free: 23.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.2919, allocations: 46.25 kB / 458.2 MB, free: 23.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.589e-05/0.2919, allocations: 35.52 kB / 458.2 MB, free: 23.23 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.0001765/0.2921, allocations: 201.3 kB / 458.4 MB, free: 23.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.152e-05/0.2922, allocations: 51.38 kB / 458.4 MB, free: 23.04 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008322/0.293, allocations: 0.4944 MB / 458.9 MB, free: 22.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.293, allocations: 10.06 kB / 458.9 MB, free: 22.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.293, allocations: 0 / 458.9 MB, free: 22.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.923e-06/0.2931, allocations: 2.766 kB / 458.9 MB, free: 22.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006524/0.2937, allocations: 0.6284 MB / 459.6 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.2937, allocations: 1.344 kB / 459.6 MB, free: 22.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005303/0.2943, allocations: 146.7 kB / 459.7 MB, free: 22.37 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.815e-06/0.2943, allocations: 3.125 kB / 459.7 MB, free: 22.37 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.611e-05/0.2943, allocations: 18.33 kB / 459.7 MB, free: 22.36 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.701e-06/0.2943, allocations: 3.375 kB / 459.7 MB, free: 22.36 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.2943, allocations: 1.312 kB / 459.7 MB, free: 22.36 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008888/0.2952, allocations: 0.72 MB / 460.5 MB, free: 21.97 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.2954, allocations: 162.5 kB / 460.6 MB, free: 21.83 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.292e-05/0.2955, allocations: 11.44 kB / 460.6 MB, free: 21.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002107/0.2957, allocations: 16.12 kB / 460.6 MB, free: 21.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.27e-05/0.2958, allocations: 39.66 kB / 460.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.486e-05/0.2958, allocations: 22.12 kB / 460.7 MB, free: 21.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002607/0.2961, allocations: 274.1 kB / 461 MB, free: 21.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2961, allocations: 1.062 kB / 461 MB, free: 21.66 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008895/0.297, allocations: 323.4 kB / 461.3 MB, free: 21.59 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.001678/0.2987, allocations: 1.573 MB / 462.9 MB, free: 20.53 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006472/0.2993, allocations: 434.5 kB / 463.3 MB, free: 20.39 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.2993, allocations: 4.062 kB / 463.3 MB, free: 20.39 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002724/0.2996, allocations: 205.8 kB / 463.5 MB, free: 20.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006559/0.3003, allocations: 114.7 kB / 463.6 MB, free: 20.29 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0043/0.3046, allocations: 3.36 MB / 467 MB, free: 18.29 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003591/0.305, allocations: 0.8892 MB / 467.9 MB, free: 17.58 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004783/0.3055, allocations: 122.5 kB / 468 MB, free: 17.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003154/0.3058, allocations: 253.2 kB / 468.2 MB, free: 17.36 MB / 350.1 MB Notification: Performance of SimCode: time 3.6e-07/0.3058, allocations: 0 / 468.2 MB, free: 17.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02878/0.3346, allocations: 14.33 MB / 482.5 MB, free: 12.61 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001189/0.3347, allocations: 161.9 kB / 482.7 MB, free: 12.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.927/2.261, allocations: 0 / 482.7 MB, free: 12.37 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: