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.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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.0009775/0.0009775, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.007466/0.007466, allocations: 170 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 223.3 MB / 240.3 MB, free: 5.367 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2054/0.2054, allocations: 15.27 MB / 306.7 MB, free: 15.74 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002832/0.0002835, allocations: 8.281 kB / 372.2 MB, free: 3.543 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2469/0.2472, allocations: 54.63 MB / 426.8 MB, free: 40.39 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019: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.1-master/package.mo:3019:6-3019: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.02037/0.2676, allocations: 22.92 MB / 449.7 MB, free: 33.52 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00803/0.2757, allocations: 9.055 MB / 458.8 MB, free: 27.91 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004909/0.2762, allocations: 19.81 kB / 458.8 MB, free: 27.9 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005094/0.2767, allocations: 203.7 kB / 459 MB, free: 27.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00069/0.2774, allocations: 305.9 kB / 459.3 MB, free: 27.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002651/0.2801, allocations: 1.246 MB / 460.6 MB, free: 26.94 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006376/0.2807, allocations: 0.6625 MB / 461.2 MB, free: 26.62 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.281, allocations: 207.7 kB / 461.4 MB, free: 26.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002798/0.2813, allocations: 294.2 kB / 461.7 MB, free: 26.46 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000386/0.2816, allocations: 336.8 kB / 462 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.725e-05/0.2817, allocations: 18 kB / 462.1 MB, free: 26.36 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001714/0.2834, allocations: 0.8092 MB / 462.9 MB, free: 26.15 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.2836, allocations: 109.5 kB / 463 MB, free: 26.1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002113/0.2838, allocations: 269.9 kB / 463.2 MB, free: 25.95 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00164/0.2854, allocations: 1.384 MB / 464.6 MB, free: 25.4 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.2854, allocations: 0 / 464.6 MB, free: 25.4 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.2854, allocations: 0 / 464.6 MB, free: 25.4 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.583e-06/0.2855, allocations: 5.188 kB / 464.6 MB, free: 25.4 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.0009538/0.2864, allocations: 0.8165 MB / 465.4 MB, free: 24.76 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.2865, allocations: 10.19 kB / 465.4 MB, free: 24.76 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.926e-05/0.2865, allocations: 66.66 kB / 465.5 MB, free: 24.7 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006733/0.2872, allocations: 165 kB / 465.7 MB, free: 24.66 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.2876, allocations: 415.8 kB / 466.1 MB, free: 24.34 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.175e-05/0.2877, allocations: 27.55 kB / 466.1 MB, free: 24.33 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.747e-05/0.2878, allocations: 31.56 kB / 466.1 MB, free: 24.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006915/0.2884, allocations: 0.5314 MB / 466.7 MB, free: 24.07 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.324e-05/0.2885, allocations: 9.312 kB / 466.7 MB, free: 24.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.637e-05/0.2885, allocations: 10.75 kB / 466.7 MB, free: 24.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.034e-05/0.2885, allocations: 8.25 kB / 466.7 MB, free: 24.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001067/0.2896, allocations: 0.8037 MB / 467.5 MB, free: 23.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001909/0.2915, allocations: 1.85 MB / 469.4 MB, free: 22.55 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003667/0.2919, allocations: 219 kB / 469.6 MB, free: 22.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000214/0.2921, allocations: 134 kB / 469.7 MB, free: 22.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002135/0.2943, allocations: 2.654 MB / 472.3 MB, free: 19.78 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.809e-05/0.2943, allocations: 38.56 kB / 472.4 MB, free: 19.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=17): time 1.132e-06/0.2943, allocations: 0 / 472.4 MB, free: 19.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=17): time 0.0004711/0.2948, allocations: 290.9 kB / 472.7 MB, free: 19.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.2948, allocations: 55.41 kB / 472.7 MB, free: 19.4 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003668/0.2952, allocations: 477.7 kB / 473.2 MB, free: 18.99 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.668e-05/0.2952, allocations: 29.7 kB / 473.2 MB, free: 18.95 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001293/0.2954, allocations: 294.9 kB / 473.5 MB, free: 18.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.65e-05/0.2954, allocations: 61.69 kB / 473.6 MB, free: 18.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.547e-05/0.2955, allocations: 40.42 kB / 473.6 MB, free: 18.59 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.477e-05/0.2955, allocations: 359.9 kB / 474 MB, free: 18.24 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001302/0.2957, allocations: 86.09 kB / 474 MB, free: 18.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002048/0.2959, allocations: 363.3 kB / 474.4 MB, free: 17.7 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003976/0.2963, allocations: 0.4949 MB / 474.9 MB, free: 17.09 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.659e-06/0.2963, allocations: 4 kB / 474.9 MB, free: 17.09 MB / 350.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.000572/0.2969, allocations: 482.1 kB / 475.4 MB, free: 16.66 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.623e-05/0.2969, allocations: 12.06 kB / 475.4 MB, free: 16.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.2969, allocations: 12 kB / 475.4 MB, free: 16.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.862e-05/0.2969, allocations: 12 kB / 475.4 MB, free: 16.62 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002687/0.2972, allocations: 107.7 kB / 475.5 MB, free: 16.53 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.249e-05/0.2972, allocations: 18.94 kB / 475.5 MB, free: 16.51 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000233/0.2975, allocations: 59.38 kB / 475.6 MB, free: 16.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.989e-05/0.2975, allocations: 39.94 kB / 475.6 MB, free: 16.41 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001316/0.2976, allocations: 183.4 kB / 475.8 MB, free: 16.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.457e-05/0.2977, allocations: 51.38 kB / 475.9 MB, free: 16.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006238/0.2983, allocations: 393.4 kB / 476.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2983, allocations: 0 / 476.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.2984, allocations: 2.859 kB / 476.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.2984, allocations: 3.938 kB / 476.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005568/0.2989, allocations: 0.7127 MB / 477 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.2989, allocations: 3.938 kB / 477 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.278e-05/0.299, allocations: 15.94 kB / 477 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.299, allocations: 0 / 477 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.107e-05/0.299, allocations: 7.141 kB / 477 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.914e-06/0.299, allocations: 0 / 477 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.2991, allocations: 4 kB / 477 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001635/0.2992, allocations: 198.6 kB / 477.2 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001101/0.2993, allocations: 157.9 kB / 477.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.031e-05/0.2994, allocations: 8 kB / 477.3 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001195/0.2995, allocations: 4 kB / 477.3 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.827e-05/0.2996, allocations: 7.281 kB / 477.4 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.76e-06/0.2996, allocations: 4 kB / 477.4 MB, free: 14.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0003542/0.2999, allocations: 412.6 kB / 477.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2999, allocations: 0 / 477.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006479/0.3006, allocations: 250.5 kB / 478 MB, free: 14.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007585/0.3013, allocations: 1.019 MB / 479 MB, free: 13.08 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002889/0.3016, allocations: 223.9 kB / 479.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.3017, allocations: 0 / 479.2 MB, free: 12.89 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.263e-05/0.3017, allocations: 39.05 kB / 479.3 MB, free: 12.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006464/0.3024, allocations: 115 kB / 479.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.3059, allocations: 4.382 MB / 483.8 MB, free: 8.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001773/0.3061, allocations: 0.8129 MB / 484.6 MB, free: 7.57 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004061/0.3065, allocations: 139.2 kB / 484.7 MB, free: 7.449 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001756/0.3067, allocations: 170.6 kB / 484.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3067, allocations: 0 / 484.9 MB, free: 7.301 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02254/0.3293, allocations: 12.56 MB / 497.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001801/0.3295, allocations: 197.9 kB / 497.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.227, allocations: 0 / 497.6 MB, free: 13.84 MB / 366.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/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)