Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.SimpleReaction.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.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction",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.004926/0.004926, allocations: 99.34 kB / 15.73 MB, free: 6.008 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.001108/0.001108, allocations: 198.4 kB / 16.67 MB, free: 5.934 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.319/1.319, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2008/0.2008, allocations: 15.32 MB / 305.9 MB, free: 15.25 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 67.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2308/0.2321, allocations: 53.59 MB / 478.3 MB, free: 25.66 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66: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:4740:7-4740:66: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.SimpleReaction): time 0.03056/0.2627, allocations: 23.89 MB / 0.4904 GB, free: 10.87 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007591/0.2704, allocations: 7.959 MB / 0.4982 GB, free: 2.875 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007115/0.2711, allocations: 7.938 kB / 0.4982 GB, free: 2.867 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000586/0.2717, allocations: 190.5 kB / 0.4984 GB, free: 2.68 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001596/0.2733, allocations: 0.6942 MB / 0.4991 GB, free: 1.98 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002147/0.2755, allocations: 1.033 MB / 0.5001 GB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008063/0.2763, allocations: 0.9395 MB / 0.501 GB, free: 15.99 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005957/0.2769, allocations: 0.5095 MB / 0.5015 GB, free: 15.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004941/0.2774, allocations: 454.7 kB / 0.5019 GB, free: 15.04 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006494/0.2781, allocations: 498.3 kB / 0.5024 GB, free: 14.55 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.2782, allocations: 80 kB / 0.5025 GB, free: 14.47 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002766/0.281, allocations: 0.8582 MB / 0.5033 GB, free: 13.61 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002517/0.2812, allocations: 199.3 kB / 0.5035 GB, free: 13.42 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004642/0.2817, allocations: 418.1 kB / 0.5039 GB, free: 13.01 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003006/0.2847, allocations: 1.766 MB / 0.5056 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.2847, allocations: 0 / 0.5056 GB, free: 11.23 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.884e-06/0.2848, allocations: 0 / 0.5056 GB, free: 11.23 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.274e-05/0.2848, allocations: 4 kB / 0.5056 GB, free: 11.23 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.00204/0.2868, allocations: 1.195 MB / 0.5068 GB, free: 9.98 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.2869, allocations: 8.031 kB / 0.5068 GB, free: 9.973 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001368/0.287, allocations: 114.6 kB / 0.5069 GB, free: 9.852 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006243/0.2876, allocations: 156.1 kB / 0.5071 GB, free: 9.699 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007002/0.2884, allocations: 487.6 kB / 0.5075 GB, free: 9.184 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.711e-05/0.2885, allocations: 76.27 kB / 0.5076 GB, free: 9.105 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001162/0.2886, allocations: 72.33 kB / 0.5077 GB, free: 9.035 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001222/0.2898, allocations: 0.7737 MB / 0.5084 GB, free: 8.242 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.2898, allocations: 4 kB / 0.5084 GB, free: 8.238 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.831e-05/0.2899, allocations: 32 kB / 0.5085 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.391e-05/0.2899, allocations: 16 kB / 0.5085 GB, free: 8.191 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001318/0.2913, allocations: 0.8796 MB / 0.5093 GB, free: 7.312 MB / 382.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003847/0.2951, allocations: 2.575 MB / 0.5118 GB, free: 4.586 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.2966, allocations: 1.021 MB / 0.5128 GB, free: 3.52 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00044/0.2971, allocations: 298.4 kB / 0.5131 GB, free: 3.223 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003565/0.3006, allocations: 2.828 MB / 0.5159 GB, free: 68 kB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.3007, allocations: 46.55 kB / 0.5159 GB, free: 12 kB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 1.733e-06/0.3007, allocations: 0 / 0.5159 GB, free: 12 kB / 382.1 MB Notification: Performance of matching and sorting (n=46): time 0.002436/0.3031, allocations: 1.241 MB / 0.5171 GB, free: 14.71 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.072e-05/0.3032, allocations: 63.41 kB / 0.5172 GB, free: 14.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000426/0.3036, allocations: 413.8 kB / 0.5176 GB, free: 14.23 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.256e-05/0.3037, allocations: 33.7 kB / 0.5176 GB, free: 14.19 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002217/0.3039, allocations: 380 kB / 0.518 GB, free: 13.82 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001153/0.304, allocations: 174.5 kB / 0.5182 GB, free: 13.64 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.3042, allocations: 122.6 kB / 0.5183 GB, free: 13.52 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001285/0.3043, allocations: 362.8 kB / 0.5186 GB, free: 13.16 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.3046, allocations: 149.9 kB / 0.5188 GB, free: 13.01 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004138/0.305, allocations: 389.5 kB / 0.5191 GB, free: 12.53 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007383/0.3058, allocations: 0.5787 MB / 0.5197 GB, free: 11.84 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.3058, allocations: 3.938 kB / 0.5197 GB, free: 11.84 MB / 398.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.0008955/0.3067, allocations: 0.6087 MB / 0.5203 GB, free: 11.22 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.902e-05/0.3067, allocations: 11.94 kB / 0.5203 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.019e-05/0.3067, allocations: 8 kB / 0.5203 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.3067, allocations: 12.78 kB / 0.5203 GB, free: 11.19 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007067/0.3075, allocations: 207.7 kB / 0.5205 GB, free: 10.98 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.005e-05/0.3075, allocations: 19.92 kB / 0.5206 GB, free: 10.96 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003038/0.3078, allocations: 20 kB / 0.5206 GB, free: 10.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.211e-05/0.3079, allocations: 32 kB / 0.5206 GB, free: 10.91 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * 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 (83): * Single equations (assignments): 83 * 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.000232/0.3081, allocations: 209.5 kB / 0.5208 GB, free: 10.7 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.377e-05/0.3082, allocations: 59.56 kB / 0.5209 GB, free: 10.64 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008669/0.3091, allocations: 0.4975 MB / 0.5213 GB, free: 10.14 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.3091, allocations: 7.984 kB / 0.5214 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.799e-06/0.3091, allocations: 0 / 0.5214 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.561e-06/0.3091, allocations: 0 / 0.5214 GB, free: 10.13 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009267/0.31, allocations: 0.6237 MB / 0.522 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.31, allocations: 4 kB / 0.522 GB, free: 9.434 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005709/0.3106, allocations: 140 kB / 0.5221 GB, free: 9.297 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.969e-06/0.3106, allocations: 7.938 kB / 0.5221 GB, free: 9.289 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.56e-05/0.3107, allocations: 19.98 kB / 0.5221 GB, free: 9.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.303e-06/0.3107, allocations: 4 kB / 0.5221 GB, free: 9.266 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.3107, allocations: 3.938 kB / 0.5221 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009832/0.3117, allocations: 0.7307 MB / 0.5228 GB, free: 8.504 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001949/0.3119, allocations: 160.7 kB / 0.523 GB, free: 8.328 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.787e-05/0.312, allocations: 15.94 kB / 0.523 GB, free: 8.312 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002157/0.3122, allocations: 12 kB / 0.523 GB, free: 8.301 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.229e-05/0.3123, allocations: 44.33 kB / 0.5231 GB, free: 8.254 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.373e-05/0.3123, allocations: 23.98 kB / 0.5231 GB, free: 8.23 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002806/0.3126, allocations: 271.2 kB / 0.5234 GB, free: 7.965 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3126, allocations: 0 / 0.5234 GB, free: 7.965 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000877/0.3135, allocations: 335.1 kB / 0.5237 GB, free: 7.637 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 3 (solution.temperature,A.logn,B.logn) * 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 (53): * Single equations (assignments): 53 * 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.001934/0.3154, allocations: 1.594 MB / 0.5252 GB, free: 6.004 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007713/0.3162, allocations: 434.7 kB / 0.5256 GB, free: 5.586 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.059e-06/0.3162, allocations: 0 / 0.5256 GB, free: 5.586 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002955/0.3165, allocations: 214.4 kB / 0.5258 GB, free: 5.371 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007255/0.3173, allocations: 128.5 kB / 0.526 GB, free: 5.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005866/0.3231, allocations: 4.802 MB / 0.5307 GB, free: 140 kB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/0.3237, allocations: 0.8899 MB / 0.5315 GB, free: 15.22 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003963/0.3241, allocations: 124.6 kB / 0.5316 GB, free: 15.09 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003505/0.3244, allocations: 255.3 kB / 0.5319 GB, free: 14.84 MB / 414.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3244, allocations: 0 / 0.5319 GB, free: 14.84 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03741/0.3619, allocations: 15.25 MB / 0.5468 GB, free: 15.68 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.645/9.006, allocations: 7.922 kB / 0.5468 GB, free: 15.68 MB / 430.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.SimpleReaction_res.csv --start-time 0 --stop-time 0.001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-07 Chemical_Chemical_Examples_SimpleReaction.fmu > Chemical_Chemical.Examples.SimpleReaction.pipe 2>&1)