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"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.07432/0.07432, allocations: 15.26 MB / 22.54 MB, free: 1.105 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.0009393/0.0009394, allocations: 183.5 kB / 27.31 MB, free: 6.188 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.15/1.15, allocations: 221.4 MB / 253.3 MB, free: 11.24 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.0008854/0.0008854, allocations: 84.72 kB / 308.4 MB, free: 11.09 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2037/0.2046, allocations: 60.75 MB / 369.1 MB, free: 54.35 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08022/0.2848, allocations: 54.63 MB / 423.8 MB, free: 14.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2822/0.5671, allocations: 94.13 MB / 0.5058 GB, free: 8.262 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001792/0.5673, allocations: 68.95 kB / 0.5058 GB, free: 8.262 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: 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.04163/0.6089, allocations: 19.69 MB / 0.5251 GB, free: 6.074 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.106e-05/0.609, allocations: 7.75 kB / 0.5251 GB, free: 6.074 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006527/0.6097, allocations: 222.5 kB / 0.5253 GB, free: 5.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/0.6102, allocations: 0.5007 MB / 0.5258 GB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.242e-05/0.6103, allocations: 7.75 kB / 0.5258 GB, free: 5.633 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.458e-05/0.6103, allocations: 23.52 kB / 0.5258 GB, free: 5.629 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00133/0.6117, allocations: 1.63 MB / 0.5274 GB, free: 5.414 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006531/0.6123, allocations: 0.7509 MB / 0.5281 GB, free: 5.199 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.221e-05/0.6123, allocations: 3.938 kB / 0.5281 GB, free: 5.195 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.918e-05/0.6124, allocations: 2.297 kB / 0.5281 GB, free: 5.195 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.6124, allocations: 7.719 kB / 0.5281 GB, free: 5.195 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002897/0.6153, allocations: 3.176 MB / 0.5312 GB, free: 19.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.805e-05/0.6154, allocations: 62.86 kB / 0.5313 GB, free: 19.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.233e-05/0.6154, allocations: 30.09 kB / 0.5313 GB, free: 19.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.776e-05/0.6155, allocations: 3.875 kB / 0.5313 GB, free: 19.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.6155, allocations: 30.56 kB / 0.5314 GB, free: 19.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.563e-06/0.6155, allocations: 0 / 0.5314 GB, free: 19.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002302/0.6157, allocations: 135.6 kB / 0.5315 GB, free: 19.38 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.283e-05/0.6158, allocations: 62.59 kB / 0.5315 GB, free: 19.31 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001317/0.6171, allocations: 1.65 MB / 0.5332 GB, free: 19.05 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.6171, allocations: 25.7 kB / 0.5332 GB, free: 19.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.6172, allocations: 307 kB / 0.5335 GB, free: 18.78 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.404e-05/0.6172, allocations: 26.83 kB / 0.5335 GB, free: 18.77 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.242e-05/0.6173, allocations: 0 / 0.5335 GB, free: 18.77 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001115/0.6174, allocations: 370.9 kB / 0.5339 GB, free: 18.43 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003875/0.6178, allocations: 482.8 kB / 0.5343 GB, free: 18.38 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000414/0.6182, allocations: 0.6514 MB / 0.5349 GB, free: 18.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001541/0.6197, allocations: 0.7376 MB / 0.5357 GB, free: 17.86 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.6198, allocations: 0 / 0.5357 GB, free: 17.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.002084/0.6218, allocations: 1.401 MB / 0.537 GB, free: 17.47 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.33e-05/0.6219, allocations: 3.875 kB / 0.537 GB, free: 17.47 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.6219, allocations: 7.719 kB / 0.537 GB, free: 17.47 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.86e-05/0.6219, allocations: 7.812 kB / 0.5371 GB, free: 17.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004254/0.6223, allocations: 117.1 kB / 0.5372 GB, free: 17.44 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.6224, allocations: 11.78 kB / 0.5372 GB, free: 17.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004806/0.6228, allocations: 46.84 kB / 0.5372 GB, free: 17.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.129e-05/0.6229, allocations: 27.58 kB / 0.5372 GB, free: 17.41 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.931e-05/0.623, allocations: 127.9 kB / 0.5374 GB, free: 17.28 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.936e-05/0.6231, allocations: 54.62 kB / 0.5374 GB, free: 17.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002365/0.6233, allocations: 147 kB / 0.5376 GB, free: 17.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.867e-06/0.6233, allocations: 3.906 kB / 0.5376 GB, free: 17.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.556e-06/0.6233, allocations: 128 / 0.5376 GB, free: 17.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.6233, allocations: 7.906 kB / 0.5376 GB, free: 17.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007657/0.6241, allocations: 0.9208 MB / 0.5385 GB, free: 16.44 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.6241, allocations: 7.922 kB / 0.5385 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.366e-05/0.6242, allocations: 18.62 kB / 0.5385 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.815e-06/0.6242, allocations: 0 / 0.5385 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.6242, allocations: 7.875 kB / 0.5385 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.794e-06/0.6242, allocations: 0 / 0.5385 GB, free: 16.43 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.6242, allocations: 8.062 kB / 0.5385 GB, free: 16.42 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001834/0.6244, allocations: 264.8 kB / 0.5388 GB, free: 16.18 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000271/0.6247, allocations: 0.6413 MB / 0.5394 GB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001574/0.6249, allocations: 176.2 kB / 0.5396 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.165e-05/0.625, allocations: 7.844 kB / 0.5396 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002161/0.6252, allocations: 7.766 kB / 0.5396 GB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.71e-05/0.6252, allocations: 7.719 kB / 0.5396 GB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.901e-06/0.6252, allocations: 0 / 0.5396 GB, free: 15.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0009389/0.6262, allocations: 1.317 MB / 0.5409 GB, free: 15.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001199/0.6274, allocations: 292.6 kB / 0.5411 GB, free: 15.17 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.000489/0.6279, allocations: 370.9 kB / 0.5415 GB, free: 14.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005334/0.6284, allocations: 0.5981 MB / 0.5421 GB, free: 14.89 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.6284, allocations: 0 / 0.5421 GB, free: 14.89 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.935e-05/0.6285, allocations: 38.44 kB / 0.5421 GB, free: 14.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007244/0.6292, allocations: 196 kB / 0.5423 GB, free: 14.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008431/0.6301, allocations: 0.5317 MB / 0.5428 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004217/0.6305, allocations: 0.9249 MB / 0.5437 GB, free: 13.73 MB / 378.7 MB Notification: Performance of SimCode: time 2.51e-07/0.6305, allocations: 0 / 0.5437 GB, free: 13.73 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)