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.004933/0.004933, allocations: 102.4 kB / 15.73 MB, free: 6.488 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.001218/0.001219, allocations: 194.5 kB / 16.68 MB, free: 6.375 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.364/1.364, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2041/0.2041, allocations: 15.32 MB / 305.9 MB, free: 15.24 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001516/0.001516, allocations: 68.08 kB / 424.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2778/0.2794, allocations: 53.6 MB / 478.3 MB, free: 25.62 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.GasSolubility_blood): time 0.007643/0.287, allocations: 6.958 MB / 485.3 MB, free: 20.66 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02331/0.3104, allocations: 21.77 MB / 0.4951 GB, free: 2.988 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001709/0.3122, allocations: 17.5 kB / 0.4952 GB, free: 2.98 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001643/0.3138, allocations: 457.6 kB / 0.4956 GB, free: 2.629 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005864/0.3198, allocations: 1.657 MB / 0.4972 GB, free: 1.355 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008292/0.3281, allocations: 2.816 MB / 0.5 GB, free: 15.18 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.00368/0.3318, allocations: 1.833 MB / 0.5018 GB, free: 14.09 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001525/0.3334, allocations: 0.9147 MB / 0.5027 GB, free: 13.47 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001544/0.3349, allocations: 0.8567 MB / 0.5035 GB, free: 13.07 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001465/0.3364, allocations: 0.9471 MB / 0.5044 GB, free: 12.25 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002276/0.3366, allocations: 152 kB / 0.5046 GB, free: 12.11 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009234/0.3459, allocations: 2.313 MB / 0.5068 GB, free: 9.789 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006188/0.3466, allocations: 366.8 kB / 0.5072 GB, free: 9.43 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001269/0.3478, allocations: 0.7972 MB / 0.5079 GB, free: 8.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01292/0.3608, allocations: 4.13 MB / 0.512 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.3608, allocations: 0 / 0.512 GB, free: 4.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.405e-06/0.3608, allocations: 0 / 0.512 GB, free: 4.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.694e-05/0.3609, allocations: 0 / 0.512 GB, free: 4.48 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.003813/0.3647, allocations: 2.074 MB / 0.514 GB, free: 2.352 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3647, allocations: 8.031 kB / 0.514 GB, free: 2.344 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001951/0.3649, allocations: 186 kB / 0.5142 GB, free: 2.152 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00185/0.3668, allocations: 374.6 kB / 0.5145 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001241/0.3681, allocations: 0.7638 MB / 0.5153 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.4e-05/0.3681, allocations: 94.84 kB / 0.5154 GB, free: 0.8867 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002029/0.3683, allocations: 124.4 kB / 0.5155 GB, free: 0.7656 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002575/0.3709, allocations: 1.756 MB / 0.5172 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.674e-05/0.371, allocations: 0 / 0.5172 GB, free: 14.97 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001208/0.3711, allocations: 55.98 kB / 0.5173 GB, free: 14.91 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.336e-05/0.3711, allocations: 28 kB / 0.5173 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00356/0.3747, allocations: 2.481 MB / 0.5197 GB, free: 12.4 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.008003/0.3827, allocations: 5.091 MB / 0.5247 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003565/0.3863, allocations: 2.238 MB / 0.5269 GB, free: 4.793 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008401/0.3872, allocations: 0.5537 MB / 0.5274 GB, free: 4.242 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007048/0.3942, allocations: 5.308 MB / 0.5326 GB, free: 14.3 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.563e-05/0.3943, allocations: 39.22 kB / 0.5326 GB, free: 14.26 MB / 414.1 MB Notification: Performance of pre-optimization done (n=72): time 2.285e-06/0.3943, allocations: 0 / 0.5326 GB, free: 14.26 MB / 414.1 MB Notification: Performance of matching and sorting (n=89): time 0.01537/0.4097, allocations: 3.368 MB / 0.5359 GB, free: 10.81 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.233e-05/0.4098, allocations: 64.34 kB / 0.536 GB, free: 10.73 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001538/0.4113, allocations: 1.292 MB / 0.5373 GB, free: 9.418 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 9.291e-05/0.4114, allocations: 41.7 kB / 0.5373 GB, free: 9.371 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004449/0.4119, allocations: 0.6804 MB / 0.538 GB, free: 8.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002691/0.4122, allocations: 323.5 kB / 0.5383 GB, free: 8.359 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004076/0.4126, allocations: 291.2 kB / 0.5385 GB, free: 8.066 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001462/0.4127, allocations: 361.8 kB / 0.5389 GB, free: 7.707 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007951/0.4135, allocations: 0.5192 MB / 0.5394 GB, free: 7.188 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001153/0.4147, allocations: 1 MB / 0.5404 GB, free: 5.969 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001806/0.4165, allocations: 1.433 MB / 0.5418 GB, free: 4.316 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.105e-06/0.4165, allocations: 4 kB / 0.5418 GB, free: 4.312 MB / 414.1 MB Notification: Performance of matching and sorting (n=185) (initialization): time 0.004753/0.4213, allocations: 1.908 MB / 0.5436 GB, free: 2.395 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.711e-05/0.4213, allocations: 12 kB / 0.5436 GB, free: 2.383 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.535e-05/0.4214, allocations: 19.98 kB / 0.5437 GB, free: 2.363 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002044/0.4234, allocations: 245.5 kB / 0.5439 GB, free: 2.117 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001142/0.4246, allocations: 351.5 kB / 0.5442 GB, free: 1.773 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005749/0.4303, allocations: 3.865 MB / 0.548 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001295/0.4317, allocations: 48 kB / 0.5481 GB, free: 13.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001634/0.4318, allocations: 83.97 kB / 0.5481 GB, free: 13.51 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.0006188/0.4325, allocations: 285.3 kB / 0.5484 GB, free: 13.22 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003167/0.4328, allocations: 106.6 kB / 0.5485 GB, free: 13.11 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004129/0.4369, allocations: 1.252 MB / 0.5497 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.4369, allocations: 8 kB / 0.5497 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.51e-06/0.437, allocations: 0 / 0.5497 GB, free: 11.84 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.172e-05/0.437, allocations: 3.984 kB / 0.5497 GB, free: 11.83 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001971/0.439, allocations: 1.121 MB / 0.5508 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.935e-06/0.439, allocations: 0 / 0.5508 GB, free: 10.64 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006868/0.4397, allocations: 179.9 kB / 0.551 GB, free: 10.47 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001931/0.4416, allocations: 233.4 kB / 0.5512 GB, free: 10.23 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.34e-05/0.4417, allocations: 31.98 kB / 0.5513 GB, free: 10.2 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005089/0.4468, allocations: 3.779 MB / 0.555 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4469, allocations: 0 / 0.555 GB, free: 6.145 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004348/0.4512, allocations: 1.591 MB / 0.5565 GB, free: 4.52 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004588/0.4517, allocations: 175.8 kB / 0.5567 GB, free: 4.328 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001537/0.4519, allocations: 20 kB / 0.5567 GB, free: 4.309 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005656/0.4524, allocations: 28 kB / 0.5567 GB, free: 4.281 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002035/0.4527, allocations: 80.77 kB / 0.5568 GB, free: 4.203 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.403e-05/0.4528, allocations: 39.98 kB / 0.5568 GB, free: 4.164 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001221/0.454, allocations: 0.9062 MB / 0.5577 GB, free: 3.246 MB / 430.1 MB Notification: Performance of sort global known variables: time 4.9e-07/0.454, allocations: 0 / 0.5577 GB, free: 3.246 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002797/0.4568, allocations: 0.8392 MB / 0.5585 GB, free: 2.406 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.006678/0.4635, allocations: 3.042 MB / 0.5615 GB, free: 15.32 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.002544/0.4661, allocations: 1.407 MB / 0.5629 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.4661, allocations: 0 / 0.5629 GB, free: 13.89 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.4671, allocations: 0.6874 MB / 0.5636 GB, free: 13.18 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.4683, allocations: 237.3 kB / 0.5638 GB, free: 12.95 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01906/0.4874, allocations: 10.55 MB / 0.5741 GB, free: 1.809 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00078/0.4882, allocations: 1.081 MB / 0.5751 GB, free: 0.6953 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009384/0.4892, allocations: 265.1 kB / 0.5754 GB, free: 448 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007325/0.4899, allocations: 0.5378 MB / 0.5759 GB, free: 15.9 MB / 462.1 MB Notification: Performance of SimCode: time 1.012e-06/0.4899, allocations: 0 / 0.5759 GB, free: 15.9 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2732/0.7632, allocations: 38.27 MB / 0.6133 GB, free: 120.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.03/15.79, allocations: 12.92 kB / 0.6133 GB, free: 120.3 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)