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.08502/0.08502, allocations: 15.26 MB / 22.73 MB, free: 0.9414 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009363/0.0009363, allocations: 188.9 kB / 27.52 MB, free: 6.105 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.243/1.243, allocations: 221.5 MB / 253.7 MB, free: 10.93 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.0008086/0.0008086, allocations: 96.55 kB / 308.7 MB, free: 10.95 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.333e-05/1.332e-05, allocations: 0 / 369.7 MB, free: 53.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0749/0.07493, allocations: 54.63 MB / 424.3 MB, free: 14.2 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3217/0.3966, allocations: 94.22 MB / 0.5064 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001873/0.3969, allocations: 69.09 kB / 0.5064 GB, free: 12.32 MB / 362.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.04008/0.437, allocations: 19.06 MB / 0.525 GB, free: 26.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.437, allocations: 3.938 kB / 0.525 GB, free: 26.83 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.25e-05/0.4371, allocations: 19.5 kB / 0.5251 GB, free: 26.82 MB / 378.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.0008945/0.438, allocations: 0.8125 MB / 0.5259 GB, free: 26.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.662e-05/0.438, allocations: 11.61 kB / 0.5259 GB, free: 26.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006026/0.4386, allocations: 209.1 kB / 0.5261 GB, free: 26.2 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005713/0.4392, allocations: 0.4965 MB / 0.5266 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.521e-05/0.4392, allocations: 7.625 kB / 0.5266 GB, free: 25.88 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.282e-05/0.4393, allocations: 22.95 kB / 0.5266 GB, free: 25.87 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001329/0.4406, allocations: 1.617 MB / 0.5282 GB, free: 25.65 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006275/0.4412, allocations: 0.7463 MB / 0.5289 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.319e-05/0.4413, allocations: 3.844 kB / 0.5289 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.867e-05/0.4413, allocations: 0 / 0.5289 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.324e-06/0.4413, allocations: 7.781 kB / 0.5289 GB, free: 25.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002675/0.444, allocations: 2.936 MB / 0.5318 GB, free: 24.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.42e-05/0.4441, allocations: 56.42 kB / 0.5318 GB, free: 24.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.962e-05/0.4441, allocations: 26.22 kB / 0.5318 GB, free: 24.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.93e-05/0.4441, allocations: 11.55 kB / 0.5319 GB, free: 24.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.651e-05/0.4442, allocations: 38.38 kB / 0.5319 GB, free: 23.97 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.483e-06/0.4442, allocations: 0 / 0.5319 GB, free: 23.97 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002225/0.4444, allocations: 131.1 kB / 0.532 GB, free: 23.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.116e-05/0.4444, allocations: 58.84 kB / 0.5321 GB, free: 23.84 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001214/0.4456, allocations: 1.64 MB / 0.5337 GB, free: 23.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.288e-05/0.4457, allocations: 25.7 kB / 0.5337 GB, free: 23.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001598/0.4458, allocations: 397.1 kB / 0.5341 GB, free: 23.31 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.496e-05/0.4459, allocations: 29.98 kB / 0.5341 GB, free: 23.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.158e-05/0.4459, allocations: 0 / 0.5341 GB, free: 23.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001011/0.446, allocations: 366.9 kB / 0.5345 GB, free: 22.96 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003379/0.4463, allocations: 483.5 kB / 0.5349 GB, free: 22.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000378/0.4467, allocations: 0.6375 MB / 0.5355 GB, free: 22.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001394/0.4481, allocations: 0.7131 MB / 0.5362 GB, free: 22.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.867e-06/0.4481, allocations: 3.938 kB / 0.5362 GB, free: 22.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.00188/0.45, allocations: 1.372 MB / 0.5376 GB, free: 22.04 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.45, allocations: 7.75 kB / 0.5376 GB, free: 22.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.909e-06/0.4501, allocations: 11.8 kB / 0.5376 GB, free: 22.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.764e-05/0.4501, allocations: 11.78 kB / 0.5376 GB, free: 22.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003687/0.4505, allocations: 108.5 kB / 0.5377 GB, free: 22.01 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.4505, allocations: 19.66 kB / 0.5377 GB, free: 22 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004276/0.4509, allocations: 54.58 kB / 0.5378 GB, free: 21.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.666e-05/0.451, allocations: 26.92 kB / 0.5378 GB, free: 21.96 MB / 378.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 8.705e-05/0.451, allocations: 124.5 kB / 0.5379 GB, free: 21.84 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001476/0.4512, allocations: 136.8 kB / 0.5381 GB, free: 21.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.021e-05/0.4513, allocations: 62.41 kB / 0.5381 GB, free: 21.73 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002203/0.4515, allocations: 145.8 kB / 0.5383 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.494e-06/0.4515, allocations: 0 / 0.5383 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.717e-06/0.4515, allocations: 0 / 0.5383 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.287e-06/0.4515, allocations: 0 / 0.5383 GB, free: 21.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000669/0.4522, allocations: 0.7671 MB / 0.539 GB, free: 21.11 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.4522, allocations: 0 / 0.539 GB, free: 21.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.343e-05/0.4523, allocations: 19.64 kB / 0.539 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.4523, allocations: 0 / 0.539 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.455e-06/0.4523, allocations: 3.906 kB / 0.539 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.4523, allocations: 0 / 0.539 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.416e-06/0.4523, allocations: 7.828 kB / 0.539 GB, free: 21.1 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001762/0.4525, allocations: 264.5 kB / 0.5393 GB, free: 20.86 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001412/0.4527, allocations: 179.3 kB / 0.5395 GB, free: 20.71 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.369e-05/0.4527, allocations: 3.969 kB / 0.5395 GB, free: 20.71 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001932/0.4529, allocations: 3.906 kB / 0.5395 GB, free: 20.71 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.73e-05/0.453, allocations: 7.938 kB / 0.5395 GB, free: 20.7 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-06/0.453, allocations: 3.875 kB / 0.5395 GB, free: 20.7 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0008653/0.4538, allocations: 1.305 MB / 0.5408 GB, free: 20.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4538, allocations: 0 / 0.5408 GB, free: 20.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005962/0.4544, allocations: 272.2 kB / 0.541 GB, free: 20.45 MB / 378.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.000851/0.4553, allocations: 1.41 MB / 0.5424 GB, free: 19.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005054/0.4558, allocations: 0.5789 MB / 0.543 GB, free: 19.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.935e-06/0.4558, allocations: 1.562 kB / 0.543 GB, free: 19.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.551e-05/0.4559, allocations: 34.17 kB / 0.543 GB, free: 19.17 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007559/0.4566, allocations: 194.2 kB / 0.5432 GB, free: 19.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001071/0.4577, allocations: 0.682 MB / 0.5438 GB, free: 18.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000353/0.4581, allocations: 0.8627 MB / 0.5447 GB, free: 17.92 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003377/0.4584, allocations: 117.9 kB / 0.5448 GB, free: 17.86 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002005/0.4586, allocations: 195.8 kB / 0.545 GB, free: 17.83 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.4586, allocations: 0 / 0.545 GB, free: 17.83 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03364/0.4923, allocations: 14.49 MB / 0.5591 GB, free: 10.92 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001687/0.4925, allocations: 141.4 kB / 0.5593 GB, free: 10.72 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.133/2.625, allocations: 0 / 0.5593 GB, free: 10.72 MB / 378.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)