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.00552/0.005524, allocations: 100.8 kB / 15.73 MB, free: 6.012 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.001233/0.001233, allocations: 187.7 kB / 16.67 MB, free: 5.949 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.324/1.324, allocations: 222.9 MB / 240.4 MB, free: 4.312 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2095/0.2095, allocations: 15.32 MB / 305.9 MB, free: 15.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001354/0.001354, allocations: 63.91 kB / 424.7 MB, free: 13.62 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2481, allocations: 53.6 MB / 478.3 MB, free: 25.73 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.006635/0.2548, allocations: 6.954 MB / 485.3 MB, free: 20.77 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01894/0.2738, allocations: 21.77 MB / 0.4951 GB, free: 3.098 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001344/0.2752, allocations: 17.5 kB / 0.4952 GB, free: 3.09 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001292/0.2765, allocations: 461.9 kB / 0.4956 GB, free: 2.734 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004545/0.2811, allocations: 1.642 MB / 0.4972 GB, free: 1.473 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007565/0.2887, allocations: 2.801 MB / 0.4999 GB, free: 15.3 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002942/0.2917, allocations: 1.824 MB / 0.5017 GB, free: 14.22 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001294/0.293, allocations: 0.9191 MB / 0.5026 GB, free: 13.6 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001196/0.2942, allocations: 0.8567 MB / 0.5035 GB, free: 13.2 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001284/0.2955, allocations: 0.947 MB / 0.5044 GB, free: 12.32 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002272/0.2957, allocations: 152 kB / 0.5045 GB, free: 12.18 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007738/0.3035, allocations: 2.313 MB / 0.5068 GB, free: 9.859 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005196/0.3041, allocations: 366.8 kB / 0.5071 GB, free: 9.5 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001107/0.3052, allocations: 0.7933 MB / 0.5079 GB, free: 8.703 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0101/0.3153, allocations: 4.13 MB / 0.5119 GB, free: 4.555 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.3153, allocations: 0 / 0.5119 GB, free: 4.555 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3153, allocations: 0 / 0.5119 GB, free: 4.555 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.582e-05/0.3154, allocations: 0 / 0.5119 GB, free: 4.555 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.003637/0.319, allocations: 2.082 MB / 0.514 GB, free: 2.418 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.016e-05/0.3191, allocations: 12.03 kB / 0.514 GB, free: 2.406 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002094/0.3193, allocations: 182 kB / 0.5142 GB, free: 2.219 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001585/0.3209, allocations: 374.6 kB / 0.5145 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001188/0.3221, allocations: 0.76 MB / 0.5153 GB, free: 1.051 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.817e-05/0.3222, allocations: 94.84 kB / 0.5153 GB, free: 0.957 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001907/0.3224, allocations: 120.4 kB / 0.5155 GB, free: 0.8398 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002521/0.3249, allocations: 1.764 MB / 0.5172 GB, free: 15.04 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.388e-05/0.3249, allocations: 3.938 kB / 0.5172 GB, free: 15.03 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/0.3251, allocations: 52 kB / 0.5172 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.984e-05/0.3251, allocations: 28 kB / 0.5173 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003286/0.3284, allocations: 2.481 MB / 0.5197 GB, free: 12.46 MB / 398.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.007738/0.3361, allocations: 5.091 MB / 0.5247 GB, free: 7.172 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003354/0.3395, allocations: 2.231 MB / 0.5268 GB, free: 4.867 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007764/0.3403, allocations: 0.5576 MB / 0.5274 GB, free: 4.312 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00694/0.3473, allocations: 5.308 MB / 0.5326 GB, free: 14.38 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.993e-05/0.3473, allocations: 43.2 kB / 0.5326 GB, free: 14.32 MB / 414.1 MB Notification: Performance of pre-optimization done (n=72): time 2.354e-06/0.3473, allocations: 0 / 0.5326 GB, free: 14.32 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.01485/0.3622, allocations: 3.368 MB / 0.5359 GB, free: 10.88 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.949e-05/0.3623, allocations: 60.41 kB / 0.536 GB, free: 10.8 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001536/0.3638, allocations: 1.3 MB / 0.5372 GB, free: 9.48 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 6.785e-05/0.3639, allocations: 41.7 kB / 0.5373 GB, free: 9.434 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004506/0.3644, allocations: 0.6842 MB / 0.5379 GB, free: 8.738 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002487/0.3646, allocations: 319.5 kB / 0.5382 GB, free: 8.422 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003983/0.365, allocations: 287.2 kB / 0.5385 GB, free: 8.133 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.3652, allocations: 361.9 kB / 0.5389 GB, free: 7.773 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007921/0.366, allocations: 0.5154 MB / 0.5394 GB, free: 7.258 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001168/0.3671, allocations: 0.9963 MB / 0.5403 GB, free: 6.043 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001882/0.369, allocations: 1.437 MB / 0.5417 GB, free: 4.387 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.224e-05/0.3691, allocations: 4 kB / 0.5417 GB, free: 4.383 MB / 414.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.00486/0.3739, allocations: 1.904 MB / 0.5436 GB, free: 2.469 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.05e-05/0.374, allocations: 13.41 kB / 0.5436 GB, free: 2.457 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.632e-05/0.374, allocations: 12 kB / 0.5436 GB, free: 2.445 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002115/0.3761, allocations: 257.5 kB / 0.5439 GB, free: 2.188 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001177/0.3773, allocations: 351.4 kB / 0.5442 GB, free: 1.844 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005784/0.3831, allocations: 3.872 MB / 0.548 GB, free: 13.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00121/0.3844, allocations: 48 kB / 0.548 GB, free: 13.66 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002296/0.3846, allocations: 79.98 kB / 0.5481 GB, free: 13.58 MB / 430.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.0006377/0.3853, allocations: 293.4 kB / 0.5484 GB, free: 13.28 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003208/0.3856, allocations: 106.6 kB / 0.5485 GB, free: 13.18 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004137/0.3897, allocations: 1.252 MB / 0.5497 GB, free: 11.9 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.022e-05/0.3898, allocations: 8 kB / 0.5497 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.522e-06/0.3898, allocations: 0 / 0.5497 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.258e-05/0.3898, allocations: 3.984 kB / 0.5497 GB, free: 11.89 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001759/0.3916, allocations: 1.121 MB / 0.5508 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.949e-06/0.3916, allocations: 0 / 0.5508 GB, free: 10.7 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006955/0.3923, allocations: 175.8 kB / 0.551 GB, free: 10.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002095/0.3944, allocations: 233.5 kB / 0.5512 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.949e-05/0.3945, allocations: 31.98 kB / 0.5512 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005145/0.3997, allocations: 3.768 MB / 0.5549 GB, free: 6.219 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.3997, allocations: 3.938 kB / 0.5549 GB, free: 6.215 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004232/0.4039, allocations: 1.599 MB / 0.5565 GB, free: 4.582 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003125/0.4043, allocations: 179.7 kB / 0.5567 GB, free: 4.387 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002079/0.4045, allocations: 20 kB / 0.5567 GB, free: 4.367 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005974/0.4051, allocations: 20 kB / 0.5567 GB, free: 4.348 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.4053, allocations: 80.78 kB / 0.5568 GB, free: 4.27 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.734e-05/0.4054, allocations: 35.98 kB / 0.5568 GB, free: 4.234 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001074/0.4064, allocations: 0.914 MB / 0.5577 GB, free: 3.309 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4064, allocations: 4 kB / 0.5577 GB, free: 3.305 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002349/0.4088, allocations: 0.8353 MB / 0.5585 GB, free: 2.469 MB / 430.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.006475/0.4153, allocations: 3.043 MB / 0.5615 GB, free: 15.38 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002382/0.4177, allocations: 1.411 MB / 0.5629 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.4177, allocations: 0 / 0.5629 GB, free: 13.95 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.4187, allocations: 0.6835 MB / 0.5635 GB, free: 13.24 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.4201, allocations: 231 kB / 0.5638 GB, free: 13.02 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01861/0.4387, allocations: 10.56 MB / 0.5741 GB, free: 1.867 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000737/0.4395, allocations: 1.073 MB / 0.5751 GB, free: 0.7617 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009171/0.4404, allocations: 260.4 kB / 0.5754 GB, free: 0.5039 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007302/0.4412, allocations: 0.5417 MB / 0.5759 GB, free: 15.96 MB / 462.1 MB Notification: Performance of SimCode: time 1.142e-06/0.4412, allocations: 0 / 0.5759 GB, free: 15.96 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2793/0.7205, allocations: 38.82 MB / 0.6138 GB, free: 121 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.77/15.49, allocations: 11.02 kB / 0.6138 GB, free: 121 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 & /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)