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.1567/0.1567, allocations: 15.26 MB / 27.82 MB, free: 5.395 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.00162/0.00162, allocations: 188.4 kB / 32.7 MB, free: 0.5156 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.434/1.434, allocations: 221.4 MB / 258.8 MB, free: 24 kB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001057/0.001057, allocations: 107.6 kB / 314 MB, free: 15.77 MB / 250.7 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 3.022e-05/3.024e-05, allocations: 7.938 kB / 376.6 MB, free: 1.34 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3172/0.3173, allocations: 54.6 MB / 431.2 MB, free: 50.05 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1551/0.4724, allocations: 99.8 MB / 0.5186 GB, free: 15.48 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000181/0.4726, allocations: 68.47 kB / 0.5186 GB, free: 15.42 MB / 394.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.08918/0.5618, allocations: 34.35 MB / 0.5522 GB, free: 13.25 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.5619, allocations: 4 kB / 0.5522 GB, free: 13.25 MB / 426.7 MB Notification: Performance of Transformations before backend: time 5.126e-05/0.5619, allocations: 24 kB / 0.5522 GB, free: 13.23 MB / 426.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.002408/0.5643, allocations: 1.268 MB / 0.5534 GB, free: 11.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.082e-05/0.5644, allocations: 8.031 kB / 0.5534 GB, free: 11.91 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001895/0.5646, allocations: 143.4 kB / 0.5536 GB, free: 11.76 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008905/0.5655, allocations: 254.9 kB / 0.5538 GB, free: 11.51 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.5668, allocations: 0.7614 MB / 0.5546 GB, free: 10.7 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.97e-05/0.5669, allocations: 97.05 kB / 0.5547 GB, free: 10.6 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001382/0.5671, allocations: 91.91 kB / 0.5547 GB, free: 10.51 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001995/0.5691, allocations: 1.498 MB / 0.5562 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.796e-05/0.5691, allocations: 0 / 0.5562 GB, free: 8.996 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.97e-05/0.5692, allocations: 36 kB / 0.5562 GB, free: 8.961 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.763e-05/0.5692, allocations: 20 kB / 0.5563 GB, free: 8.941 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002606/0.5718, allocations: 2.14 MB / 0.5583 GB, free: 6.797 MB / 426.7 MB Warning: The model contains alias variables with conflicting start and/or 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.006516/0.5783, allocations: 4.812 MB / 0.563 GB, free: 1.809 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002819/0.5812, allocations: 2.14 MB / 0.5651 GB, free: 15.61 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008683/0.5821, allocations: 0.7646 MB / 0.5659 GB, free: 14.85 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003591/0.5824, allocations: 256.1 kB / 0.5661 GB, free: 14.6 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.668e-05/0.5825, allocations: 39.34 kB / 0.5662 GB, free: 14.55 MB / 442.7 MB Notification: Performance of pre-optimization done (n=98): time 2.815e-06/0.5825, allocations: 0 / 0.5662 GB, free: 14.55 MB / 442.7 MB Notification: Performance of matching and sorting (n=122): time 0.009323/0.5918, allocations: 4.749 MB / 0.5708 GB, free: 9.727 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.236e-05/0.592, allocations: 64.41 kB / 0.5709 GB, free: 9.652 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.5931, allocations: 0.5626 MB / 0.5714 GB, free: 9.086 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 9.106e-05/0.5932, allocations: 45.7 kB / 0.5715 GB, free: 9.035 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004419/0.5936, allocations: 396.8 kB / 0.5718 GB, free: 8.641 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000497/0.5942, allocations: 413.9 kB / 0.5722 GB, free: 8.23 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.949e-05/0.5942, allocations: 20 kB / 0.5723 GB, free: 8.211 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0003205/0.5946, allocations: 398.7 kB / 0.5726 GB, free: 7.812 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001093/0.5957, allocations: 0.686 MB / 0.5733 GB, free: 7.125 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001211/0.5969, allocations: 0.8308 MB / 0.5741 GB, free: 6.262 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001239/0.5981, allocations: 0.7585 MB / 0.5749 GB, free: 5.504 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.499e-06/0.5982, allocations: 0 / 0.5749 GB, free: 5.504 MB / 442.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003351/0.6015, allocations: 1.813 MB / 0.5766 GB, free: 3.68 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.566e-05/0.6016, allocations: 12.33 kB / 0.5766 GB, free: 3.668 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.572e-05/0.6016, allocations: 8 kB / 0.5766 GB, free: 3.66 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005525/0.6022, allocations: 139.1 kB / 0.5768 GB, free: 3.523 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001511/0.6037, allocations: 287.5 kB / 0.577 GB, free: 3.242 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007813/0.6045, allocations: 0.7787 MB / 0.5778 GB, free: 2.438 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007691/0.6053, allocations: 47.94 kB / 0.5779 GB, free: 2.391 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.931e-05/0.6054, allocations: 47.97 kB / 0.5779 GB, free: 2.344 MB / 442.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 () * 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.0002175/0.6056, allocations: 158.1 kB / 0.5781 GB, free: 2.184 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001639/0.6058, allocations: 90.88 kB / 0.5781 GB, free: 2.094 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003237/0.609, allocations: 1.949 MB / 0.58 GB, free: 144 kB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.42e-05/0.6091, allocations: 16 kB / 0.5801 GB, free: 128 kB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.297e-05/0.6091, allocations: 11.89 kB / 0.5801 GB, free: 116 kB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.651e-05/0.6091, allocations: 7.969 kB / 0.5801 GB, free: 108 kB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2464/0.8555, allocations: 3.982 MB / 0.584 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.154e-05/0.8555, allocations: 3 kB / 0.584 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001344/0.8569, allocations: 264.5 kB / 0.5842 GB, free: 109.5 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004632/0.8574, allocations: 142.5 kB / 0.5844 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001087/0.8575, allocations: 39.03 kB / 0.5844 GB, free: 109.4 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007021/0.8582, allocations: 0.7821 MB / 0.5852 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.333e-06/0.8582, allocations: 8.188 kB / 0.5852 GB, free: 108.9 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004145/0.8624, allocations: 3.171 MB / 0.5883 GB, free: 108.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006385/0.863, allocations: 261.2 kB / 0.5885 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001224/0.8632, allocations: 29.19 kB / 0.5885 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005516/0.8637, allocations: 49.62 kB / 0.5886 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002055/0.8639, allocations: 95.48 kB / 0.5887 GB, free: 108.3 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.044e-05/0.864, allocations: 46.62 kB / 0.5887 GB, free: 108.3 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0006175/0.8647, allocations: 449.4 kB / 0.5891 GB, free: 108.2 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.8647, allocations: 3.875 kB / 0.5892 GB, free: 108.2 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.001667/0.8663, allocations: 0.5689 MB / 0.5897 GB, free: 108.2 MB / 442.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 () * 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.005636/0.872, allocations: 5.381 MB / 0.595 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.8744, allocations: 1.637 MB / 0.5966 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.8744, allocations: 0 / 0.5966 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.8756, allocations: 0.8715 MB / 0.5974 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001485/0.8771, allocations: 284.3 kB / 0.5977 GB, free: 105.9 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003916/0.8811, allocations: 2.166 MB / 0.5998 GB, free: 105.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.8817, allocations: 1.067 MB / 0.6008 GB, free: 104.6 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0008254/0.8825, allocations: 176.7 kB / 0.601 GB, free: 104.6 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000587/0.8831, allocations: 411.5 kB / 0.6014 GB, free: 104.6 MB / 442.7 MB Notification: Performance of SimCode: time 1.142e-06/0.8831, allocations: 0 / 0.6014 GB, free: 104.6 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05804/0.9412, allocations: 30.1 MB / 0.6308 GB, free: 100.8 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001552/0.9414, allocations: 160.2 kB / 0.6309 GB, free: 100.5 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.811/3.752, allocations: 0 / 0.6309 GB, free: 100.5 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)