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.002115/0.002115, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007537/0.007537, allocations: 196.7 kB / 16.53 MB, free: 6.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 3.157/3.157, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.618/0.618, allocations: 15.33 MB / 305.7 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00267/0.00267, allocations: 63.91 kB / 370.4 MB, free: 3.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.2297, allocations: 53.61 MB / 424.1 MB, free: 14.17 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.9985/1.228, allocations: 23.78 MB / 447.8 MB, free: 40.2 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01337/1.242, allocations: 7.974 MB / 455.8 MB, free: 36.38 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001099/1.243, allocations: 10.34 kB / 455.8 MB, free: 36.37 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001056/1.244, allocations: 184.5 kB / 456 MB, free: 36.27 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003888/1.248, allocations: 0.6848 MB / 456.7 MB, free: 35.88 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005172/1.253, allocations: 1.026 MB / 457.7 MB, free: 35.45 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.002517/1.256, allocations: 0.9327 MB / 458.6 MB, free: 35.21 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/1.257, allocations: 0.5132 MB / 459.2 MB, free: 35.14 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000978/1.258, allocations: 450.6 kB / 459.6 MB, free: 35.07 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001158/1.259, allocations: 0.4895 MB / 460.1 MB, free: 34.98 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002579/1.259, allocations: 78.41 kB / 460.2 MB, free: 34.98 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005412/1.265, allocations: 0.8652 MB / 461 MB, free: 34.9 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005312/1.265, allocations: 195.1 kB / 461.2 MB, free: 34.87 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009489/1.266, allocations: 421.3 kB / 461.6 MB, free: 34.75 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008688/1.275, allocations: 1.742 MB / 463.4 MB, free: 34.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.529e-05/1.275, allocations: 4.562 kB / 463.4 MB, free: 34.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.477e-06/1.275, allocations: 0 / 463.4 MB, free: 34.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.037e-05/1.275, allocations: 2.969 kB / 463.4 MB, free: 34.02 MB / 366.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.003697/1.279, allocations: 1.161 MB / 464.5 MB, free: 33.23 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.229e-05/1.279, allocations: 9.344 kB / 464.6 MB, free: 33.23 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001989/1.279, allocations: 109.2 kB / 464.7 MB, free: 33.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001192/1.28, allocations: 159.5 kB / 464.8 MB, free: 33.11 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001333/1.282, allocations: 467.4 kB / 465.3 MB, free: 32.76 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001835/1.282, allocations: 81.11 kB / 465.4 MB, free: 32.7 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002246/1.282, allocations: 69.03 kB / 465.4 MB, free: 32.68 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002467/1.285, allocations: 0.7766 MB / 466.2 MB, free: 32.35 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.194e-05/1.285, allocations: 1.219 kB / 466.2 MB, free: 32.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001139/1.285, allocations: 29.38 kB / 466.2 MB, free: 32.33 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.112e-05/1.285, allocations: 15.62 kB / 466.2 MB, free: 32.33 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00258/1.287, allocations: 0.8773 MB / 467.1 MB, free: 32.08 MB / 366.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.006692/1.294, allocations: 2.578 MB / 469.7 MB, free: 30.44 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002516/1.297, allocations: 1.02 MB / 470.7 MB, free: 29.9 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008114/1.298, allocations: 301.4 kB / 471 MB, free: 29.79 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005798/1.303, allocations: 2.844 MB / 473.9 MB, free: 27.52 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.251e-05/1.303, allocations: 41.25 kB / 473.9 MB, free: 27.47 MB / 366.1 MB Notification: Performance of pre-optimization done (n=41): time 3.717e-06/1.303, allocations: 0 / 473.9 MB, free: 27.47 MB / 366.1 MB Notification: Performance of matching and sorting (n=46): time 0.004099/1.308, allocations: 1.226 MB / 475.1 MB, free: 26.78 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.658e-05/1.308, allocations: 57.09 kB / 475.2 MB, free: 26.71 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007729/1.308, allocations: 413.4 kB / 475.6 MB, free: 26.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.202e-05/1.309, allocations: 39.08 kB / 475.6 MB, free: 26.47 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002779/1.309, allocations: 371.6 kB / 476 MB, free: 26.18 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001792/1.309, allocations: 165.4 kB / 476.1 MB, free: 26.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002723/1.309, allocations: 122.7 kB / 476.3 MB, free: 25.98 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/1.309, allocations: 365.5 kB / 476.6 MB, free: 25.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004004/1.31, allocations: 143.6 kB / 476.8 MB, free: 25.6 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005723/1.31, allocations: 391.2 kB / 477.1 MB, free: 25.25 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001095/1.312, allocations: 0.5835 MB / 477.7 MB, free: 24.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.127e-06/1.312, allocations: 2.25 kB / 477.7 MB, free: 24.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00184/1.313, allocations: 0.6142 MB / 478.3 MB, free: 24.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.356e-05/1.313, allocations: 15.34 kB / 478.4 MB, free: 24.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.013e-05/1.314, allocations: 8.688 kB / 478.4 MB, free: 24.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.104e-05/1.314, allocations: 12.81 kB / 478.4 MB, free: 24.49 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00115/1.315, allocations: 202.5 kB / 478.6 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.098e-05/1.315, allocations: 18.11 kB / 478.6 MB, free: 24.47 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000621/1.315, allocations: 23.34 kB / 478.6 MB, free: 24.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.557e-05/1.316, allocations: 34.81 kB / 478.6 MB, free: 24.45 MB / 366.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.0004295/1.316, allocations: 202.3 kB / 478.8 MB, free: 24.28 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001345/1.316, allocations: 59.47 kB / 478.9 MB, free: 24.25 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00148/1.318, allocations: 498.2 kB / 479.4 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.452e-05/1.318, allocations: 4.688 kB / 479.4 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.348e-06/1.318, allocations: 4 kB / 479.4 MB, free: 24.03 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.196e-05/1.318, allocations: 8.297 kB / 479.4 MB, free: 24.02 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001377/1.319, allocations: 0.622 MB / 480 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.02e-05/1.319, allocations: 8.109 kB / 480 MB, free: 23.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000897/1.32, allocations: 147.7 kB / 480.2 MB, free: 23.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.461e-05/1.32, allocations: 7.625 kB / 480.2 MB, free: 23.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.548e-05/1.32, allocations: 18.41 kB / 480.2 MB, free: 23.58 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.017e-05/1.32, allocations: 3.594 kB / 480.2 MB, free: 23.58 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.079e-06/1.32, allocations: 1.094 kB / 480.2 MB, free: 23.58 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001632/1.322, allocations: 0.7244 MB / 480.9 MB, free: 23.18 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003643/1.322, allocations: 154.2 kB / 481.1 MB, free: 23.04 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001111/1.322, allocations: 19.41 kB / 481.1 MB, free: 23.03 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003406/1.323, allocations: 11.47 kB / 481.1 MB, free: 23.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001356/1.323, allocations: 35.89 kB / 481.2 MB, free: 23.02 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.224e-05/1.323, allocations: 19.25 kB / 481.2 MB, free: 23.02 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006076/1.323, allocations: 277.6 kB / 481.4 MB, free: 22.88 MB / 366.1 MB Notification: Performance of sort global known variables: time 8.32e-07/1.323, allocations: 0 / 481.4 MB, free: 22.88 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002227/1.326, allocations: 331 kB / 481.8 MB, free: 22.8 MB / 366.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.004176/1.33, allocations: 1.585 MB / 483.4 MB, free: 21.75 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002115/1.332, allocations: 470.4 kB / 483.8 MB, free: 21.6 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/1.332, allocations: 0 / 483.8 MB, free: 21.6 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005748/1.333, allocations: 203.5 kB / 484 MB, free: 21.54 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001574/1.334, allocations: 131.8 kB / 484.1 MB, free: 21.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0151/1.349, allocations: 4.885 MB / 489 MB, free: 18.19 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008645/1.35, allocations: 0.8861 MB / 489.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.00115/1.352, allocations: 120.3 kB / 490 MB, free: 17.44 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006275/1.352, allocations: 256.9 kB / 490.3 MB, free: 17.27 MB / 366.1 MB Notification: Performance of SimCode: time 1.653e-06/1.352, allocations: 0 / 490.3 MB, free: 17.27 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2052/1.557, allocations: 15.06 MB / 0.4935 GB, free: 12.93 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.61/19.17, allocations: 27.3 kB / 0.4935 GB, free: 12.91 MB / 366.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)