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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.1781/0.1781, allocations: 15.27 MB / 30.21 MB, free: 3.297 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001937/0.001937, allocations: 185.2 kB / 35.29 MB, free: 2.375 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.618/1.618, allocations: 223.2 MB / 263.4 MB, free: 6.879 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 94.56 kB / 318.8 MB, free: 3.855 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.0003407/0.0003406, allocations: 7.469 kB / 384 MB, free: 50.42 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1262/0.1265, allocations: 54.64 MB / 438.6 MB, free: 400 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4255/0.5521, allocations: 99.87 MB / 0.5259 GB, free: 15.48 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002277/0.5523, allocations: 70.19 kB / 0.526 GB, free: 15.48 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:4721:7-4721:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System solution.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Solution. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System A.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$A. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System B.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$B. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo:3011:6-3011:65:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System C.system declared as 'outer '. The existing 'inner' components are: There are no 'inner' components defined in the model in any of the parent scopes of 'outer' component's scope: Chemical.Components.Substance$C. Check if you have not misspelled the 'outer' component name. Please declare an 'inner' component with the same name in the top scope. Continuing flattening by only considering the 'outer' component declaration. Notification: Performance of FrontEnd - DAE generated: time 0.07703/0.6294, allocations: 34.46 MB / 0.5596 GB, free: 25.47 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.823e-06/0.6294, allocations: 0 / 0.5596 GB, free: 25.47 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.34e-05/0.6295, allocations: 22.88 kB / 0.5596 GB, free: 25.47 MB / 394.7 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.00237/0.6319, allocations: 1.382 MB / 0.561 GB, free: 24.5 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.6319, allocations: 11.66 kB / 0.561 GB, free: 24.5 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001348/0.6321, allocations: 136.5 kB / 0.5611 GB, free: 24.44 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007673/0.6328, allocations: 253.9 kB / 0.5614 GB, free: 24.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00112/0.634, allocations: 0.7549 MB / 0.5621 GB, free: 23.91 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.04e-05/0.6341, allocations: 91.2 kB / 0.5622 GB, free: 23.87 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000121/0.6342, allocations: 98.19 kB / 0.5623 GB, free: 23.87 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001659/0.6358, allocations: 1.517 MB / 0.5638 GB, free: 23.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.938e-05/0.6359, allocations: 0 / 0.5638 GB, free: 23.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.494e-05/0.636, allocations: 33.56 kB / 0.5638 GB, free: 23.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.636, allocations: 23.38 kB / 0.5638 GB, free: 23.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002079/0.6381, allocations: 2.165 MB / 0.5659 GB, free: 23.2 MB / 394.7 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.005509/0.6436, allocations: 4.808 MB / 0.5706 GB, free: 21.11 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002195/0.6458, allocations: 2.16 MB / 0.5727 GB, free: 20.54 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003004/0.6461, allocations: 249.7 kB / 0.573 GB, free: 20.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.44e-05/0.6461, allocations: 47.12 kB / 0.573 GB, free: 20.46 MB / 394.7 MB Notification: Performance of pre-optimization done (n=98): time 3.246e-06/0.6462, allocations: 0 / 0.573 GB, free: 20.46 MB / 394.7 MB Notification: Performance of matching and sorting (n=122): time 0.007711/0.6539, allocations: 5.472 MB / 0.5784 GB, free: 19.3 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.168e-05/0.6539, allocations: 68.12 kB / 0.5784 GB, free: 19.23 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005612/0.6545, allocations: 0.5602 MB / 0.579 GB, free: 19.05 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.148e-05/0.6546, allocations: 45.33 kB / 0.579 GB, free: 19.02 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002391/0.6548, allocations: 395.5 kB / 0.5794 GB, free: 18.79 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002265/0.6551, allocations: 419.7 kB / 0.5798 GB, free: 18.49 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.274e-05/0.6551, allocations: 20.72 kB / 0.5798 GB, free: 18.49 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001806/0.6553, allocations: 395.3 kB / 0.5802 GB, free: 18.15 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007284/0.656, allocations: 0.7004 MB / 0.5809 GB, free: 18.07 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007888/0.6568, allocations: 0.8331 MB / 0.5817 GB, free: 17.86 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008044/0.6577, allocations: 0.7706 MB / 0.5824 GB, free: 17.51 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.065e-06/0.6577, allocations: 3.953 kB / 0.5825 GB, free: 17.51 MB / 394.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.001979/0.6596, allocations: 1.84 MB / 0.5842 GB, free: 16.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.265e-05/0.6597, allocations: 6.5 kB / 0.5843 GB, free: 16.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.6597, allocations: 3.875 kB / 0.5843 GB, free: 16.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003899/0.6601, allocations: 142.6 kB / 0.5844 GB, free: 16.48 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001291/0.6614, allocations: 283.3 kB / 0.5847 GB, free: 16.4 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000622/0.662, allocations: 0.787 MB / 0.5854 GB, free: 15.73 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006544/0.6627, allocations: 47.02 kB / 0.5855 GB, free: 15.7 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.74e-05/0.6628, allocations: 46.84 kB / 0.5855 GB, free: 15.68 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (132): * Single equations (assignments): 131 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of prepare postOptimizeDAE: time 0.0004224/0.6632, allocations: 256.1 kB / 0.5858 GB, free: 15.47 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001151/0.6633, allocations: 89.25 kB / 0.5859 GB, free: 15.43 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002345/0.6657, allocations: 1.98 MB / 0.5878 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.437e-06/0.6657, allocations: 11.72 kB / 0.5878 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.205e-06/0.6657, allocations: 0 / 0.5878 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.6657, allocations: 15.83 kB / 0.5878 GB, free: 14.31 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004774/0.6705, allocations: 4.007 MB / 0.5917 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.347e-06/0.6705, allocations: 3.875 kB / 0.5917 GB, free: 11.85 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001257/0.6718, allocations: 274.3 kB / 0.592 GB, free: 11.78 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003782/0.6722, allocations: 150.1 kB / 0.5921 GB, free: 11.71 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-05/0.6723, allocations: 31.73 kB / 0.5922 GB, free: 11.69 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006642/0.673, allocations: 0.7812 MB / 0.5929 GB, free: 10.95 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.145e-06/0.673, allocations: 15.98 kB / 0.5929 GB, free: 10.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003857/0.6769, allocations: 3.202 MB / 0.5961 GB, free: 7.559 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005789/0.6775, allocations: 255.9 kB / 0.5963 GB, free: 7.289 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002105/0.6777, allocations: 32 kB / 0.5963 GB, free: 7.258 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006966/0.6784, allocations: 43.89 kB / 0.5964 GB, free: 7.215 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001672/0.6786, allocations: 96.77 kB / 0.5965 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.632e-05/0.6787, allocations: 47.98 kB / 0.5965 GB, free: 7.074 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0006962/0.6794, allocations: 459 kB / 0.597 GB, free: 6.629 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.6794, allocations: 0 / 0.597 GB, free: 6.629 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001914/0.6813, allocations: 0.5659 MB / 0.5975 GB, free: 6.062 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 17 * 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 (131): * Single equations (assignments): 130 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.006816/0.6881, allocations: 5.433 MB / 0.6028 GB, free: 0.5625 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002493/0.6906, allocations: 1.648 MB / 0.6044 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/0.6907, allocations: 0.6875 kB / 0.6044 GB, free: 14.91 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001191/0.6919, allocations: 0.8878 MB / 0.6053 GB, free: 14.02 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001471/0.6934, allocations: 280.5 kB / 0.6056 GB, free: 13.76 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006622/0.7, allocations: 5.396 MB / 0.6108 GB, free: 8.18 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007607/0.7008, allocations: 1.068 MB / 0.6119 GB, free: 7.082 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007801/0.7016, allocations: 167.6 kB / 0.612 GB, free: 6.914 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000659/0.7022, allocations: 419.3 kB / 0.6124 GB, free: 6.504 MB / 410.7 MB Notification: Performance of SimCode: time 1.002e-06/0.7023, allocations: 0 / 0.6124 GB, free: 6.504 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06038/0.7626, allocations: 29.61 MB / 0.6414 GB, free: 9.184 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001959/0.7629, allocations: 186.7 kB / 0.6415 GB, free: 8.941 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.953/3.716, allocations: 8.062 kB / 0.6415 GB, free: 8.934 MB / 442.7 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)