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.1326/0.1326, allocations: 15.26 MB / 30.21 MB, free: 3.305 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.001385/0.001386, allocations: 178.3 kB / 35.29 MB, free: 2.379 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.446/1.446, allocations: 223.2 MB / 263.4 MB, free: 6.543 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.0008923/0.0008923, allocations: 86.97 kB / 318.8 MB, free: 3.457 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000327/0.0003272, allocations: 9.594 kB / 384 MB, free: 50.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1107, allocations: 54.64 MB / 438.7 MB, free: 304 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3629/0.4736, allocations: 94.94 MB / 0.5211 GB, free: 15.53 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002396/0.4739, allocations: 71.28 kB / 0.5212 GB, free: 15.53 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.04485/0.5188, allocations: 19.4 MB / 0.5401 GB, free: 30.06 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5188, allocations: 0 / 0.5401 GB, free: 30.06 MB / 394.7 MB Notification: Performance of Transformations before backend: time 7.49e-05/0.5189, allocations: 15.66 kB / 0.5401 GB, free: 30.06 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.001764/0.5207, allocations: 0.8993 MB / 0.541 GB, free: 29.42 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.226e-05/0.5207, allocations: 7.75 kB / 0.541 GB, free: 29.42 MB / 394.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.335e-05/0.5208, allocations: 74.89 kB / 0.5411 GB, free: 29.38 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006614/0.5215, allocations: 202.4 kB / 0.5413 GB, free: 29.34 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006595/0.5221, allocations: 0.5015 MB / 0.5418 GB, free: 29.06 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.849e-05/0.5222, allocations: 30.27 kB / 0.5418 GB, free: 29.06 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.85e-05/0.5222, allocations: 30.81 kB / 0.5418 GB, free: 29.06 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009029/0.5231, allocations: 0.9726 MB / 0.5428 GB, free: 28.94 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.165e-05/0.5232, allocations: 0 / 0.5428 GB, free: 28.94 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.5232, allocations: 11.62 kB / 0.5428 GB, free: 28.94 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.526e-06/0.5232, allocations: 7.75 kB / 0.5428 GB, free: 28.94 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001334/0.5246, allocations: 1.656 MB / 0.5444 GB, free: 28.93 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002964/0.5275, allocations: 3.013 MB / 0.5473 GB, free: 27.89 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.114e-05/0.5276, allocations: 67.02 kB / 0.5474 GB, free: 27.87 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.717e-05/0.5277, allocations: 0 / 0.5474 GB, free: 27.87 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.925e-05/0.5277, allocations: 30.56 kB / 0.5474 GB, free: 27.83 MB / 394.7 MB Notification: Performance of pre-optimization done (n=5): time 1.122e-06/0.5277, allocations: 0 / 0.5474 GB, free: 27.83 MB / 394.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002976/0.528, allocations: 166 kB / 0.5476 GB, free: 27.76 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.861e-05/0.528, allocations: 51.41 kB / 0.5476 GB, free: 27.7 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001422/0.5295, allocations: 1.731 MB / 0.5493 GB, free: 27.56 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.71e-05/0.5295, allocations: 25.7 kB / 0.5494 GB, free: 27.53 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001869/0.5297, allocations: 388.3 kB / 0.5497 GB, free: 27.34 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.5297, allocations: 34.3 kB / 0.5498 GB, free: 27.32 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.281e-05/0.5297, allocations: 7.438 kB / 0.5498 GB, free: 27.32 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001284/0.5299, allocations: 375.3 kB / 0.5501 GB, free: 27 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003845/0.5303, allocations: 498.9 kB / 0.5506 GB, free: 27 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004227/0.5307, allocations: 0.654 MB / 0.5512 GB, free: 26.77 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004264/0.5311, allocations: 0.5301 MB / 0.5518 GB, free: 26.76 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.945e-06/0.5311, allocations: 4 kB / 0.5518 GB, free: 26.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.001111/0.5323, allocations: 1.24 MB / 0.553 GB, free: 26.55 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.5323, allocations: 7.688 kB / 0.553 GB, free: 26.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.5323, allocations: 3.938 kB / 0.553 GB, free: 26.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.553e-05/0.5323, allocations: 7.875 kB / 0.553 GB, free: 26.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004153/0.5327, allocations: 109.3 kB / 0.5531 GB, free: 26.53 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.234e-05/0.5328, allocations: 15.8 kB / 0.5531 GB, free: 26.53 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004998/0.5333, allocations: 58.47 kB / 0.5532 GB, free: 26.49 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.104e-05/0.5333, allocations: 30.77 kB / 0.5532 GB, free: 26.49 MB / 394.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 () * Number of clocked 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.0001885/0.5335, allocations: 190.5 kB / 0.5534 GB, free: 26.35 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-05/0.5336, allocations: 58.44 kB / 0.5534 GB, free: 26.32 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002155/0.5338, allocations: 154.6 kB / 0.5536 GB, free: 26.25 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.5338, allocations: 0 / 0.5536 GB, free: 26.25 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.5338, allocations: 0 / 0.5536 GB, free: 26.25 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.5338, allocations: 0 / 0.5536 GB, free: 26.25 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000753/0.5346, allocations: 0.8075 MB / 0.5544 GB, free: 25.67 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.5346, allocations: 3.875 kB / 0.5544 GB, free: 25.67 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.847e-05/0.5347, allocations: 15.67 kB / 0.5544 GB, free: 25.66 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.5347, allocations: 3.75 kB / 0.5544 GB, free: 25.66 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.997e-06/0.5347, allocations: 0 / 0.5544 GB, free: 25.66 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.5347, allocations: 3.844 kB / 0.5544 GB, free: 25.66 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.5347, allocations: 3.953 kB / 0.5544 GB, free: 25.66 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001866/0.5349, allocations: 274.4 kB / 0.5547 GB, free: 25.41 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001683/0.5351, allocations: 180.3 kB / 0.5548 GB, free: 25.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.595e-05/0.5352, allocations: 3.844 kB / 0.5548 GB, free: 25.27 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002184/0.5354, allocations: 7.781 kB / 0.5548 GB, free: 25.26 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.899e-05/0.5354, allocations: 15.44 kB / 0.5549 GB, free: 25.25 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.711e-06/0.5354, allocations: 3.875 kB / 0.5549 GB, free: 25.25 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0009508/0.5364, allocations: 1.376 MB / 0.5562 GB, free: 25.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5364, allocations: 0 / 0.5562 GB, free: 25.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0007202/0.5371, allocations: 285.9 kB / 0.5565 GB, free: 24.96 MB / 394.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 () * Number of clocked 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.0009474/0.5381, allocations: 1.414 MB / 0.5579 GB, free: 23.76 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0005326/0.5386, allocations: 0.6071 MB / 0.5585 GB, free: 23.66 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.5386, allocations: 0 / 0.5585 GB, free: 23.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 4.081e-05/0.5387, allocations: 33.64 kB / 0.5585 GB, free: 23.65 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007549/0.5394, allocations: 217.8 kB / 0.5587 GB, free: 23.59 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005761/0.5452, allocations: 9.076 MB / 0.5676 GB, free: 17.99 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000331/0.5456, allocations: 0.8625 MB / 0.5684 GB, free: 17.2 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003882/0.546, allocations: 122.9 kB / 0.5685 GB, free: 17.14 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001971/0.5462, allocations: 202.4 kB / 0.5687 GB, free: 17.12 MB / 394.7 MB Notification: Performance of SimCode: time 4.71e-07/0.5462, allocations: 0 / 0.5687 GB, free: 17.12 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02816/0.5743, allocations: 17.17 MB / 0.5855 GB, free: 8.914 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000184/0.5746, allocations: 175.7 kB / 0.5856 GB, free: 8.676 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.306/2.881, allocations: 0 / 0.5856 GB, free: 8.676 MB / 394.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)