Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.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.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",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.005924/0.005924, 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.002702/0.002701, allocations: 194.2 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.889/2.889, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.4399/0.4399, allocations: 15.32 MB / 305.7 MB, free: 15.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002409/0.00241, allocations: 55.91 kB / 370.4 MB, free: 3.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2434/0.2459, allocations: 53.61 MB / 424 MB, free: 14.2 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.AcidBase.CarbonDioxideInBlood): time 0.462/0.708, allocations: 33.79 MB / 457.8 MB, free: 37.43 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.09861/0.8066, allocations: 47.39 MB / 0.4934 GB, free: 10.18 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004124/0.8108, allocations: 38.06 kB / 0.4934 GB, free: 10.17 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005919/0.8168, allocations: 1.017 MB / 0.4944 GB, free: 9.582 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.02608/0.8429, allocations: 3.707 MB / 0.498 GB, free: 6.828 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.04405/0.887, allocations: 6.377 MB / 0.5043 GB, free: 1.613 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0138/0.9009, allocations: 4.508 MB / 0.5087 GB, free: 13.52 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009114/0.9101, allocations: 2.662 MB / 0.5113 GB, free: 11.37 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008054/0.9182, allocations: 2.23 MB / 0.5134 GB, free: 9.363 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008804/0.9271, allocations: 2.561 MB / 0.5159 GB, free: 7.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003206/0.9304, allocations: 416 kB / 0.5163 GB, free: 6.895 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.04821/0.9786, allocations: 5.288 MB / 0.5215 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004104/0.9828, allocations: 0.9738 MB / 0.5225 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.009206/0.9921, allocations: 2.03 MB / 0.5244 GB, free: 14.7 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.06388/1.056, allocations: 9.826 MB / 0.534 GB, free: 4.844 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/1.056, allocations: 0 / 0.534 GB, free: 4.844 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.915e-06/1.056, allocations: 0 / 0.534 GB, free: 4.844 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0002215/1.056, allocations: 0 / 0.534 GB, free: 4.844 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.02994/1.086, allocations: 4.758 MB / 0.5387 GB, free: 20 kB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.528e-05/1.087, allocations: 8.031 kB / 0.5387 GB, free: 12 kB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001882/1.088, allocations: 426.7 kB / 0.5391 GB, free: 15.58 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01003/1.098, allocations: 0.8312 MB / 0.5399 GB, free: 14.75 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006301/1.105, allocations: 1.609 MB / 0.5415 GB, free: 13.09 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00482/1.11, allocations: 298.3 kB / 0.5418 GB, free: 12.78 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002168/1.112, allocations: 336 kB / 0.5421 GB, free: 12.45 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03313/1.145, allocations: 4.476 MB / 0.5465 GB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003712/1.146, allocations: 0 / 0.5465 GB, free: 7.906 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002204/1.148, allocations: 128 kB / 0.5466 GB, free: 7.781 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/1.148, allocations: 76 kB / 0.5467 GB, free: 7.707 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0426/1.191, allocations: 6.107 MB / 0.5526 GB, free: 1.59 MB / 414.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.07611/1.267, allocations: 14.06 MB / 0.5663 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02174/1.289, allocations: 6.316 MB / 0.5725 GB, free: 12.63 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007824/1.297, allocations: 2.243 MB / 0.5747 GB, free: 10.38 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04725/1.344, allocations: 14.77 MB / 0.5891 GB, free: 10.26 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.94e-05/1.344, allocations: 68.78 kB / 0.5892 GB, free: 10.18 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003528/1.348, allocations: 381 kB / 0.5896 GB, free: 9.809 MB / 462.1 MB Notification: Performance of pre-optimization done (n=284): time 1.756e-05/1.348, allocations: 0 / 0.5896 GB, free: 9.809 MB / 462.1 MB Notification: Performance of matching and sorting (n=387): time 0.5482/1.896, allocations: 23.82 MB / 0.6128 GB, free: 127.6 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001003/1.896, allocations: 88.92 kB / 0.6129 GB, free: 127.5 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003858/1.9, allocations: 1.717 MB / 0.6146 GB, free: 126.8 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0009741/1.901, allocations: 88.61 kB / 0.6147 GB, free: 126.7 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001214/1.902, allocations: 1.304 MB / 0.6159 GB, free: 125.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002397/1.905, allocations: 1.311 MB / 0.6172 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003467/1.908, allocations: 0.781 MB / 0.618 GB, free: 124.3 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 6.619e-05/1.908, allocations: 303.9 kB / 0.6183 GB, free: 124 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005393/1.914, allocations: 1.817 MB / 0.62 GB, free: 123.3 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007277/1.921, allocations: 2.815 MB / 0.6228 GB, free: 121.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01774/1.939, allocations: 4.937 MB / 0.6276 GB, free: 118.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001117/1.939, allocations: 12.2 kB / 0.6276 GB, free: 118.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.03783/1.977, allocations: 6.807 MB / 0.6343 GB, free: 116.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001098/1.977, allocations: 16.81 kB / 0.6343 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001108/1.977, allocations: 30.56 kB / 0.6343 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0217/1.999, allocations: 2.289 MB / 0.6365 GB, free: 115.7 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00752/2.006, allocations: 0.8914 MB / 0.6374 GB, free: 115.6 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04194/2.048, allocations: 18.4 MB / 0.6554 GB, free: 101.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006396/2.055, allocations: 145.4 kB / 0.6555 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001423/2.056, allocations: 232.6 kB / 0.6557 GB, free: 101.3 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (469): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,26), (1,3), (1,6), (1,2), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.003191/2.06, allocations: 0.6021 MB / 0.6563 GB, free: 100.9 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001347/2.061, allocations: 269.8 kB / 0.6566 GB, free: 100.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03408/2.095, allocations: 6.585 MB / 0.663 GB, free: 98.25 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001248/2.095, allocations: 40.5 kB / 0.6631 GB, free: 98.25 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.808e-05/2.095, allocations: 7.094 kB / 0.6631 GB, free: 98.25 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002105/2.095, allocations: 22.38 kB / 0.6631 GB, free: 98.25 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04408/2.14, allocations: 10.67 MB / 0.6735 GB, free: 90.78 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.423e-05/2.14, allocations: 4 kB / 0.6735 GB, free: 90.78 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01022/2.15, allocations: 0.6541 MB / 0.6742 GB, free: 90.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.02/2.17, allocations: 2.022 MB / 0.6761 GB, free: 88.14 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001227/2.171, allocations: 135.9 kB / 0.6763 GB, free: 88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0352/2.207, allocations: 17.03 MB / 0.6929 GB, free: 70.04 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/2.207, allocations: 7.938 kB / 0.6929 GB, free: 70.04 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03422/2.241, allocations: 8.475 MB / 0.7012 GB, free: 61.47 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002972/2.244, allocations: 0.6885 MB / 0.7018 GB, free: 60.76 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001335/2.245, allocations: 84 kB / 0.7019 GB, free: 60.68 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004498/2.25, allocations: 96.06 kB / 0.702 GB, free: 60.59 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001463/2.251, allocations: 333.4 kB / 0.7023 GB, free: 60.27 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006524/2.252, allocations: 167.8 kB / 0.7025 GB, free: 60.1 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002263/2.254, allocations: 1.113 MB / 0.7036 GB, free: 58.96 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.61e-07/2.254, allocations: 0 / 0.7036 GB, free: 58.96 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.01307/2.267, allocations: 2.178 MB / 0.7057 GB, free: 57.01 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,blood_plasma.mass,HCO3.logn,CO2.logn,H2O.logn,HCO3_E.logn,CO2_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,others_E.logn,others_P.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 (354): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,8), (4,30), (1,3), (1,2), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04371/2.311, allocations: 11.12 MB / 0.7166 GB, free: 46.4 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.03748/2.349, allocations: 6.475 MB / 0.7229 GB, free: 39.9 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.541e-05/2.349, allocations: 4 kB / 0.7229 GB, free: 39.89 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.01074/2.36, allocations: 3.55 MB / 0.7264 GB, free: 36.27 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006965/2.367, allocations: 0.5507 MB / 0.7269 GB, free: 35.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1648/2.532, allocations: 34.32 MB / 0.7604 GB, free: 15.08 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/2.535, allocations: 1.885 MB / 0.7623 GB, free: 13.16 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0117/2.546, allocations: 0.6709 MB / 0.7629 GB, free: 12.54 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005725/2.552, allocations: 1.553 MB / 0.7644 GB, free: 10.99 MB / 478.1 MB Notification: Performance of SimCode: time 6.872e-06/2.552, allocations: 0 / 0.7644 GB, free: 10.99 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.113/3.665, allocations: 109.9 MB / 0.8717 GB, free: 76.73 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 31.5/35.17, allocations: 14.83 kB / 0.8717 GB, free: 76.72 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)