Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.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.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_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.1072/0.1072, allocations: 15.25 MB / 27.81 MB, free: 5.398 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.001577/0.001577, allocations: 184.4 kB / 32.7 MB, free: 0.5195 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.339/1.339, allocations: 221.4 MB / 258.8 MB, free: 15.98 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.0008816/0.0008815, allocations: 106.8 kB / 314 MB, free: 15.73 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 3.408e-05/3.413e-05, allocations: 8 kB / 376.6 MB, free: 1.309 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3341/0.3342, allocations: 54.6 MB / 431.2 MB, free: 50.12 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1323/0.4665, allocations: 94.88 MB / 0.5137 GB, free: 4.363 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002374/0.4668, allocations: 75.64 kB / 0.5138 GB, free: 4.293 MB / 378.7 MB [/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.Sources.PureSubstance. 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:1535:7-1535:66:writable] Warning: No corresponding 'inner' declaration found for component .Modelica.Fluid.System reaction.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.Sensors.DissociationCoefficient$reaction. 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.Sources.PureSubstance. 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.Sources.PureSubstance$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.04895/0.5158, allocations: 19.34 MB / 0.5327 GB, free: 1.141 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.5158, allocations: 0 / 0.5327 GB, free: 1.141 MB / 394.7 MB Notification: Performance of Transformations before backend: time 5.744e-05/0.5159, allocations: 23.94 kB / 0.5327 GB, free: 1.117 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001601/0.5175, allocations: 0.8018 MB / 0.5335 GB, free: 276 kB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.818e-05/0.5176, allocations: 8.031 kB / 0.5335 GB, free: 268 kB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001424/0.5177, allocations: 66.53 kB / 0.5336 GB, free: 192 kB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008398/0.5186, allocations: 212.2 kB / 0.5338 GB, free: 15.98 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009212/0.5195, allocations: 0.4985 MB / 0.5343 GB, free: 15.44 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.5195, allocations: 24.78 kB / 0.5343 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.115e-05/0.5196, allocations: 32 kB / 0.5343 GB, free: 15.38 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001188/0.5208, allocations: 0.9651 MB / 0.5353 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.587e-05/0.5208, allocations: 0 / 0.5353 GB, free: 14.38 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.306e-05/0.5209, allocations: 16 kB / 0.5353 GB, free: 14.37 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.134e-05/0.5209, allocations: 12 kB / 0.5353 GB, free: 14.36 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001795/0.5227, allocations: 1.65 MB / 0.5369 GB, free: 12.71 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003832/0.5266, allocations: 2.998 MB / 0.5398 GB, free: 9.621 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001097/0.5267, allocations: 60.06 kB / 0.5399 GB, free: 9.555 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.852e-05/0.5268, allocations: 32.97 kB / 0.5399 GB, free: 9.52 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.906e-05/0.5268, allocations: 0 / 0.5399 GB, free: 9.52 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.5268, allocations: 38.55 kB / 0.54 GB, free: 9.473 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.5268, allocations: 0 / 0.54 GB, free: 9.473 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0003408/0.5272, allocations: 136.9 kB / 0.5401 GB, free: 9.332 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.201e-05/0.5272, allocations: 63.3 kB / 0.5401 GB, free: 9.258 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001968/0.5292, allocations: 1.719 MB / 0.5418 GB, free: 7.531 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.49e-05/0.5292, allocations: 25.7 kB / 0.5418 GB, free: 7.5 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002508/0.5295, allocations: 390.2 kB / 0.5422 GB, free: 7.113 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.085e-05/0.5295, allocations: 23.8 kB / 0.5422 GB, free: 7.09 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.531e-05/0.5295, allocations: 8 kB / 0.5423 GB, free: 7.082 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001429/0.5297, allocations: 378.8 kB / 0.5426 GB, free: 6.703 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004949/0.5302, allocations: 488.7 kB / 0.5431 GB, free: 6.227 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006001/0.5308, allocations: 0.6431 MB / 0.5437 GB, free: 5.504 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005857/0.5314, allocations: 0.5284 MB / 0.5442 GB, free: 4.977 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.035e-06/0.5314, allocations: 4 kB / 0.5442 GB, free: 4.973 MB / 410.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00144/0.5329, allocations: 1.232 MB / 0.5454 GB, free: 3.734 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.464e-05/0.5329, allocations: 8 kB / 0.5454 GB, free: 3.727 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.418e-05/0.5329, allocations: 10.83 kB / 0.5454 GB, free: 3.719 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.555e-05/0.5329, allocations: 12 kB / 0.5455 GB, free: 3.707 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004249/0.5334, allocations: 103.9 kB / 0.5456 GB, free: 3.605 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.774e-05/0.5334, allocations: 15.88 kB / 0.5456 GB, free: 3.59 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005617/0.534, allocations: 71.23 kB / 0.5456 GB, free: 3.52 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.406e-05/0.534, allocations: 33.41 kB / 0.5457 GB, free: 3.488 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (53): * Single equations (assignments): 53 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001031/0.5342, allocations: 124.8 kB / 0.5458 GB, free: 3.359 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.104e-05/0.5343, allocations: 67.28 kB / 0.5459 GB, free: 3.293 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002632/0.5345, allocations: 151.1 kB / 0.546 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.286e-06/0.5345, allocations: 0 / 0.546 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.5345, allocations: 1.688 kB / 0.546 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.997e-06/0.5346, allocations: 0 / 0.546 GB, free: 3.137 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009283/0.5355, allocations: 0.8068 MB / 0.5468 GB, free: 2.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.016e-06/0.5355, allocations: 4 kB / 0.5468 GB, free: 2.25 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.246e-05/0.5356, allocations: 13.98 kB / 0.5468 GB, free: 2.238 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.562e-06/0.5356, allocations: 7.953 kB / 0.5468 GB, free: 2.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.11e-05/0.5356, allocations: 4 kB / 0.5468 GB, free: 2.227 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.001e-06/0.5356, allocations: 7.938 kB / 0.5468 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.5356, allocations: 0 / 0.5468 GB, free: 2.219 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002646/0.5359, allocations: 269.3 kB / 0.5471 GB, free: 1.891 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002288/0.5361, allocations: 184.3 kB / 0.5473 GB, free: 1.691 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.096e-05/0.5362, allocations: 0 / 0.5473 GB, free: 1.691 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002201/0.5365, allocations: 4 kB / 0.5473 GB, free: 1.688 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.093e-05/0.5365, allocations: 15.88 kB / 0.5473 GB, free: 1.672 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.533e-06/0.5365, allocations: 4 kB / 0.5473 GB, free: 1.668 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001438/0.538, allocations: 1.366 MB / 0.5486 GB, free: 312 kB / 410.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.538, allocations: 4 kB / 0.5486 GB, free: 308 kB / 410.7 MB Notification: Performance of remove unused functions: time 0.0008506/0.5388, allocations: 283.6 kB / 0.5489 GB, free: 24 kB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001331/0.5402, allocations: 1.402 MB / 0.5503 GB, free: 14.56 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.0007557/0.5409, allocations: 0.6063 MB / 0.5508 GB, free: 13.96 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.541, allocations: 4.125 kB / 0.5509 GB, free: 13.95 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 4.754e-05/0.541, allocations: 27.92 kB / 0.5509 GB, free: 13.93 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009516/0.542, allocations: 225.4 kB / 0.5511 GB, free: 13.72 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001392/0.5434, allocations: 0.7123 MB / 0.5518 GB, free: 12.96 MB / 426.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003764/0.5438, allocations: 0.8544 MB / 0.5526 GB, free: 12.08 MB / 426.7 MB Notification: Performance of simCode: alias equations: time 0.0004301/0.5442, allocations: 132.1 kB / 0.5528 GB, free: 11.96 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002613/0.5445, allocations: 199.4 kB / 0.5529 GB, free: 11.77 MB / 426.7 MB Notification: Performance of SimCode: time 7.82e-07/0.5445, allocations: 0 / 0.5529 GB, free: 11.77 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03519/0.5797, allocations: 17.07 MB / 0.5696 GB, free: 10.97 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001655/0.5799, allocations: 150.5 kB / 0.5698 GB, free: 10.75 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.965/3.545, allocations: 2.109 kB / 0.5698 GB, free: 10.75 MB / 442.7 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)