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.001081/0.001081, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001038/0.001038, allocations: 191.9 kB / 16.14 MB, free: 6.688 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.247/1.247, allocations: 222.9 MB / 239.8 MB, free: 4.605 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1825/0.1825, allocations: 15.31 MB / 305.3 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001183/0.001183, allocations: 63.89 kB / 369.8 MB, free: 4.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08163/0.08283, allocations: 53.6 MB / 423.4 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.008104/0.09097, allocations: 7.954 MB / 431.3 MB, free: 6.691 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.1701/0.2611, allocations: 21.72 MB / 453 MB, free: 38.77 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009889/0.2621, allocations: 33.28 kB / 453.1 MB, free: 38.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001224/0.2633, allocations: 408.3 kB / 453.5 MB, free: 38.57 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00374/0.2671, allocations: 1.472 MB / 454.9 MB, free: 37.79 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006389/0.2735, allocations: 2.451 MB / 457.4 MB, free: 36.73 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001774/0.2753, allocations: 1.737 MB / 459.1 MB, free: 36.31 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008947/0.2762, allocations: 0.785 MB / 459.9 MB, free: 36.19 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000924/0.2772, allocations: 0.8327 MB / 460.7 MB, free: 36.05 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001064/0.2782, allocations: 0.918 MB / 461.7 MB, free: 35.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002993/0.2785, allocations: 98.03 kB / 461.8 MB, free: 35.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005501/0.284, allocations: 2.275 MB / 464 MB, free: 35.18 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003288/0.2844, allocations: 309 kB / 464.3 MB, free: 35 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007746/0.2852, allocations: 0.7484 MB / 465.1 MB, free: 34.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006159/0.2913, allocations: 3.868 MB / 469 MB, free: 32.96 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.256e-06/0.2914, allocations: 0 / 469 MB, free: 32.96 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.102e-06/0.2914, allocations: 0 / 469 MB, free: 32.96 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.152e-05/0.2914, allocations: 0 / 469 MB, free: 32.96 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.003229/0.2946, allocations: 2.081 MB / 471 MB, free: 31.68 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.537e-05/0.2947, allocations: 8 kB / 471 MB, free: 31.68 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001641/0.2949, allocations: 178.5 kB / 471.2 MB, free: 31.57 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001469/0.2963, allocations: 374 kB / 471.6 MB, free: 31.46 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008845/0.2972, allocations: 0.7393 MB / 472.3 MB, free: 30.96 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.531e-05/0.2973, allocations: 97.03 kB / 472.4 MB, free: 30.92 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.2975, allocations: 130.2 kB / 472.5 MB, free: 30.88 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002228/0.2997, allocations: 1.761 MB / 474.3 MB, free: 30.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.142e-05/0.2997, allocations: 0 / 474.3 MB, free: 30.16 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001127/0.2999, allocations: 47.53 kB / 474.4 MB, free: 30.12 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.228e-05/0.2999, allocations: 28.72 kB / 474.4 MB, free: 30.12 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003016/0.3029, allocations: 2.487 MB / 476.9 MB, free: 29.34 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.006911/0.3098, allocations: 5.103 MB / 482 MB, free: 26.49 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003159/0.313, allocations: 2.24 MB / 484.2 MB, free: 25.5 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007208/0.3138, allocations: 0.5523 MB / 484.8 MB, free: 25.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005969/0.3197, allocations: 5.321 MB / 490.1 MB, free: 21.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.031e-05/0.3198, allocations: 38.03 kB / 490.1 MB, free: 21.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=72): time 2.275e-06/0.3198, allocations: 5.094 kB / 490.1 MB, free: 21.02 MB / 366.1 MB Notification: Performance of matching and sorting (n=89): time 0.01577/0.3356, allocations: 3.373 MB / 493.5 MB, free: 19.56 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.433e-05/0.3356, allocations: 60.89 kB / 493.6 MB, free: 19.5 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001693/0.3373, allocations: 1.294 MB / 494.9 MB, free: 18.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.743e-05/0.3374, allocations: 41.83 kB / 494.9 MB, free: 18.86 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000339/0.3378, allocations: 0.6812 MB / 495.6 MB, free: 18.31 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002452/0.338, allocations: 322 kB / 495.9 MB, free: 18.06 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004064/0.3384, allocations: 291.4 kB / 496.2 MB, free: 17.93 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 7.966e-05/0.3385, allocations: 363 kB / 496.5 MB, free: 17.59 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007854/0.3393, allocations: 0.5078 MB / 497 MB, free: 17.4 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009985/0.3403, allocations: 0.998 MB / 498 MB, free: 16.58 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001608/0.3419, allocations: 1.434 MB / 499.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.58e-05/0.342, allocations: 4.656 kB / 499.5 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004551/0.3465, allocations: 1.907 MB / 0.4896 GB, free: 14.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.475e-05/0.3466, allocations: 12.23 kB / 0.4896 GB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.729e-05/0.3466, allocations: 15.12 kB / 0.4897 GB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002051/0.3487, allocations: 251.5 kB / 0.4899 GB, free: 14.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001065/0.3497, allocations: 353.7 kB / 0.4902 GB, free: 14.62 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004585/0.3543, allocations: 3.496 MB / 0.4936 GB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001219/0.3556, allocations: 79.89 kB / 0.4937 GB, free: 11.49 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001572/0.3557, allocations: 81.03 kB / 0.4938 GB, free: 11.48 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.0004962/0.3562, allocations: 297.2 kB / 0.4941 GB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002664/0.3565, allocations: 104.7 kB / 0.4942 GB, free: 11.16 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003763/0.3603, allocations: 1.254 MB / 0.4954 GB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.112e-06/0.3603, allocations: 12 kB / 0.4954 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.531e-06/0.3603, allocations: 0 / 0.4954 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.576e-06/0.3603, allocations: 5.812 kB / 0.4954 GB, free: 10.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001432/0.3618, allocations: 1.114 MB / 0.4965 GB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.761e-06/0.3618, allocations: 0 / 0.4965 GB, free: 9.148 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006126/0.3624, allocations: 180.3 kB / 0.4967 GB, free: 8.992 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002029/0.3644, allocations: 228 kB / 0.4969 GB, free: 8.828 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.195e-05/0.3645, allocations: 30.33 kB / 0.4969 GB, free: 8.805 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003979/0.3685, allocations: 3.41 MB / 0.5003 GB, free: 5.297 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.3685, allocations: 4 kB / 0.5003 GB, free: 5.293 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003813/0.3724, allocations: 1.604 MB / 0.5018 GB, free: 3.672 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003096/0.3727, allocations: 167.8 kB / 0.502 GB, free: 3.488 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002247/0.3729, allocations: 20 kB / 0.502 GB, free: 3.469 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006554/0.3736, allocations: 35.92 kB / 0.502 GB, free: 3.434 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001599/0.3737, allocations: 84.77 kB / 0.5021 GB, free: 3.352 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.494e-05/0.3738, allocations: 39.98 kB / 0.5022 GB, free: 3.312 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0008775/0.3747, allocations: 0.9101 MB / 0.503 GB, free: 2.391 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3747, allocations: 0 / 0.503 GB, free: 2.391 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.002602/0.3773, allocations: 0.8313 MB / 0.5039 GB, free: 1.559 MB / 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.006347/0.3837, allocations: 3.034 MB / 0.5068 GB, free: 14.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002628/0.3863, allocations: 1.412 MB / 0.5082 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 5.15e-06/0.3864, allocations: 1.938 kB / 0.5082 GB, free: 13.05 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009772/0.3873, allocations: 0.6867 MB / 0.5089 GB, free: 12.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001354/0.3887, allocations: 208.6 kB / 0.5091 GB, free: 12.13 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01842/0.4072, allocations: 11.56 MB / 0.5204 GB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006951/0.4079, allocations: 1.077 MB / 0.5214 GB, free: 14.7 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001097/0.409, allocations: 263.7 kB / 0.5217 GB, free: 14.44 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007243/0.4097, allocations: 0.5405 MB / 0.5222 GB, free: 13.9 MB / 398.1 MB Notification: Performance of SimCode: time 1.112e-06/0.4098, allocations: 4 kB / 0.5222 GB, free: 13.9 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0574/0.4672, allocations: 36.82 MB / 0.5582 GB, free: 9.297 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002254/0.4675, allocations: 219.7 kB / 0.5584 GB, free: 9.035 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.664/3.131, allocations: 0 / 0.5584 GB, free: 9.035 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)