Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.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.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_SimpleReaction2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.SimpleReaction2,fileNamePrefix="Chemical_Chemical_Examples_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.001855/0.001855, allocations: 108 kB / 15.6 MB, free: 132 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.003082/0.003082, allocations: 198.7 kB / 16.54 MB, free: 6.672 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.988/2.988, allocations: 222.9 MB / 240.2 MB, free: 4.379 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.583/0.583, allocations: 15.31 MB / 305.7 MB, free: 15.32 MB / 254.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.003012/0.003012, allocations: 59.91 kB / 370.4 MB, free: 3.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.234/0.237, allocations: 53.61 MB / 424 MB, free: 14.19 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.SimpleReaction2): time 0.9463/1.183, allocations: 24.6 MB / 448.6 MB, free: 39.59 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02197/1.205, allocations: 11.61 MB / 460.3 MB, free: 33.81 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001445/1.207, allocations: 9.938 kB / 460.3 MB, free: 33.81 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001946/1.209, allocations: 263.2 kB / 460.5 MB, free: 33.66 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006416/1.215, allocations: 0.9722 MB / 461.5 MB, free: 33.12 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008523/1.224, allocations: 1.509 MB / 463 MB, free: 32.46 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004486/1.229, allocations: 1.251 MB / 464.3 MB, free: 32.15 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00181/1.23, allocations: 0.6946 MB / 465 MB, free: 32.04 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001839/1.232, allocations: 0.6066 MB / 465.6 MB, free: 31.85 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002382/1.235, allocations: 0.6632 MB / 466.2 MB, free: 31.57 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004695/1.235, allocations: 106 kB / 466.3 MB, free: 31.57 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01096/1.246, allocations: 1.288 MB / 467.6 MB, free: 31.25 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001008/1.247, allocations: 255.8 kB / 467.9 MB, free: 31.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001599/1.249, allocations: 0.5522 MB / 468.4 MB, free: 30.77 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01502/1.264, allocations: 2.488 MB / 470.9 MB, free: 29.67 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.51e-05/1.264, allocations: 0 / 470.9 MB, free: 29.67 MB / 366.1 MB Notification: Performance of FrontEnd: time 3.918e-06/1.264, allocations: 7.938 kB / 470.9 MB, free: 29.66 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.013e-05/1.264, allocations: 0 / 470.9 MB, free: 29.66 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: 222 * Number of variables: 222 Notification: Performance of Generate backend data structure: time 0.006108/1.27, allocations: 1.484 MB / 472.4 MB, free: 28.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 9.079e-05/1.27, allocations: 9.781 kB / 472.4 MB, free: 28.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003299/1.271, allocations: 139.3 kB / 472.5 MB, free: 28.62 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001939/1.273, allocations: 213.9 kB / 472.8 MB, free: 28.56 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001626/1.274, allocations: 0.5582 MB / 473.3 MB, free: 28.16 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001958/1.274, allocations: 98.3 kB / 473.4 MB, free: 28.09 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002622/1.275, allocations: 90.45 kB / 473.5 MB, free: 28.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002994/1.278, allocations: 1.051 MB / 474.5 MB, free: 27.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.375e-05/1.278, allocations: 1.312 kB / 474.5 MB, free: 27.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001504/1.278, allocations: 34.78 kB / 474.6 MB, free: 27.61 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.103e-05/1.278, allocations: 21.06 kB / 474.6 MB, free: 27.61 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003835/1.282, allocations: 1.274 MB / 475.9 MB, free: 27.25 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.009885/1.292, allocations: 3.488 MB / 479.4 MB, free: 25.07 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004289/1.296, allocations: 1.536 MB / 480.9 MB, free: 24.34 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001244/1.297, allocations: 446.8 kB / 481.3 MB, free: 24.15 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008902/1.306, allocations: 4.04 MB / 485.4 MB, free: 20.93 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.781e-05/1.306, allocations: 43.2 kB / 485.4 MB, free: 20.88 MB / 366.1 MB Notification: Performance of pre-optimization done (n=56): time 4.288e-06/1.306, allocations: 0 / 485.4 MB, free: 20.88 MB / 366.1 MB Notification: Performance of matching and sorting (n=63): time 0.006448/1.313, allocations: 1.662 MB / 487.1 MB, free: 20 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.002e-05/1.313, allocations: 57.59 kB / 487.1 MB, free: 19.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001322/1.314, allocations: 0.5119 MB / 487.6 MB, free: 19.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.508e-05/1.315, allocations: 39.77 kB / 487.7 MB, free: 19.66 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005606/1.315, allocations: 460.7 kB / 488.1 MB, free: 19.29 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003406/1.315, allocations: 225.2 kB / 488.4 MB, free: 19.11 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004474/1.316, allocations: 173.9 kB / 488.5 MB, free: 19.03 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002763/1.316, allocations: 377.6 kB / 488.9 MB, free: 18.68 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007463/1.317, allocations: 211.6 kB / 489.1 MB, free: 18.62 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001158/1.318, allocations: 0.535 MB / 489.6 MB, free: 18.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001933/1.32, allocations: 0.8066 MB / 490.4 MB, free: 17.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.355e-05/1.32, allocations: 2.75 kB / 490.4 MB, free: 17.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=115) (initialization): time 0.002813/1.323, allocations: 0.8518 MB / 491.3 MB, free: 17.1 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.525e-05/1.323, allocations: 14.5 kB / 491.3 MB, free: 17.1 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.089e-05/1.323, allocations: 14.44 kB / 491.3 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.599e-05/1.323, allocations: 20.66 kB / 491.3 MB, free: 17.09 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001686/1.325, allocations: 262.3 kB / 491.6 MB, free: 17.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.038e-05/1.325, allocations: 25.95 kB / 491.6 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009273/1.326, allocations: 31.92 kB / 491.7 MB, free: 17.04 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001371/1.326, allocations: 46.22 kB / 491.7 MB, free: 17.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 49 * 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 (115): * Single equations (assignments): 115 * 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.0005755/1.327, allocations: 240.8 kB / 491.9 MB, free: 16.84 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001966/1.327, allocations: 69.38 kB / 492 MB, free: 16.8 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002359/1.329, allocations: 0.6837 MB / 492.7 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.351e-05/1.329, allocations: 6.906 kB / 492.7 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.095e-05/1.329, allocations: 4 kB / 492.7 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.95e-05/1.329, allocations: 3.328 kB / 492.7 MB, free: 16.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001673/1.331, allocations: 0.7699 MB / 493.5 MB, free: 16.03 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.434e-06/1.331, allocations: 0 / 493.5 MB, free: 16.03 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001157/1.332, allocations: 179.1 kB / 493.6 MB, free: 16.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-05/1.332, allocations: 4.25 kB / 493.7 MB, free: 16.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.296e-05/1.332, allocations: 24.25 kB / 493.7 MB, free: 16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.177e-06/1.332, allocations: 4.078 kB / 493.7 MB, free: 16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.718e-06/1.332, allocations: 3.875 kB / 493.7 MB, free: 16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002235/1.335, allocations: 0.9563 MB / 494.6 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005424/1.335, allocations: 193.1 kB / 494.8 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001429/1.335, allocations: 16.3 kB / 494.8 MB, free: 15.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/1.336, allocations: 20.28 kB / 494.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002026/1.336, allocations: 50.22 kB / 494.9 MB, free: 15.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.729e-05/1.336, allocations: 27.86 kB / 494.9 MB, free: 15.31 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006265/1.337, allocations: 344.3 kB / 495.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.7e-07/1.337, allocations: 0 / 495.3 MB, free: 15.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002802/1.339, allocations: 481.1 kB / 495.7 MB, free: 15.04 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 4 (solution.temperature,A.logn,B.logn,C.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 (71): * Single equations (assignments): 71 * 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.005377/1.345, allocations: 1.968 MB / 497.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002617/1.349, allocations: 0.6444 MB / 498.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 7.424e-06/1.349, allocations: 1.812 kB / 498.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006371/1.35, allocations: 283 kB / 498.6 MB, free: 13.53 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001721/1.352, allocations: 163.7 kB / 498.8 MB, free: 13.46 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01384/1.365, allocations: 6.288 MB / 0.4932 GB, free: 9.332 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006951/1.366, allocations: 0.9646 MB / 0.4942 GB, free: 8.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.001294/1.367, allocations: 167.5 kB / 0.4943 GB, free: 8.543 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006973/1.368, allocations: 350.7 kB / 0.4947 GB, free: 8.309 MB / 366.1 MB Notification: Performance of SimCode: time 1.313e-06/1.368, allocations: 0 / 0.4947 GB, free: 8.309 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1888/1.557, allocations: 20.43 MB / 0.5146 GB, free: 7.5 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.42/19.98, allocations: 8.062 kB / 0.5146 GB, free: 7.492 MB / 382.1 MB (rm -f Chemical_Chemical.Examples.SimpleReaction2.pipe ; mkfifo Chemical_Chemical.Examples.SimpleReaction2.pipe ; head -c 1048576 < Chemical_Chemical.Examples.SimpleReaction2.pipe >> ../files/Chemical_Chemical.Examples.SimpleReaction2.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.SimpleReaction2_res.csv --start-time 0 --stop-time 0.0001 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-08 Chemical_Chemical_Examples_SimpleReaction2.fmu > Chemical_Chemical.Examples.SimpleReaction2.pipe 2>&1)