Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.GasSolubility_blood.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.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.GasSolubility_blood,fileNamePrefix="Chemical_Chemical_Examples_GasSolubility_blood",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.007035/0.007035, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001465/0.001465, allocations: 190.8 kB / 16.67 MB, free: 5.969 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.352/1.352, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1/0.1, allocations: 15.31 MB / 305.8 MB, free: 15.41 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001234/0.001234, allocations: 63.91 kB / 424.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1185, allocations: 53.61 MB / 478.3 MB, free: 6.281 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.008228/0.1268, allocations: 6.949 MB / 485.2 MB, free: 15.3 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02404/0.1509, allocations: 21.77 MB / 0.4951 GB, free: 9.441 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009486/0.1519, allocations: 15.88 kB / 0.4951 GB, free: 9.426 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001716/0.1536, allocations: 457 kB / 0.4956 GB, free: 8.977 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004748/0.1584, allocations: 1.661 MB / 0.4972 GB, free: 7.305 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007441/0.1659, allocations: 2.819 MB / 0.5 GB, free: 4.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003261/0.1692, allocations: 1.822 MB / 0.5017 GB, free: 2.641 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00174/0.1709, allocations: 0.9254 MB / 0.5026 GB, free: 1.691 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001491/0.1724, allocations: 0.8455 MB / 0.5035 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.2594/0.4319, allocations: 0.9411 MB / 0.5044 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008233/0.4327, allocations: 152.5 kB / 0.5045 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009987/0.4427, allocations: 2.322 MB / 0.5068 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005087/0.4433, allocations: 363.7 kB / 0.5071 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001248/0.4445, allocations: 0.7888 MB / 0.5079 GB, free: 6.93 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0104/0.4549, allocations: 4.155 MB / 0.512 GB, free: 6.68 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.61e-06/0.455, allocations: 1.219 kB / 0.512 GB, free: 6.68 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.535e-06/0.455, allocations: 0 / 0.512 GB, free: 6.68 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.815e-05/0.455, allocations: 0.6562 kB / 0.512 GB, free: 6.68 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.004426/0.4595, allocations: 2.13 MB / 0.5141 GB, free: 5.578 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.348e-05/0.4595, allocations: 10.66 kB / 0.5141 GB, free: 5.578 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002302/0.4598, allocations: 180.3 kB / 0.5142 GB, free: 5.535 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001769/0.4615, allocations: 388.8 kB / 0.5146 GB, free: 5.449 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001445/0.463, allocations: 0.7557 MB / 0.5153 GB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.583e-05/0.4631, allocations: 96.53 kB / 0.5154 GB, free: 5.125 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002886/0.4634, allocations: 128.6 kB / 0.5156 GB, free: 5.121 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003456/0.4669, allocations: 1.763 MB / 0.5173 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.041e-05/0.4669, allocations: 1.125 kB / 0.5173 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001469/0.4671, allocations: 48.81 kB / 0.5173 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.524e-05/0.4671, allocations: 30.59 kB / 0.5174 GB, free: 4.996 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004197/0.4713, allocations: 2.483 MB / 0.5198 GB, free: 4.98 MB / 382.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.008951/0.4803, allocations: 5.09 MB / 0.5248 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003292/0.4836, allocations: 2.249 MB / 0.5269 GB, free: 1.457 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007595/0.4844, allocations: 0.5533 MB / 0.5275 GB, free: 1.23 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007459/0.4918, allocations: 5.313 MB / 0.5327 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.31e-05/0.4919, allocations: 44.53 kB / 0.5327 GB, free: 13.03 MB / 398.1 MB Notification: Performance of pre-optimization done (n=72): time 2.074e-06/0.4919, allocations: 0 / 0.5327 GB, free: 13.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=89): time 0.01418/0.5061, allocations: 3.4 MB / 0.536 GB, free: 11.57 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.378e-05/0.5061, allocations: 68.28 kB / 0.5361 GB, free: 11.5 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001506/0.5077, allocations: 1.293 MB / 0.5374 GB, free: 10.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 6.6e-05/0.5077, allocations: 40.52 kB / 0.5374 GB, free: 10.87 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004996/0.5082, allocations: 0.7015 MB / 0.5381 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002726/0.5085, allocations: 330.4 kB / 0.5384 GB, free: 10.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004517/0.509, allocations: 293.7 kB / 0.5387 GB, free: 9.926 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.5092, allocations: 361.1 kB / 0.539 GB, free: 9.594 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008039/0.51, allocations: 0.515 MB / 0.5395 GB, free: 9.398 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00121/0.5112, allocations: 0.9981 MB / 0.5405 GB, free: 8.582 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002094/0.5133, allocations: 1.429 MB / 0.5419 GB, free: 7.547 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.148e-05/0.5133, allocations: 4.594 kB / 0.5419 GB, free: 7.547 MB / 398.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004884/0.5182, allocations: 1.92 MB / 0.5438 GB, free: 6.023 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.905e-05/0.5183, allocations: 12 kB / 0.5438 GB, free: 6.012 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.914e-05/0.5183, allocations: 12 kB / 0.5438 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00191/0.5202, allocations: 255.5 kB / 0.5441 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001121/0.5214, allocations: 356.8 kB / 0.5444 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005675/0.527, allocations: 3.854 MB / 0.5482 GB, free: 1.324 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001246/0.5283, allocations: 48 kB / 0.5482 GB, free: 1.277 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001858/0.5285, allocations: 83.97 kB / 0.5483 GB, free: 1.195 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (179): * Single equations (assignments): 177 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0006409/0.5292, allocations: 286.1 kB / 0.5486 GB, free: 0.9297 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003319/0.5295, allocations: 114.5 kB / 0.5487 GB, free: 0.8203 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003941/0.5334, allocations: 1.254 MB / 0.5499 GB, free: 15.56 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.257e-06/0.5335, allocations: 8 kB / 0.5499 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.618e-06/0.5335, allocations: 4 kB / 0.5499 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.167e-05/0.5335, allocations: 5.062 kB / 0.5499 GB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001817/0.5353, allocations: 1.102 MB / 0.551 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/0.5353, allocations: 4 kB / 0.551 GB, free: 14.4 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006924/0.536, allocations: 176.1 kB / 0.5512 GB, free: 14.23 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001861/0.5379, allocations: 225.6 kB / 0.5514 GB, free: 14.01 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.699e-05/0.538, allocations: 35.92 kB / 0.5514 GB, free: 13.97 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004898/0.5429, allocations: 3.782 MB / 0.5551 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.5429, allocations: 0 / 0.5551 GB, free: 9.941 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004197/0.5471, allocations: 1.599 MB / 0.5567 GB, free: 8.316 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003689/0.5475, allocations: 180.4 kB / 0.5568 GB, free: 8.121 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002335/0.5478, allocations: 16 kB / 0.5568 GB, free: 8.105 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006689/0.5485, allocations: 23.98 kB / 0.5569 GB, free: 8.082 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.5486, allocations: 80.84 kB / 0.5569 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.227e-05/0.5487, allocations: 39.55 kB / 0.557 GB, free: 7.969 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001135/0.5498, allocations: 0.914 MB / 0.5579 GB, free: 7.043 MB / 414.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.5498, allocations: 0 / 0.5579 GB, free: 7.043 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002673/0.5525, allocations: 0.8491 MB / 0.5587 GB, free: 6.191 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 5 (blood_plasma.temperature,CO2_unbound_plasma.logn,O2_unbound_plasma.logn,water.logn,others.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 (93): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006722/0.5593, allocations: 3.064 MB / 0.5617 GB, free: 3.219 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.002488/0.5618, allocations: 1.418 MB / 0.5631 GB, free: 1.832 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.488e-06/0.5618, allocations: 1.812 kB / 0.5631 GB, free: 1.832 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001076/0.5629, allocations: 0.6942 MB / 0.5638 GB, free: 1.133 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001659/0.5646, allocations: 234.9 kB / 0.564 GB, free: 0.918 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0198/0.5844, allocations: 10.62 MB / 0.5744 GB, free: 5.793 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007576/0.5852, allocations: 1.081 MB / 0.5754 GB, free: 4.68 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000976/0.5862, allocations: 250.9 kB / 0.5757 GB, free: 4.434 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007883/0.587, allocations: 0.5417 MB / 0.5762 GB, free: 3.891 MB / 430.1 MB Notification: Performance of SimCode: time 1.132e-06/0.587, allocations: 0 / 0.5762 GB, free: 3.891 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1092/0.6961, allocations: 38.27 MB / 0.6135 GB, free: 13.91 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.78/15.48, allocations: 15.58 kB / 0.6136 GB, free: 13.9 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.GasSolubility_blood.pipe ; mkfifo Chemical_Chemical.Examples.GasSolubility_blood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.GasSolubility_blood.pipe >> ../files/Chemical_Chemical.Examples.GasSolubility_blood.sim & python3 -m fmpy simulate --output-file Chemical_Chemical.Examples.GasSolubility_blood_res.csv --start-time 0 --stop-time 1e-05 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-09 Chemical_Chemical_Examples_GasSolubility_blood.fmu > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)