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.1058/0.1058, allocations: 15.26 MB / 27.81 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.001218/0.001218, allocations: 192.4 kB / 32.7 MB, free: 0.5117 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.327/1.327, allocations: 221.3 MB / 258.8 MB, free: 15.99 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009258/0.0009262, allocations: 108 kB / 314 MB, free: 15.75 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.544e-05/3.546e-05, allocations: 4 kB / 376.6 MB, free: 1.336 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3023, allocations: 54.61 MB / 431.2 MB, free: 50.11 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1142/0.4166, allocations: 99.8 MB / 0.5185 GB, free: 15.43 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001703/0.4169, allocations: 65.28 kB / 0.5186 GB, free: 15.37 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. Notification: Performance of FrontEnd - DAE generated: time 0.06243/0.4793, allocations: 24.72 MB / 0.5427 GB, free: 6.828 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.4793, allocations: 0 / 0.5427 GB, free: 6.828 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.587e-05/0.4794, allocations: 16 kB / 0.5428 GB, free: 6.812 MB / 410.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.00177/0.4812, allocations: 1.013 MB / 0.5437 GB, free: 5.754 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.658e-05/0.4812, allocations: 12.03 kB / 0.5438 GB, free: 5.742 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001437/0.4814, allocations: 110.5 kB / 0.5439 GB, free: 5.625 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005905/0.482, allocations: 193.6 kB / 0.5441 GB, free: 5.438 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009924/0.483, allocations: 0.592 MB / 0.5446 GB, free: 4.809 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.359e-05/0.4831, allocations: 75.7 kB / 0.5447 GB, free: 4.727 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001051/0.4832, allocations: 75.91 kB / 0.5448 GB, free: 4.652 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.4846, allocations: 1.075 MB / 0.5458 GB, free: 3.566 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.471e-05/0.4846, allocations: 0 / 0.5458 GB, free: 3.566 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.072e-05/0.4847, allocations: 28 kB / 0.5458 GB, free: 3.539 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.464e-05/0.4847, allocations: 16 kB / 0.5459 GB, free: 3.523 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0018/0.4865, allocations: 1.52 MB / 0.5473 GB, free: 2 MB / 410.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.004971/0.4915, allocations: 3.744 MB / 0.551 GB, free: 14.11 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002222/0.4937, allocations: 1.636 MB / 0.5526 GB, free: 12.43 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006604/0.4944, allocations: 0.5961 MB / 0.5532 GB, free: 11.84 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002388/0.4947, allocations: 164.2 kB / 0.5533 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.469e-05/0.4947, allocations: 43.06 kB / 0.5534 GB, free: 11.62 MB / 426.7 MB Notification: Performance of pre-optimization done (n=70): time 3.477e-06/0.4947, allocations: 0 / 0.5534 GB, free: 11.62 MB / 426.7 MB Notification: Performance of matching and sorting (n=84): time 0.005662/0.5004, allocations: 3.542 MB / 0.5568 GB, free: 8.031 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.5004, allocations: 64.98 kB / 0.5569 GB, free: 7.957 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004829/0.5009, allocations: 439.8 kB / 0.5573 GB, free: 7.523 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 5.021e-05/0.501, allocations: 41.7 kB / 0.5574 GB, free: 7.477 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001978/0.5012, allocations: 320.5 kB / 0.5577 GB, free: 7.156 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001905/0.5014, allocations: 275.9 kB / 0.5579 GB, free: 6.883 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.68e-05/0.5014, allocations: 16 kB / 0.5579 GB, free: 6.867 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001373/0.5016, allocations: 374.8 kB / 0.5583 GB, free: 6.492 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006313/0.5022, allocations: 0.5209 MB / 0.5588 GB, free: 5.973 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007175/0.5029, allocations: 0.6182 MB / 0.5594 GB, free: 5.328 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007014/0.5036, allocations: 0.5721 MB / 0.56 GB, free: 4.758 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.5036, allocations: 4 kB / 0.56 GB, free: 4.754 MB / 426.7 MB Notification: Performance of matching and sorting (n=96) (initialization): time 0.001683/0.5053, allocations: 1.375 MB / 0.5613 GB, free: 3.363 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.5054, allocations: 4 kB / 0.5613 GB, free: 3.359 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.017e-06/0.5054, allocations: 4 kB / 0.5613 GB, free: 3.355 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002862/0.5057, allocations: 101 kB / 0.5614 GB, free: 3.254 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009721/0.5066, allocations: 207.7 kB / 0.5616 GB, free: 3.051 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004989/0.5072, allocations: 0.6877 MB / 0.5623 GB, free: 2.34 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003742/0.5075, allocations: 35.95 kB / 0.5623 GB, free: 2.305 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.677e-05/0.5076, allocations: 37.3 kB / 0.5624 GB, free: 2.27 MB / 426.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 () * 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.0001356/0.5078, allocations: 144.8 kB / 0.5625 GB, free: 2.121 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.66e-05/0.5079, allocations: 63.25 kB / 0.5626 GB, free: 2.059 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001951/0.5098, allocations: 1.42 MB / 0.5639 GB, free: 0.6367 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.5098, allocations: 12 kB / 0.564 GB, free: 0.625 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.5099, allocations: 2.438 kB / 0.564 GB, free: 0.625 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.5099, allocations: 7.922 kB / 0.564 GB, free: 0.6172 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003493/0.5134, allocations: 2.737 MB / 0.5666 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.388e-06/0.5134, allocations: 256 / 0.5666 GB, free: 13.79 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009404/0.5143, allocations: 203.7 kB / 0.5668 GB, free: 13.59 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002395/0.5146, allocations: 104.8 kB / 0.5669 GB, free: 13.49 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.916e-05/0.5147, allocations: 20 kB / 0.567 GB, free: 13.47 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004342/0.5151, allocations: 0.6944 MB / 0.5676 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5151, allocations: 2.109 kB / 0.5676 GB, free: 12.75 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002483/0.5176, allocations: 2.26 MB / 0.5698 GB, free: 10.4 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002502/0.5179, allocations: 212.1 kB / 0.57 GB, free: 10.18 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.263e-05/0.518, allocations: 20 kB / 0.5701 GB, free: 10.16 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003555/0.5183, allocations: 31.89 kB / 0.5701 GB, free: 10.12 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.5184, allocations: 72.64 kB / 0.5702 GB, free: 10.05 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.848e-05/0.5185, allocations: 24 kB / 0.5702 GB, free: 10.03 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0003626/0.5189, allocations: 353.5 kB / 0.5705 GB, free: 9.688 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.5189, allocations: 0 / 0.5705 GB, free: 9.688 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0009147/0.5198, allocations: 407.6 kB / 0.5709 GB, free: 9.289 MB / 442.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 () * 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.003657/0.5235, allocations: 3.747 MB / 0.5746 GB, free: 5.457 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.001507/0.525, allocations: 1.203 MB / 0.5757 GB, free: 4.254 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.525, allocations: 8 kB / 0.5758 GB, free: 4.246 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007317/0.5257, allocations: 0.6252 MB / 0.5764 GB, free: 3.621 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009064/0.5267, allocations: 200.4 kB / 0.5766 GB, free: 3.43 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002584/0.5293, allocations: 1.575 MB / 0.5781 GB, free: 1.789 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004678/0.5297, allocations: 0.9684 MB / 0.579 GB, free: 0.793 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0004648/0.5302, allocations: 128.4 kB / 0.5792 GB, free: 0.6719 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004114/0.5306, allocations: 300.8 kB / 0.5794 GB, free: 388 kB / 442.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5306, allocations: 0 / 0.5794 GB, free: 388 kB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2479/0.7785, allocations: 22.28 MB / 0.6012 GB, free: 115 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001301/0.7787, allocations: 160.4 kB / 0.6014 GB, free: 114.8 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.611/3.39, allocations: 0 / 0.6014 GB, free: 114.8 MB / 442.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)