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/ModelicaServices 4.0.0+maint.om/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/Chemical 1.4.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009261/0.0009258, allocations: 100.1 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.302/1.302, allocations: 223.2 MB / 239.9 MB, free: 5.461 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.203/0.203, allocations: 15.27 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002967/0.0002967, allocations: 12 kB / 371.5 MB, free: 3.918 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2941/0.2944, allocations: 54.61 MB / 426.1 MB, free: 39.96 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011:65:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.CheckSubstancesData.SimpleReaction2): time 0.003915/0.2984, allocations: 3.306 MB / 429.4 MB, free: 39.74 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00799/0.3064, allocations: 7.798 MB / 437.2 MB, free: 35.15 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005099/0.3069, allocations: 16.72 kB / 437.2 MB, free: 35.14 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005366/0.3075, allocations: 195.6 kB / 437.4 MB, free: 35.04 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008732/0.3084, allocations: 443 kB / 437.8 MB, free: 34.73 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002972/0.3113, allocations: 1.289 MB / 439.1 MB, free: 33.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000734/0.3121, allocations: 482 kB / 439.6 MB, free: 33.69 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002655/0.3124, allocations: 199.3 kB / 439.8 MB, free: 33.61 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002505/0.3126, allocations: 224 kB / 440 MB, free: 33.53 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003255/0.313, allocations: 304.8 kB / 440.3 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.004e-05/0.313, allocations: 19 kB / 440.3 MB, free: 33.43 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002542/0.3156, allocations: 0.9606 MB / 441.3 MB, free: 33.26 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001167/0.3157, allocations: 98.41 kB / 441.4 MB, free: 33.21 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001064/0.3158, allocations: 116.6 kB / 441.5 MB, free: 33.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001399/0.3172, allocations: 0.862 MB / 442.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.346e-06/0.3172, allocations: 0 / 442.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.3172, allocations: 0 / 442.3 MB, free: 32.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.502e-06/0.3173, allocations: 0 / 442.3 MB, free: 32.85 MB / 350.1 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.00107/0.3183, allocations: 0.8231 MB / 443.2 MB, free: 32.21 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.143e-05/0.3184, allocations: 9.438 kB / 443.2 MB, free: 32.21 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.679e-05/0.3185, allocations: 66.91 kB / 443.2 MB, free: 32.15 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006512/0.3191, allocations: 161 kB / 443.4 MB, free: 32.11 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/0.3195, allocations: 394.9 kB / 443.8 MB, free: 31.8 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.739e-05/0.3195, allocations: 21.47 kB / 443.8 MB, free: 31.79 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/0.3196, allocations: 31.09 kB / 443.8 MB, free: 31.78 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006/0.3202, allocations: 0.5213 MB / 444.4 MB, free: 31.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.138e-05/0.3202, allocations: 0 / 444.4 MB, free: 31.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.416e-05/0.3203, allocations: 15.25 kB / 444.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.405e-06/0.3203, allocations: 9.531 kB / 444.4 MB, free: 31.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008989/0.3212, allocations: 0.8066 MB / 445.2 MB, free: 31.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00179/0.323, allocations: 1.828 MB / 447 MB, free: 30.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003173/0.3233, allocations: 218.6 kB / 447.2 MB, free: 29.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002237/0.3256, allocations: 2.608 MB / 449.8 MB, free: 27.68 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.206e-05/0.3256, allocations: 33.59 kB / 449.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.483e-06/0.3256, allocations: 0 / 449.9 MB, free: 27.64 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004989/0.3261, allocations: 284.4 kB / 450.1 MB, free: 27.53 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.753e-05/0.3262, allocations: 54.47 kB / 450.2 MB, free: 27.46 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004005/0.3266, allocations: 481.4 kB / 450.7 MB, free: 27.23 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.029e-05/0.3266, allocations: 33.64 kB / 450.7 MB, free: 27.19 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001383/0.3267, allocations: 292.9 kB / 451 MB, free: 26.95 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.078e-05/0.3268, allocations: 63.64 kB / 451 MB, free: 26.9 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.642e-05/0.3268, allocations: 11.94 kB / 451.1 MB, free: 26.89 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.372e-05/0.3269, allocations: 364.6 kB / 451.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001266/0.327, allocations: 87.14 kB / 451.5 MB, free: 26.53 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002272/0.3273, allocations: 354.8 kB / 451.8 MB, free: 26.14 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001886/0.3274, allocations: 150.7 kB / 452 MB, free: 26.07 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.597e-06/0.3275, allocations: 4 kB / 452 MB, free: 26.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006167/0.3281, allocations: 488 kB / 452.5 MB, free: 25.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.048e-05/0.3281, allocations: 8.906 kB / 452.5 MB, free: 25.87 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.3281, allocations: 15.91 kB / 452.5 MB, free: 25.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.373e-05/0.3282, allocations: 11.97 kB / 452.5 MB, free: 25.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002941/0.3285, allocations: 109.3 kB / 452.6 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.454e-05/0.3285, allocations: 23.52 kB / 452.6 MB, free: 25.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002447/0.3287, allocations: 60.22 kB / 452.7 MB, free: 25.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.593e-05/0.3288, allocations: 35.44 kB / 452.7 MB, free: 25.8 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (50): * Single equations (assignments): 50 * 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.0001365/0.3289, allocations: 176.2 kB / 452.9 MB, free: 25.65 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.352e-05/0.329, allocations: 47.75 kB / 453 MB, free: 25.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006266/0.3296, allocations: 397.1 kB / 453.3 MB, free: 25.38 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.3296, allocations: 0 / 453.3 MB, free: 25.38 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3296, allocations: 0 / 453.3 MB, free: 25.38 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.3297, allocations: 6.328 kB / 453.3 MB, free: 25.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005898/0.3303, allocations: 0.7053 MB / 454.1 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.764e-06/0.3303, allocations: 0 / 454.1 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.256e-05/0.3303, allocations: 12.27 kB / 454.1 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.976e-06/0.3303, allocations: 2.906 kB / 454.1 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.101e-05/0.3304, allocations: 7.031 kB / 454.1 MB, free: 24.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3304, allocations: 6.938 kB / 454.1 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.3304, allocations: 3.953 kB / 454.1 MB, free: 24.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001886/0.3306, allocations: 255.8 kB / 454.3 MB, free: 24.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001107/0.3307, allocations: 144.2 kB / 454.5 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.85e-05/0.3308, allocations: 2.969 kB / 454.5 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001151/0.3309, allocations: 2.969 kB / 454.5 MB, free: 24.44 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.107e-05/0.3309, allocations: 14.14 kB / 454.5 MB, free: 24.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.091e-06/0.3309, allocations: 6.938 kB / 454.5 MB, free: 24.43 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003187/0.3312, allocations: 380.5 kB / 454.9 MB, free: 24.26 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3312, allocations: 3.938 kB / 454.9 MB, free: 24.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006709/0.3319, allocations: 255 kB / 455.1 MB, free: 24.18 MB / 350.1 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.0008201/0.3327, allocations: 1.411 MB / 456.5 MB, free: 22.97 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003191/0.3331, allocations: 228.7 kB / 456.8 MB, free: 22.9 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3331, allocations: 1.812 kB / 456.8 MB, free: 22.9 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.399e-05/0.3331, allocations: 30.44 kB / 456.8 MB, free: 22.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005088/0.3337, allocations: 107.9 kB / 456.9 MB, free: 22.85 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003931/0.3376, allocations: 8.922 MB / 465.8 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002358/0.3378, allocations: 0.8202 MB / 466.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004392/0.3383, allocations: 136.4 kB / 466.8 MB, free: 14.15 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001975/0.3385, allocations: 169.4 kB / 466.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of SimCode: time 6.72e-07/0.3385, allocations: 0 / 466.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02934/0.3678, allocations: 12.33 MB / 479.3 MB, free: 12.44 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001306/0.368, allocations: 182.1 kB / 479.4 MB, free: 12.2 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.866/2.234, allocations: 4 kB / 479.4 MB, free: 12.2 MB / 350.1 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) Environment - environmentSimulation: