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.005802/0.005802, allocations: 100.9 kB / 15.73 MB, free: 6.039 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.001458/0.001457, allocations: 202.3 kB / 16.68 MB, free: 5.965 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2132/0.2132, allocations: 15.32 MB / 305.9 MB, free: 15.29 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 68.08 kB / 424.7 MB, free: 13.59 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2792, allocations: 53.6 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.AcidBase.CarbonDioxideInBlood): time 0.03536/0.3146, allocations: 33.88 MB / 0.5002 GB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05296/0.3675, allocations: 47.4 MB / 0.5465 GB, free: 1.238 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00273/0.3703, allocations: 39.75 kB / 0.5465 GB, free: 1.199 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003168/0.3735, allocations: 1.024 MB / 0.5475 GB, free: 172 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01133/0.3849, allocations: 3.729 MB / 0.5512 GB, free: 12.41 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01779/0.4027, allocations: 6.415 MB / 0.5574 GB, free: 5.961 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008657/0.4114, allocations: 4.539 MB / 0.5619 GB, free: 1.402 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004877/0.4163, allocations: 2.655 MB / 0.5645 GB, free: 14.69 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003876/0.4202, allocations: 2.244 MB / 0.5667 GB, free: 12.44 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00412/0.4243, allocations: 2.562 MB / 0.5692 GB, free: 9.867 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001421/0.4258, allocations: 416 kB / 0.5696 GB, free: 9.461 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01566/0.4414, allocations: 5.285 MB / 0.5747 GB, free: 4.168 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001756/0.4432, allocations: 0.9815 MB / 0.5757 GB, free: 3.184 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003509/0.4467, allocations: 2.023 MB / 0.5776 GB, free: 1.152 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02152/0.4683, allocations: 9.93 MB / 0.5873 GB, free: 7.184 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.759e-06/0.4683, allocations: 0 / 0.5873 GB, free: 7.184 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.313e-06/0.4683, allocations: 0 / 0.5873 GB, free: 7.184 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001636/0.4685, allocations: 0 / 0.5873 GB, free: 7.184 MB / 462.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.01161/0.4801, allocations: 4.891 MB / 0.5921 GB, free: 2.215 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.912e-05/0.4802, allocations: 8.031 kB / 0.5921 GB, free: 2.207 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007417/0.4809, allocations: 430.6 kB / 0.5925 GB, free: 1.773 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004029/0.485, allocations: 0.8448 MB / 0.5934 GB, free: 0.9258 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003017/0.488, allocations: 1.676 MB / 0.595 GB, free: 15.19 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002223/0.4882, allocations: 294.3 kB / 0.5953 GB, free: 14.89 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000582/0.4888, allocations: 332.2 kB / 0.5956 GB, free: 14.57 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007194/0.496, allocations: 4.48 MB / 0.6 GB, free: 10.02 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.809e-05/0.4961, allocations: 3.938 kB / 0.6 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000336/0.4965, allocations: 128 kB / 0.6001 GB, free: 9.887 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.146e-05/0.4965, allocations: 76 kB / 0.6002 GB, free: 9.812 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009434/0.506, allocations: 6.103 MB / 0.6061 GB, free: 3.699 MB / 478.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.2438/0.7498, allocations: 13.99 MB / 0.6198 GB, free: 107.6 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008923/0.7587, allocations: 6.328 MB / 0.626 GB, free: 104.7 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003406/0.7622, allocations: 2.236 MB / 0.6282 GB, free: 103.7 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01881/0.781, allocations: 14.78 MB / 0.6426 GB, free: 92.14 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.475e-05/0.7811, allocations: 62.14 kB / 0.6427 GB, free: 92.07 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001645/0.7827, allocations: 380.5 kB / 0.643 GB, free: 91.9 MB / 478.1 MB Notification: Performance of pre-optimization done (n=284): time 6.422e-06/0.7828, allocations: 3.875 kB / 0.643 GB, free: 91.9 MB / 478.1 MB Notification: Performance of matching and sorting (n=387): time 0.08174/0.8645, allocations: 23.91 MB / 0.6664 GB, free: 77.78 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.103e-05/0.8646, allocations: 94.45 kB / 0.6665 GB, free: 77.67 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001642/0.8662, allocations: 1.708 MB / 0.6681 GB, free: 75.94 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004724/0.8667, allocations: 85.7 kB / 0.6682 GB, free: 75.85 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005292/0.8672, allocations: 1.343 MB / 0.6695 GB, free: 74.65 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008808/0.8681, allocations: 1.381 MB / 0.6709 GB, free: 73.46 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009726/0.8691, allocations: 0.7785 MB / 0.6716 GB, free: 72.67 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.37e-05/0.8692, allocations: 305.1 kB / 0.6719 GB, free: 72.37 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002446/0.8716, allocations: 1.816 MB / 0.6737 GB, free: 70.54 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002894/0.8745, allocations: 2.822 MB / 0.6764 GB, free: 67.32 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006012/0.8805, allocations: 4.935 MB / 0.6813 GB, free: 62.02 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.67e-05/0.8806, allocations: 8 kB / 0.6813 GB, free: 62.01 MB / 478.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01749/0.8981, allocations: 6.826 MB / 0.6879 GB, free: 55.19 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.78e-05/0.8982, allocations: 19.94 kB / 0.688 GB, free: 55.17 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.075e-05/0.8982, allocations: 34.69 kB / 0.688 GB, free: 55.14 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01006/0.9083, allocations: 2.284 MB / 0.6902 GB, free: 52.88 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00371/0.912, allocations: 0.8958 MB / 0.6911 GB, free: 51.99 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02896/0.941, allocations: 18.41 MB / 0.7091 GB, free: 32.67 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004938/0.946, allocations: 140.8 kB / 0.7092 GB, free: 32.54 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001235/0.9473, allocations: 227.9 kB / 0.7094 GB, free: 32.31 MB / 478.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.002808/0.9501, allocations: 0.6068 MB / 0.71 GB, free: 31.71 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001552/0.9517, allocations: 286.1 kB / 0.7103 GB, free: 31.43 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02293/0.9746, allocations: 6.578 MB / 0.7167 GB, free: 24.95 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.353e-05/0.9747, allocations: 40 kB / 0.7168 GB, free: 24.91 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.61e-05/0.9747, allocations: 10.69 kB / 0.7168 GB, free: 24.91 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001018/0.9748, allocations: 19.92 kB / 0.7168 GB, free: 24.89 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02378/0.9986, allocations: 10.65 MB / 0.7272 GB, free: 14.22 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.787e-05/0.9987, allocations: 4 kB / 0.7272 GB, free: 14.21 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002955/1.002, allocations: 0.6619 MB / 0.7278 GB, free: 13.55 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009004/1.011, allocations: 2.004 MB / 0.7298 GB, free: 11.57 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006947/1.011, allocations: 135.9 kB / 0.7299 GB, free: 11.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02176/1.033, allocations: 17.04 MB / 0.7466 GB, free: 9.469 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/1.033, allocations: 7.938 kB / 0.7466 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02134/1.055, allocations: 8.489 MB / 0.7549 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002075/1.057, allocations: 0.7121 MB / 0.7556 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008607/1.058, allocations: 83 kB / 0.7556 GB, free: 68 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002541/1.06, allocations: 102.8 kB / 0.7557 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008212/1.061, allocations: 340.7 kB / 0.7561 GB, free: 15.64 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004019/1.061, allocations: 151.9 kB / 0.7562 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001458/1.063, allocations: 1.121 MB / 0.7573 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/1.063, allocations: 2.875 kB / 0.7573 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.007132/1.07, allocations: 2.202 MB / 0.7594 GB, free: 12.18 MB / 0.4981 GB 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.02525/1.095, allocations: 11.17 MB / 0.7704 GB, free: 1.242 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01162/1.107, allocations: 5.857 MB / 0.7761 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.107, allocations: 4.062 kB / 0.7761 GB, free: 11.3 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.006914/1.114, allocations: 3.55 MB / 0.7796 GB, free: 7.66 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003482/1.117, allocations: 0.5535 MB / 0.7801 GB, free: 7.141 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07019/1.188, allocations: 31.22 MB / 0.8106 GB, free: 6.676 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002021/1.19, allocations: 1.885 MB / 0.8124 GB, free: 4.758 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.003103/1.193, allocations: 0.6693 MB / 0.8131 GB, free: 4.113 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002663/1.195, allocations: 1.546 MB / 0.8146 GB, free: 2.562 MB / 0.545 GB Notification: Performance of SimCode: time 1.523e-06/1.195, allocations: 4 kB / 0.8146 GB, free: 2.559 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4029/1.598, allocations: 110.9 MB / 0.9229 GB, free: 102.3 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 49.74/51.34, allocations: 11.75 kB / 0.9229 GB, free: 102.3 MB / 0.545 GB (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)