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/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.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/Chemical 1.4.0-master/package.mo): time 0.1125/0.1125, 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.001014/0.001014, allocations: 182.9 kB / 35.3 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.49/1.49, allocations: 223.2 MB / 263.4 MB, free: 7.004 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.0009947/0.0009947, allocations: 100.2 kB / 318.8 MB, free: 3.852 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004246/0.0004247, allocations: 12.09 kB / 384 MB, free: 50.53 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1021/0.1026, allocations: 54.64 MB / 438.6 MB, free: 396 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4307/0.5333, allocations: 99.86 MB / 0.5259 GB, free: 15.55 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002171/0.5336, allocations: 68.83 kB / 0.5259 GB, free: 15.55 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. Notification: Performance of FrontEnd - DAE generated: time 0.06065/0.5943, allocations: 24.81 MB / 0.5502 GB, free: 28.78 MB / 394.7 MB Notification: Performance of FrontEnd: time 3.277e-06/0.5944, allocations: 3.875 kB / 0.5502 GB, free: 28.78 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.484e-05/0.5944, allocations: 19.45 kB / 0.5502 GB, free: 28.78 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.002254/0.5967, allocations: 1.09 MB / 0.5513 GB, free: 27.98 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.119e-05/0.5968, allocations: 7.938 kB / 0.5513 GB, free: 27.98 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001528/0.5969, allocations: 113.1 kB / 0.5514 GB, free: 27.93 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006369/0.5976, allocations: 181.8 kB / 0.5515 GB, free: 27.85 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009635/0.5985, allocations: 0.5958 MB / 0.5521 GB, free: 27.48 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.204e-05/0.5986, allocations: 76.3 kB / 0.5522 GB, free: 27.45 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001092/0.5988, allocations: 83.11 kB / 0.5523 GB, free: 27.43 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001275/0.6, allocations: 1.077 MB / 0.5533 GB, free: 27.18 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.584e-05/0.6001, allocations: 3.938 kB / 0.5533 GB, free: 27.17 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.556e-05/0.6001, allocations: 28.81 kB / 0.5534 GB, free: 27.17 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.097e-05/0.6001, allocations: 15.22 kB / 0.5534 GB, free: 27.17 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001514/0.6017, allocations: 1.543 MB / 0.5549 GB, free: 26.94 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.00467/0.6063, allocations: 3.744 MB / 0.5585 GB, free: 25.29 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00201/0.6084, allocations: 1.661 MB / 0.5602 GB, free: 24.87 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002312/0.6086, allocations: 165.2 kB / 0.5603 GB, free: 24.84 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.203e-05/0.6087, allocations: 38.44 kB / 0.5604 GB, free: 24.8 MB / 394.7 MB Notification: Performance of pre-optimization done (n=70): time 3.096e-06/0.6087, allocations: 0 / 0.5604 GB, free: 24.8 MB / 394.7 MB Notification: Performance of matching and sorting (n=84): time 0.005807/0.6145, allocations: 4.082 MB / 0.5643 GB, free: 23.91 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.336e-05/0.6146, allocations: 60.03 kB / 0.5644 GB, free: 23.84 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004248/0.615, allocations: 444.6 kB / 0.5648 GB, free: 23.68 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 5.036e-05/0.6151, allocations: 43.52 kB / 0.5649 GB, free: 23.64 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.6152, allocations: 310.4 kB / 0.5652 GB, free: 23.46 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001419/0.6154, allocations: 289.4 kB / 0.5654 GB, free: 23.25 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.283e-05/0.6154, allocations: 15.5 kB / 0.5655 GB, free: 23.25 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.6155, allocations: 373.7 kB / 0.5658 GB, free: 22.91 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004971/0.616, allocations: 0.5361 MB / 0.5663 GB, free: 22.84 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005335/0.6166, allocations: 0.6283 MB / 0.5669 GB, free: 22.68 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000557/0.6171, allocations: 0.5809 MB / 0.5675 GB, free: 22.62 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.6172, allocations: 0 / 0.5675 GB, free: 22.62 MB / 394.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001395/0.6186, allocations: 1.388 MB / 0.5689 GB, free: 22.39 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.624e-05/0.6186, allocations: 3.844 kB / 0.5689 GB, free: 22.39 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.235e-06/0.6186, allocations: 8.094 kB / 0.5689 GB, free: 22.38 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002746/0.6189, allocations: 101.2 kB / 0.569 GB, free: 22.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008955/0.6198, allocations: 201.7 kB / 0.5692 GB, free: 22.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004346/0.6202, allocations: 0.703 MB / 0.5699 GB, free: 21.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004281/0.6207, allocations: 34.39 kB / 0.5699 GB, free: 21.75 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.025e-05/0.6207, allocations: 27.14 kB / 0.5699 GB, free: 21.75 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (92): * Single equations (assignments): 91 * 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 4} Notification: Performance of prepare postOptimizeDAE: time 0.0003237/0.6211, allocations: 214.6 kB / 0.5701 GB, free: 21.62 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.685e-05/0.6212, allocations: 62.25 kB / 0.5702 GB, free: 21.59 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.623, allocations: 1.44 MB / 0.5716 GB, free: 21.3 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.623, allocations: 11.78 kB / 0.5716 GB, free: 21.3 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.6231, allocations: 7.969 kB / 0.5716 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.698e-06/0.6231, allocations: 3.984 kB / 0.5716 GB, free: 21.29 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003256/0.6263, allocations: 2.763 MB / 0.5743 GB, free: 20.45 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.6264, allocations: 3.875 kB / 0.5743 GB, free: 20.45 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008667/0.6272, allocations: 191.3 kB / 0.5745 GB, free: 20.41 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002595/0.6275, allocations: 98.52 kB / 0.5746 GB, free: 20.39 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.578e-05/0.6276, allocations: 36.62 kB / 0.5746 GB, free: 20.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004605/0.628, allocations: 0.6852 MB / 0.5753 GB, free: 19.83 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.628, allocations: 3.906 kB / 0.5753 GB, free: 19.83 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002455/0.6305, allocations: 2.299 MB / 0.5775 GB, free: 19.17 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003187/0.6308, allocations: 203.4 kB / 0.5777 GB, free: 18.98 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.841e-05/0.6309, allocations: 23.78 kB / 0.5778 GB, free: 18.96 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003692/0.6313, allocations: 35.67 kB / 0.5778 GB, free: 18.94 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001047/0.6314, allocations: 71.95 kB / 0.5779 GB, free: 18.9 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.683e-05/0.6315, allocations: 34.98 kB / 0.5779 GB, free: 18.89 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0003944/0.6319, allocations: 341.8 kB / 0.5782 GB, free: 18.68 MB / 394.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.6319, allocations: 3.938 kB / 0.5782 GB, free: 18.68 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001096/0.633, allocations: 404 kB / 0.5786 GB, free: 18.57 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * 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 (93): * Single equations (assignments): 92 * 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 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.003651/0.6367, allocations: 3.78 MB / 0.5823 GB, free: 15.95 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001515/0.6382, allocations: 1.231 MB / 0.5835 GB, free: 15.34 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.93e-06/0.6382, allocations: 0 / 0.5835 GB, free: 15.34 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007571/0.639, allocations: 0.6424 MB / 0.5841 GB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001216/0.6402, allocations: 203.5 kB / 0.5843 GB, free: 14.93 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004673/0.6449, allocations: 4 MB / 0.5882 GB, free: 11.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000528/0.6455, allocations: 0.9668 MB / 0.5892 GB, free: 10.83 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0006175/0.6461, allocations: 127.5 kB / 0.5893 GB, free: 10.77 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003682/0.6465, allocations: 296.6 kB / 0.5896 GB, free: 10.53 MB / 394.7 MB Notification: Performance of SimCode: time 1.182e-06/0.6465, allocations: 0 / 0.5896 GB, free: 10.53 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0495/0.696, allocations: 21.9 MB / 0.611 GB, free: 7.75 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002376/0.6963, allocations: 190.6 kB / 0.6111 GB, free: 7.504 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.541/3.237, allocations: 4 kB / 0.6111 GB, free: 7.5 MB / 410.7 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)