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.001643/0.001643, 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.002017/0.002017, allocations: 192.8 kB / 16.53 MB, free: 6.391 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.074/2.074, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2857/0.2857, allocations: 15.31 MB / 305.7 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002187/0.002187, allocations: 63.91 kB / 370.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1375/0.1397, allocations: 53.61 MB / 424 MB, free: 14.21 MB / 366.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.3572/0.497, allocations: 23.01 MB / 447.1 MB, free: 39.53 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007202/0.5042, allocations: 9.16 MB / 456.2 MB, free: 34.54 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003321/0.5046, allocations: 14.22 kB / 456.2 MB, free: 34.53 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000555/0.5051, allocations: 217.8 kB / 456.4 MB, free: 34.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007527/0.5059, allocations: 349.3 kB / 456.8 MB, free: 34.2 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002863/0.5088, allocations: 1.412 MB / 458.2 MB, free: 33.52 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006621/0.5094, allocations: 0.6647 MB / 458.9 MB, free: 33.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002566/0.5097, allocations: 240.2 kB / 459.1 MB, free: 33.29 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002455/0.51, allocations: 321.3 kB / 459.4 MB, free: 33.24 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003996/0.5104, allocations: 340.4 kB / 459.7 MB, free: 33.17 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.277e-05/0.5105, allocations: 35.66 kB / 459.8 MB, free: 33.17 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002267/0.5127, allocations: 0.8168 MB / 460.6 MB, free: 33.09 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001321/0.5129, allocations: 125.6 kB / 460.7 MB, free: 33.07 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002358/0.5131, allocations: 257.5 kB / 461 MB, free: 32.99 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002189/0.5153, allocations: 1.491 MB / 462.5 MB, free: 32.57 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.5153, allocations: 3.438 kB / 462.5 MB, free: 32.57 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.5153, allocations: 0 / 462.5 MB, free: 32.57 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.416e-06/0.5154, allocations: 4 kB / 462.5 MB, free: 32.56 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: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.001059/0.5164, allocations: 0.9345 MB / 463.4 MB, free: 31.94 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.746e-05/0.5165, allocations: 9.156 kB / 463.4 MB, free: 31.94 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.661e-05/0.5165, allocations: 64.3 kB / 463.5 MB, free: 31.9 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006978/0.5172, allocations: 165.4 kB / 463.6 MB, free: 31.87 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004914/0.5178, allocations: 441.3 kB / 464.1 MB, free: 31.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.003e-05/0.5178, allocations: 24.47 kB / 464.1 MB, free: 31.59 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.967e-05/0.5178, allocations: 28.81 kB / 464.1 MB, free: 31.59 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006862/0.5185, allocations: 0.532 MB / 464.7 MB, free: 31.47 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.5186, allocations: 0 / 464.7 MB, free: 31.47 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.61e-05/0.5186, allocations: 14.5 kB / 464.7 MB, free: 31.47 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.5186, allocations: 8.969 kB / 464.7 MB, free: 31.47 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009918/0.5196, allocations: 0.8035 MB / 465.5 MB, free: 31.39 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002079/0.5217, allocations: 1.883 MB / 467.4 MB, free: 30.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003857/0.5221, allocations: 218.1 kB / 467.6 MB, free: 30.01 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002257/0.5223, allocations: 133.2 kB / 467.7 MB, free: 29.96 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002559/0.5249, allocations: 2.709 MB / 470.4 MB, free: 27.7 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.074e-05/0.525, allocations: 35.69 kB / 470.4 MB, free: 27.66 MB / 366.1 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.525, allocations: 0 / 470.4 MB, free: 27.66 MB / 366.1 MB Notification: Performance of matching and sorting (n=17): time 0.0005505/0.5255, allocations: 288 kB / 470.7 MB, free: 27.54 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.5256, allocations: 57.62 kB / 470.8 MB, free: 27.48 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004254/0.526, allocations: 485 kB / 471.3 MB, free: 27.24 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.526, allocations: 30.83 kB / 471.3 MB, free: 27.21 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.5261, allocations: 290 kB / 471.6 MB, free: 26.97 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.486e-05/0.5262, allocations: 66.92 kB / 471.6 MB, free: 26.92 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001413/0.5263, allocations: 100.9 kB / 471.7 MB, free: 26.86 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.535e-05/0.5264, allocations: 362.5 kB / 472.1 MB, free: 26.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001505/0.5266, allocations: 87.47 kB / 472.2 MB, free: 26.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002332/0.5268, allocations: 364.5 kB / 472.5 MB, free: 26.11 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004237/0.5273, allocations: 497.6 kB / 473 MB, free: 25.64 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.939e-06/0.5273, allocations: 6.781 kB / 473 MB, free: 25.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.0006731/0.528, allocations: 480.8 kB / 473.5 MB, free: 25.43 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.784e-05/0.528, allocations: 9.969 kB / 473.5 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.528, allocations: 9.875 kB / 473.5 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.528, allocations: 21.03 kB / 473.5 MB, free: 25.43 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002949/0.5283, allocations: 114.3 kB / 473.6 MB, free: 25.41 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.75e-05/0.5284, allocations: 19.7 kB / 473.7 MB, free: 25.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002575/0.5286, allocations: 63.69 kB / 473.7 MB, free: 25.36 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.249e-05/0.5287, allocations: 36.38 kB / 473.8 MB, free: 25.36 MB / 366.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.0001394/0.5288, allocations: 175.1 kB / 473.9 MB, free: 25.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.308e-05/0.5289, allocations: 48.66 kB / 474 MB, free: 25.18 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006596/0.5296, allocations: 394.8 kB / 474.4 MB, free: 24.93 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.5296, allocations: 1.156 kB / 474.4 MB, free: 24.93 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.5296, allocations: 7.172 kB / 474.4 MB, free: 24.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.5296, allocations: 3.938 kB / 474.4 MB, free: 24.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006088/0.5302, allocations: 0.7139 MB / 475.1 MB, free: 24.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.5302, allocations: 6.094 kB / 475.1 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.847e-05/0.5303, allocations: 13.31 kB / 475.1 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.146e-06/0.5303, allocations: 1.125 kB / 475.1 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.5303, allocations: 2.188 kB / 475.1 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.026e-06/0.5303, allocations: 2.25 kB / 475.1 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.5304, allocations: 2.156 kB / 475.1 MB, free: 24.37 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001856/0.5305, allocations: 195.9 kB / 475.3 MB, free: 24.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.111e-05/0.5306, allocations: 139.5 kB / 475.4 MB, free: 24.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.817e-05/0.5307, allocations: 6.922 kB / 475.5 MB, free: 24.08 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.5308, allocations: 2.438 kB / 475.5 MB, free: 24.08 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.892e-05/0.5309, allocations: 10.5 kB / 475.5 MB, free: 24.07 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.292e-06/0.5309, allocations: 3.719 kB / 475.5 MB, free: 24.07 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003876/0.5313, allocations: 415.3 kB / 475.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.5313, allocations: 0 / 475.9 MB, free: 23.89 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006985/0.532, allocations: 250.5 kB / 476.1 MB, free: 23.82 MB / 366.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.0007913/0.5328, allocations: 1.034 MB / 477.2 MB, free: 23.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003545/0.5332, allocations: 224.5 kB / 477.4 MB, free: 22.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.5332, allocations: 1.812 kB / 477.4 MB, free: 22.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 5.04e-05/0.5332, allocations: 37.27 kB / 477.4 MB, free: 22.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005786/0.5338, allocations: 123.4 kB / 477.5 MB, free: 22.88 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004087/0.5379, allocations: 4.209 MB / 481.7 MB, free: 19.92 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000226/0.5382, allocations: 0.8149 MB / 482.6 MB, free: 19.21 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004723/0.5386, allocations: 138.3 kB / 482.7 MB, free: 19.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001898/0.5388, allocations: 171.8 kB / 482.9 MB, free: 19.05 MB / 366.1 MB Notification: Performance of SimCode: time 8.61e-07/0.5388, allocations: 1.281 kB / 482.9 MB, free: 19.05 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03338/0.5722, allocations: 12.95 MB / 495.8 MB, free: 17.02 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.122/9.695, allocations: 4.641 kB / 495.8 MB, free: 17.02 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 & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2_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_CheckSubstancesData_SimpleReaction2.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction2.pipe 2>&1)