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.0007696/0.0007693, allocations: 91.84 kB / 15.36 MB, free: 0.7344 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.005298/0.005298, allocations: 169.4 kB / 16.26 MB, free: 6.68 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.285/1.285, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1721/0.1721, allocations: 15.27 MB / 306.7 MB, free: 15.66 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003448/0.0003449, allocations: 8 kB / 372.2 MB, free: 3.52 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.264/0.2643, allocations: 54.63 MB / 426.8 MB, free: 39.86 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.02278/0.2872, allocations: 23.52 MB / 450.3 MB, free: 32.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007281/0.2945, allocations: 7.877 MB / 458.2 MB, free: 27.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005744/0.2951, allocations: 15.62 kB / 458.2 MB, free: 27.81 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004829/0.2956, allocations: 165.6 kB / 458.4 MB, free: 27.73 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0016/0.2972, allocations: 0.5967 MB / 459 MB, free: 27.41 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002395/0.2996, allocations: 0.8953 MB / 459.9 MB, free: 27.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001153/0.3007, allocations: 0.9117 MB / 460.8 MB, free: 26.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005005/0.3013, allocations: 420.8 kB / 461.2 MB, free: 26.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004202/0.3017, allocations: 408.7 kB / 461.6 MB, free: 26.37 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005135/0.3022, allocations: 463.6 kB / 462.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.367e-05/0.3023, allocations: 41.5 kB / 462.1 MB, free: 26.2 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002493/0.3048, allocations: 0.8253 MB / 462.9 MB, free: 25.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000155/0.305, allocations: 159.5 kB / 463.1 MB, free: 25.9 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003561/0.3053, allocations: 400.9 kB / 463.5 MB, free: 25.67 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002675/0.308, allocations: 1.621 MB / 465.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.308, allocations: 0 / 465.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.308, allocations: 1.312 kB / 465.1 MB, free: 25.05 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.013e-05/0.3081, allocations: 0 / 465.1 MB, free: 25.05 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.001639/0.3097, allocations: 1.015 MB / 466.1 MB, free: 24.34 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.887e-05/0.3098, allocations: 9.625 kB / 466.1 MB, free: 24.34 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001086/0.3099, allocations: 113.7 kB / 466.2 MB, free: 24.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005542/0.3104, allocations: 151.4 kB / 466.4 MB, free: 24.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004963/0.3109, allocations: 457.4 kB / 466.8 MB, free: 23.86 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.17e-05/0.311, allocations: 77.02 kB / 466.9 MB, free: 23.81 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001168/0.3111, allocations: 75.95 kB / 467 MB, free: 23.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001143/0.3123, allocations: 0.7802 MB / 467.8 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.3123, allocations: 7.938 kB / 467.8 MB, free: 23.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.625e-05/0.3124, allocations: 26.34 kB / 467.8 MB, free: 23.43 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.729e-05/0.3124, allocations: 15.69 kB / 467.8 MB, free: 23.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001271/0.3137, allocations: 0.8812 MB / 468.7 MB, free: 23.17 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.003097/0.3168, allocations: 2.569 MB / 471.3 MB, free: 21.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001173/0.318, allocations: 1.016 MB / 472.3 MB, free: 20.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000348/0.3183, allocations: 301.8 kB / 472.6 MB, free: 19.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002542/0.3209, allocations: 2.784 MB / 475.3 MB, free: 17.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.416e-05/0.3209, allocations: 34.56 kB / 475.4 MB, free: 17.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=41): time 1.663e-06/0.3209, allocations: 7.938 kB / 475.4 MB, free: 17.01 MB / 350.1 MB Notification: Performance of matching and sorting (n=46): time 0.001867/0.3228, allocations: 1.235 MB / 476.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.367e-05/0.3228, allocations: 55.41 kB / 476.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003153/0.3232, allocations: 418.7 kB / 477.1 MB, free: 15.37 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.581e-05/0.3232, allocations: 33.7 kB / 477.1 MB, free: 15.33 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001268/0.3233, allocations: 359.6 kB / 477.5 MB, free: 15 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.459e-05/0.3234, allocations: 169.7 kB / 477.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.76e-05/0.3235, allocations: 60.42 kB / 477.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.617e-05/0.3235, allocations: 358.4 kB / 478 MB, free: 14.45 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002141/0.3238, allocations: 155.6 kB / 478.2 MB, free: 14.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000279/0.324, allocations: 385.2 kB / 478.6 MB, free: 13.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005404/0.3246, allocations: 0.5776 MB / 479.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.3246, allocations: 4 kB / 479.2 MB, free: 13.2 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0007261/0.3253, allocations: 0.6184 MB / 479.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.3254, allocations: 14.28 kB / 479.8 MB, free: 12.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.526e-06/0.3254, allocations: 8 kB / 479.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.828e-05/0.3254, allocations: 12 kB / 479.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00061/0.326, allocations: 199.8 kB / 480 MB, free: 12.42 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.321e-05/0.326, allocations: 15.28 kB / 480 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003078/0.3264, allocations: 43.17 kB / 480.1 MB, free: 12.37 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.3264, allocations: 35.47 kB / 480.1 MB, free: 12.34 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.00017/0.3266, allocations: 205.6 kB / 480.3 MB, free: 12.12 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.974e-05/0.3266, allocations: 55.28 kB / 480.3 MB, free: 12.07 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007701/0.3274, allocations: 0.4935 MB / 480.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.3274, allocations: 4 kB / 480.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.3274, allocations: 0 / 480.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.3275, allocations: 0 / 480.8 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005911/0.3281, allocations: 0.6221 MB / 481.5 MB, free: 11.05 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.3281, allocations: 4 kB / 481.5 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005166/0.3286, allocations: 148 kB / 481.6 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.3286, allocations: 7.938 kB / 481.6 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.668e-05/0.3286, allocations: 12 kB / 481.6 MB, free: 10.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.477e-06/0.3286, allocations: 4 kB / 481.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.783e-06/0.3286, allocations: 3.375 kB / 481.6 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007667/0.3294, allocations: 0.7277 MB / 482.4 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001233/0.3296, allocations: 157.2 kB / 482.5 MB, free: 10.02 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.883e-05/0.3296, allocations: 15.94 kB / 482.5 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002219/0.3298, allocations: 23.47 kB / 482.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.224e-05/0.3299, allocations: 32.72 kB / 482.6 MB, free: 9.969 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.3299, allocations: 20 kB / 482.6 MB, free: 9.949 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002062/0.3302, allocations: 279 kB / 482.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3302, allocations: 0 / 482.9 MB, free: 9.715 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000815/0.331, allocations: 331.5 kB / 483.2 MB, free: 9.398 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 (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.001446/0.3324, allocations: 1.59 MB / 484.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005765/0.333, allocations: 436.2 kB / 485.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.333, allocations: 0 / 485.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000241/0.3333, allocations: 209.1 kB / 485.4 MB, free: 7.293 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007303/0.334, allocations: 129 kB / 485.6 MB, free: 7.191 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00467/0.3387, allocations: 5.22 MB / 490.8 MB, free: 2.062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002766/0.339, allocations: 0.887 MB / 491.7 MB, free: 1.223 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000435/0.3394, allocations: 126.4 kB / 491.8 MB, free: 1.113 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002721/0.3397, allocations: 254.2 kB / 492 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of SimCode: time 5.71e-07/0.3397, allocations: 0 / 492 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02728/0.367, allocations: 14.56 MB / 0.4947 GB, free: 4.859 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002241/0.3673, allocations: 179.9 kB / 0.4949 GB, free: 4.598 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.039/2.407, allocations: 0 / 0.4949 GB, free: 4.598 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)