Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.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.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood",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.0011/0.0011, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001062/0.001062, allocations: 195.5 kB / 16.53 MB, free: 6.664 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.138/1.138, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1519/0.1519, allocations: 15.31 MB / 305.7 MB, free: 15.32 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001092/0.001092, allocations: 63.91 kB / 370.4 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07408/0.07518, allocations: 53.61 MB / 424 MB, free: 14.21 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer "system" component but an inner "system" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Examples.AcidBase.CarbonDioxideInBlood): time 0.1606/0.2358, allocations: 33.82 MB / 457.9 MB, free: 37.28 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03164/0.2675, allocations: 47.4 MB / 0.4934 GB, free: 10.05 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00123/0.2687, allocations: 40.47 kB / 0.4935 GB, free: 10.03 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001658/0.2704, allocations: 1.019 MB / 0.4945 GB, free: 9.441 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00674/0.2771, allocations: 3.704 MB / 0.4981 GB, free: 6.582 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01227/0.2894, allocations: 6.364 MB / 0.5043 GB, free: 1.379 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003892/0.2933, allocations: 4.52 MB / 0.5087 GB, free: 13.27 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002368/0.2957, allocations: 2.65 MB / 0.5113 GB, free: 11.13 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001853/0.2976, allocations: 2.238 MB / 0.5135 GB, free: 9.121 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002445/0.3, allocations: 2.556 MB / 0.516 GB, free: 7.062 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005165/0.3005, allocations: 420 kB / 0.5164 GB, free: 6.652 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01381/0.3144, allocations: 5.289 MB / 0.5215 GB, free: 1.699 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007247/0.3151, allocations: 0.9776 MB / 0.5225 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00192/0.317, allocations: 2.023 MB / 0.5245 GB, free: 14.69 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01441/0.3314, allocations: 9.822 MB / 0.5341 GB, free: 4.832 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.3315, allocations: 3.984 kB / 0.5341 GB, free: 4.828 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.437e-06/0.3315, allocations: 4 kB / 0.5341 GB, free: 4.824 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001226/0.3316, allocations: 3.938 kB / 0.5341 GB, free: 4.82 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.008481/0.3401, allocations: 4.754 MB / 0.5387 GB, free: 0 / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.3401, allocations: 12.08 kB / 0.5387 GB, free: 15.98 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004233/0.3406, allocations: 426.7 kB / 0.5391 GB, free: 15.56 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00313/0.3437, allocations: 0.8351 MB / 0.5399 GB, free: 14.72 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002007/0.3457, allocations: 1.609 MB / 0.5415 GB, free: 13.06 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001891/0.3459, allocations: 294.3 kB / 0.5418 GB, free: 12.76 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004457/0.3464, allocations: 332.2 kB / 0.5421 GB, free: 12.43 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005501/0.3519, allocations: 4.472 MB / 0.5465 GB, free: 7.891 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.376e-05/0.3519, allocations: 7.938 kB / 0.5465 GB, free: 7.883 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002889/0.3522, allocations: 124 kB / 0.5466 GB, free: 7.762 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.367e-05/0.3523, allocations: 76 kB / 0.5467 GB, free: 7.688 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00742/0.3597, allocations: 6.111 MB / 0.5526 GB, free: 1.566 MB / 414.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.01831/0.378, allocations: 14.06 MB / 0.5664 GB, free: 3.098 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007778/0.3858, allocations: 6.322 MB / 0.5725 GB, free: 12.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00261/0.3884, allocations: 2.239 MB / 0.5747 GB, free: 10.36 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01699/0.4054, allocations: 14.78 MB / 0.5892 GB, free: 10.23 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.308e-05/0.4055, allocations: 60.8 kB / 0.5892 GB, free: 10.16 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00117/0.4067, allocations: 377 kB / 0.5896 GB, free: 9.789 MB / 462.1 MB Notification: Performance of pre-optimization done (n=284): time 5.25e-06/0.4067, allocations: 4 kB / 0.5896 GB, free: 9.785 MB / 462.1 MB Notification: Performance of matching and sorting (n=387): time 0.2055/0.6122, allocations: 23.82 MB / 0.6128 GB, free: 128 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.6122, allocations: 99.58 kB / 0.6129 GB, free: 127.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001343/0.6136, allocations: 1.706 MB / 0.6146 GB, free: 127.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001821/0.6138, allocations: 93.27 kB / 0.6147 GB, free: 127.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004159/0.6142, allocations: 1.297 MB / 0.616 GB, free: 126.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005795/0.6148, allocations: 1.315 MB / 0.6172 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008737/0.6157, allocations: 0.7816 MB / 0.618 GB, free: 124.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 2.798e-05/0.6157, allocations: 301.1 kB / 0.6183 GB, free: 124.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002158/0.6179, allocations: 1.819 MB / 0.6201 GB, free: 123.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002518/0.6204, allocations: 2.82 MB / 0.6228 GB, free: 121.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005827/0.6262, allocations: 4.936 MB / 0.6276 GB, free: 118.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.358e-05/0.6262, allocations: 8.312 kB / 0.6277 GB, free: 118.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01558/0.6418, allocations: 6.805 MB / 0.6343 GB, free: 116.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/0.6419, allocations: 18.08 kB / 0.6343 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.765e-05/0.6419, allocations: 29.47 kB / 0.6343 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.009726/0.6516, allocations: 2.296 MB / 0.6366 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002828/0.6545, allocations: 0.8914 MB / 0.6375 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02006/0.6745, allocations: 18.39 MB / 0.6554 GB, free: 101.8 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002447/0.677, allocations: 143 kB / 0.6556 GB, free: 101.7 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002967/0.6773, allocations: 233 kB / 0.6558 GB, free: 101.7 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (469): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,26), (1,3), (1,6), (1,2), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0009716/0.6783, allocations: 0.5992 MB / 0.6564 GB, free: 101.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004821/0.6788, allocations: 270.1 kB / 0.6566 GB, free: 101.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01435/0.6931, allocations: 6.591 MB / 0.6631 GB, free: 98.65 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/0.6932, allocations: 45.05 kB / 0.6631 GB, free: 98.65 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.909e-06/0.6932, allocations: 7.156 kB / 0.6631 GB, free: 98.65 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.178e-05/0.6932, allocations: 24.62 kB / 0.6631 GB, free: 98.65 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01695/0.7102, allocations: 10.66 MB / 0.6735 GB, free: 91.7 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.7102, allocations: 4.656 kB / 0.6735 GB, free: 91.69 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002188/0.7124, allocations: 0.6514 MB / 0.6742 GB, free: 91.04 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.007769/0.7202, allocations: 2.022 MB / 0.6762 GB, free: 89.05 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002145/0.7204, allocations: 135.9 kB / 0.6763 GB, free: 88.91 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01583/0.7362, allocations: 17.03 MB / 0.6929 GB, free: 70.95 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.7362, allocations: 4 kB / 0.6929 GB, free: 70.95 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01444/0.7507, allocations: 8.467 MB / 0.7012 GB, free: 62.39 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008722/0.7516, allocations: 0.6939 MB / 0.7019 GB, free: 61.68 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003672/0.7519, allocations: 83.94 kB / 0.7019 GB, free: 61.59 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001622/0.7536, allocations: 95.91 kB / 0.702 GB, free: 61.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004826/0.7541, allocations: 349.2 kB / 0.7024 GB, free: 61.16 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002142/0.7543, allocations: 159.9 kB / 0.7025 GB, free: 61 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0008841/0.7552, allocations: 1.112 MB / 0.7036 GB, free: 59.87 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.7552, allocations: 1.594 kB / 0.7036 GB, free: 59.87 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004071/0.7593, allocations: 2.174 MB / 0.7057 GB, free: 57.92 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,blood_plasma.mass,HCO3.logn,CO2.logn,H2O.logn,HCO3_E.logn,CO2_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,others_E.logn,others_P.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 (354): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,8), (4,30), (1,3), (1,2), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01701/0.7763, allocations: 11.13 MB / 0.7166 GB, free: 47.14 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.01497/0.7913, allocations: 6.479 MB / 0.7229 GB, free: 40.59 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.7913, allocations: 8 kB / 0.7229 GB, free: 40.58 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004167/0.7954, allocations: 3.536 MB / 0.7264 GB, free: 36.97 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00194/0.7974, allocations: 0.5538 MB / 0.7269 GB, free: 36.47 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04484/0.8423, allocations: 34.32 MB / 0.7604 GB, free: 15.7 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001208/0.8435, allocations: 1.881 MB / 0.7623 GB, free: 13.79 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00253/0.846, allocations: 0.6702 MB / 0.7629 GB, free: 13.17 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001784/0.8478, allocations: 1.55 MB / 0.7645 GB, free: 11.62 MB / 478.1 MB Notification: Performance of SimCode: time 4.7e-07/0.8478, allocations: 0 / 0.7645 GB, free: 11.62 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2538/1.102, allocations: 109.9 MB / 0.8717 GB, free: 79.19 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.81/13.91, allocations: 19.73 kB / 0.8717 GB, free: 79.17 MB / 478.1 MB (rm -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_AcidBase_CarbonDioxideInBlood.fmu > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)