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.001044/0.001044, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001075/0.001075, allocations: 189.4 kB / 16.25 MB, free: 6.633 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.229/1.229, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1892/0.1892, allocations: 15.31 MB / 305.4 MB, free: 15.28 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001124/0.001124, allocations: 59.91 kB / 369.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08665/0.08778, allocations: 53.61 MB / 423.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007346/0.09516, allocations: 7.967 MB / 431.5 MB, free: 6.547 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1846/0.2798, allocations: 21.5 MB / 453 MB, free: 38.72 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001105/0.2809, allocations: 31.28 kB / 453 MB, free: 38.72 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001206/0.2822, allocations: 409.9 kB / 453.4 MB, free: 38.52 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003939/0.2862, allocations: 1.511 MB / 455 MB, free: 37.73 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007337/0.2935, allocations: 2.501 MB / 457.5 MB, free: 36.69 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.00239/0.2959, allocations: 1.815 MB / 459.3 MB, free: 36.27 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001286/0.2972, allocations: 0.911 MB / 460.2 MB, free: 36.15 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00132/0.2986, allocations: 0.8988 MB / 461.1 MB, free: 35.96 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00132/0.2999, allocations: 0.9682 MB / 462 MB, free: 35.55 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004326/0.3003, allocations: 155 kB / 462.2 MB, free: 35.55 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006082/0.3064, allocations: 2.368 MB / 464.6 MB, free: 34.95 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004077/0.3069, allocations: 379.5 kB / 464.9 MB, free: 34.71 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007401/0.3076, allocations: 0.7986 MB / 465.7 MB, free: 34.25 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006585/0.3142, allocations: 3.93 MB / 469.7 MB, free: 32.58 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3142, allocations: 0 / 469.7 MB, free: 32.58 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.3142, allocations: 0 / 469.7 MB, free: 32.58 MB / 366.1 MB Notification: Performance of Transformations before backend: time 2.037e-05/0.3143, allocations: 0 / 469.7 MB, free: 32.58 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: 314 * Number of variables: 314 Notification: Performance of Generate backend data structure: time 0.002968/0.3172, allocations: 2.07 MB / 471.7 MB, free: 31.31 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3173, allocations: 10.16 kB / 471.7 MB, free: 31.31 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001673/0.3175, allocations: 181.9 kB / 471.9 MB, free: 31.19 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00143/0.3189, allocations: 383.5 kB / 472.3 MB, free: 31.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008328/0.3197, allocations: 0.7246 MB / 473 MB, free: 30.59 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.023e-05/0.3198, allocations: 94.81 kB / 473.1 MB, free: 30.55 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001895/0.32, allocations: 133.7 kB / 473.2 MB, free: 30.5 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002398/0.3224, allocations: 1.754 MB / 475 MB, free: 29.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.3224, allocations: 1.406 kB / 475 MB, free: 29.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000123/0.3226, allocations: 50.16 kB / 475.1 MB, free: 29.75 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.353e-05/0.3226, allocations: 36.84 kB / 475.1 MB, free: 29.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003092/0.3257, allocations: 2.484 MB / 477.6 MB, free: 28.97 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.006763/0.3325, allocations: 5.11 MB / 482.7 MB, free: 26.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003114/0.3356, allocations: 2.237 MB / 484.9 MB, free: 25.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007078/0.3363, allocations: 0.5493 MB / 485.5 MB, free: 24.88 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005956/0.3423, allocations: 5.322 MB / 490.8 MB, free: 20.68 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.773e-05/0.3423, allocations: 46.81 kB / 490.8 MB, free: 20.63 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.434e-06/0.3423, allocations: 1.438 kB / 490.8 MB, free: 20.63 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01477/0.3571, allocations: 3.364 MB / 494.2 MB, free: 19.18 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.013e-05/0.3572, allocations: 62.3 kB / 494.3 MB, free: 19.11 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00139/0.3586, allocations: 1.295 MB / 495.6 MB, free: 18.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.177e-05/0.3586, allocations: 44.39 kB / 495.6 MB, free: 18.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000349/0.359, allocations: 0.6805 MB / 496.3 MB, free: 17.93 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.3592, allocations: 326.1 kB / 496.6 MB, free: 17.68 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004068/0.3596, allocations: 290.9 kB / 496.9 MB, free: 17.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 9.252e-05/0.3597, allocations: 362 kB / 497.2 MB, free: 17.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007297/0.3605, allocations: 0.5128 MB / 497.7 MB, free: 17.02 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009754/0.3615, allocations: 0.9979 MB / 498.7 MB, free: 16.2 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001453/0.3629, allocations: 1.429 MB / 0.4885 GB, free: 15.11 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.3629, allocations: 9.781 kB / 0.4885 GB, free: 15.1 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004368/0.3673, allocations: 1.903 MB / 0.4903 GB, free: 14.34 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.774e-05/0.3674, allocations: 11.66 kB / 0.4903 GB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.966e-05/0.3674, allocations: 17.62 kB / 0.4903 GB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002081/0.3695, allocations: 253.5 kB / 0.4906 GB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00104/0.3705, allocations: 347.3 kB / 0.4909 GB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004526/0.3751, allocations: 3.878 MB / 0.4947 GB, free: 10.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001182/0.3763, allocations: 79.97 kB / 0.4948 GB, free: 10.46 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001138/0.3764, allocations: 78.52 kB / 0.4949 GB, free: 10.39 MB / 366.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.0004207/0.3768, allocations: 294.2 kB / 0.4951 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001709/0.377, allocations: 111.8 kB / 0.4952 GB, free: 9.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00364/0.3806, allocations: 1.246 MB / 0.4965 GB, free: 8.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.182e-06/0.3807, allocations: 8.656 kB / 0.4965 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.3807, allocations: 2.25 kB / 0.4965 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.101e-05/0.3807, allocations: 6 kB / 0.4965 GB, free: 8.906 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.3819, allocations: 1.101 MB / 0.4976 GB, free: 7.98 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.3819, allocations: 4.125 kB / 0.4976 GB, free: 7.977 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005919/0.3825, allocations: 180.3 kB / 0.4977 GB, free: 7.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001851/0.3844, allocations: 237.1 kB / 0.498 GB, free: 7.648 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.892e-05/0.3844, allocations: 33.52 kB / 0.498 GB, free: 7.621 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003726/0.3882, allocations: 3.771 MB / 0.5017 GB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.3882, allocations: 0 / 0.5017 GB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003545/0.3917, allocations: 1.604 MB / 0.5032 GB, free: 2.219 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002047/0.3919, allocations: 171.8 kB / 0.5034 GB, free: 2.031 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001361/0.3921, allocations: 24 kB / 0.5034 GB, free: 2.008 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005588/0.3927, allocations: 35.92 kB / 0.5035 GB, free: 1.973 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001386/0.3928, allocations: 72.84 kB / 0.5035 GB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.744e-05/0.3929, allocations: 39.98 kB / 0.5036 GB, free: 1.863 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007096/0.3936, allocations: 0.914 MB / 0.5045 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3936, allocations: 3.938 kB / 0.5045 GB, free: 0.9336 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001942/0.3955, allocations: 0.8275 MB / 0.5053 GB, free: 108 kB / 366.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.00573/0.4013, allocations: 3.032 MB / 0.5082 GB, free: 13.04 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002613/0.4039, allocations: 1.46 MB / 0.5097 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4039, allocations: 4.938 kB / 0.5097 GB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00088/0.4048, allocations: 0.6943 MB / 0.5103 GB, free: 10.83 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001074/0.4059, allocations: 228.8 kB / 0.5106 GB, free: 10.62 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01626/0.4221, allocations: 11.56 MB / 0.5219 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005356/0.4227, allocations: 1.081 MB / 0.5229 GB, free: 13.18 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001014/0.4237, allocations: 258.7 kB / 0.5232 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006256/0.4244, allocations: 0.5456 MB / 0.5237 GB, free: 12.38 MB / 398.1 MB Notification: Performance of SimCode: time 9.61e-07/0.4244, allocations: 0 / 0.5237 GB, free: 12.38 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06126/0.4856, allocations: 37.75 MB / 0.5606 GB, free: 6.855 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002724/0.4859, allocations: 212.9 kB / 0.5608 GB, free: 6.598 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.703/3.189, allocations: 0 / 0.5608 GB, free: 6.598 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_GasSolubility_blood_fmu --startTime=0 --stopTime=1e-05 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_GasSolubility_blood.fmu > Chemical_Chemical.Examples.GasSolubility_blood.pipe 2>&1)