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.00482/0.00482, allocations: 101.1 kB / 15.73 MB, free: 6.039 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.001136/0.001136, allocations: 190.4 kB / 16.67 MB, free: 5.977 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.201/0.201, allocations: 15.32 MB / 305.9 MB, free: 15.23 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 67.89 kB / 424.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.276/0.2773, allocations: 53.61 MB / 478.3 MB, free: 25.63 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.0367/0.3141, allocations: 33.84 MB / 0.5002 GB, free: 0.8633 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.05188/0.366, allocations: 47.4 MB / 0.5465 GB, free: 1.277 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0025/0.3685, allocations: 39.75 kB / 0.5465 GB, free: 1.238 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00292/0.3714, allocations: 1.02 MB / 0.5475 GB, free: 216 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01141/0.3829, allocations: 3.729 MB / 0.5511 GB, free: 12.46 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01742/0.4003, allocations: 6.427 MB / 0.5574 GB, free: 5.992 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.006977/0.4073, allocations: 4.535 MB / 0.5618 GB, free: 1.438 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0039/0.4113, allocations: 2.655 MB / 0.5644 GB, free: 14.72 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003327/0.4146, allocations: 2.244 MB / 0.5666 GB, free: 12.47 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004636/0.4193, allocations: 2.562 MB / 0.5691 GB, free: 9.902 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001073/0.4204, allocations: 416 kB / 0.5695 GB, free: 9.496 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01527/0.4357, allocations: 5.281 MB / 0.5747 GB, free: 4.207 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001573/0.4373, allocations: 0.9776 MB / 0.5756 GB, free: 3.227 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002652/0.4399, allocations: 2.03 MB / 0.5776 GB, free: 1.188 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02096/0.4609, allocations: 9.896 MB / 0.5873 GB, free: 7.258 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.461, allocations: 0 / 0.5873 GB, free: 7.258 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.461, allocations: 0 / 0.5873 GB, free: 7.258 MB / 462.1 MB Notification: Performance of Transformations before backend: time 8.434e-05/0.4611, allocations: 0 / 0.5873 GB, free: 7.258 MB / 462.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.01032/0.4714, allocations: 4.762 MB / 0.5919 GB, free: 2.43 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.4714, allocations: 8.031 kB / 0.5919 GB, free: 2.422 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005089/0.472, allocations: 430.6 kB / 0.5923 GB, free: 1.988 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003644/0.4756, allocations: 0.8235 MB / 0.5932 GB, free: 1.16 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002698/0.4783, allocations: 1.663 MB / 0.5948 GB, free: 15.44 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002442/0.4786, allocations: 298.2 kB / 0.5951 GB, free: 15.14 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005564/0.4791, allocations: 328.2 kB / 0.5954 GB, free: 14.82 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007199/0.4863, allocations: 4.472 MB / 0.5997 GB, free: 10.27 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.08e-05/0.4864, allocations: 3.938 kB / 0.5997 GB, free: 10.27 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003251/0.4868, allocations: 128 kB / 0.5999 GB, free: 10.14 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.493e-05/0.4868, allocations: 76 kB / 0.5999 GB, free: 10.07 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009509/0.4963, allocations: 6.107 MB / 0.6059 GB, free: 3.953 MB / 478.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.2278/0.7242, allocations: 13.97 MB / 0.6195 GB, free: 107.8 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008956/0.7332, allocations: 6.31 MB / 0.6257 GB, free: 104.9 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003509/0.7367, allocations: 2.244 MB / 0.6279 GB, free: 103.9 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01942/0.7562, allocations: 14.77 MB / 0.6423 GB, free: 92.34 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.7563, allocations: 58.3 kB / 0.6424 GB, free: 92.29 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001576/0.7578, allocations: 384.6 kB / 0.6427 GB, free: 92.04 MB / 478.1 MB Notification: Performance of pre-optimization done (n=284): time 5.28e-06/0.7579, allocations: 2.656 kB / 0.6427 GB, free: 92.04 MB / 478.1 MB Notification: Performance of matching and sorting (n=387): time 0.07998/0.8378, allocations: 23.84 MB / 0.666 GB, free: 78.11 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.316e-05/0.8379, allocations: 102.3 kB / 0.6661 GB, free: 78 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001624/0.8395, allocations: 1.7 MB / 0.6678 GB, free: 76.25 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003893/0.8399, allocations: 92.36 kB / 0.6679 GB, free: 76.16 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000497/0.8405, allocations: 1.307 MB / 0.6692 GB, free: 74.84 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007774/0.8412, allocations: 1.303 MB / 0.6704 GB, free: 73.55 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001028/0.8423, allocations: 0.786 MB / 0.6712 GB, free: 72.75 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.71e-05/0.8423, allocations: 301.1 kB / 0.6715 GB, free: 72.45 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002469/0.8448, allocations: 1.823 MB / 0.6733 GB, free: 70.62 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00284/0.8476, allocations: 2.82 MB / 0.676 GB, free: 67.4 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005791/0.8534, allocations: 4.935 MB / 0.6808 GB, free: 62.1 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.429e-05/0.8535, allocations: 8 kB / 0.6808 GB, free: 62.09 MB / 478.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01633/0.8698, allocations: 6.811 MB / 0.6875 GB, free: 55.29 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.808e-05/0.8699, allocations: 16 kB / 0.6875 GB, free: 55.27 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.066e-05/0.8699, allocations: 28 kB / 0.6875 GB, free: 55.25 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01028/0.8802, allocations: 2.283 MB / 0.6898 GB, free: 52.99 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00351/0.8837, allocations: 0.891 MB / 0.6906 GB, free: 52.1 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02218/0.9059, allocations: 18.39 MB / 0.7086 GB, free: 32.8 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003142/0.9091, allocations: 142.6 kB / 0.7087 GB, free: 32.66 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004567/0.9096, allocations: 231.8 kB / 0.709 GB, free: 32.43 MB / 478.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.00123/0.9108, allocations: 0.6048 MB / 0.7095 GB, free: 31.82 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006042/0.9114, allocations: 268.6 kB / 0.7098 GB, free: 31.55 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01577/0.9272, allocations: 6.587 MB / 0.7162 GB, free: 25.05 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.92e-05/0.9273, allocations: 42.66 kB / 0.7163 GB, free: 25.02 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.621e-05/0.9273, allocations: 8 kB / 0.7163 GB, free: 25.01 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.371e-05/0.9274, allocations: 23.91 kB / 0.7163 GB, free: 24.98 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.021/0.9484, allocations: 10.65 MB / 0.7267 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.98e-05/0.9485, allocations: 4 kB / 0.7267 GB, free: 14.31 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002978/0.9514, allocations: 0.6476 MB / 0.7273 GB, free: 13.66 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.008993/0.9605, allocations: 2.012 MB / 0.7293 GB, free: 11.66 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007982/0.9613, allocations: 137.8 kB / 0.7294 GB, free: 11.53 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02043/0.9817, allocations: 17.03 MB / 0.7461 GB, free: 9.574 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.225e-06/0.9818, allocations: 11.94 kB / 0.7461 GB, free: 9.562 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02096/1.003, allocations: 8.463 MB / 0.7544 GB, free: 1.004 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001622/1.004, allocations: 0.6923 MB / 0.755 GB, free: 296 kB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005763/1.005, allocations: 91.92 kB / 0.7551 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002002/1.007, allocations: 95.88 kB / 0.7552 GB, free: 108 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007668/1.008, allocations: 337.5 kB / 0.7555 GB, free: 15.78 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003641/1.008, allocations: 159.9 kB / 0.7557 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.001553/1.01, allocations: 1.116 MB / 0.7568 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/1.01, allocations: 0 / 0.7568 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.005815/1.016, allocations: 2.185 MB / 0.7589 GB, free: 12.53 MB / 0.4981 GB 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.0259/1.041, allocations: 11.12 MB / 0.7698 GB, free: 1.875 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.01162/1.053, allocations: 5.854 MB / 0.7755 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/1.053, allocations: 1.875 kB / 0.7755 GB, free: 11.93 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.007155/1.06, allocations: 3.542 MB / 0.7789 GB, free: 8.297 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003876/1.064, allocations: 0.5464 MB / 0.7795 GB, free: 7.785 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07146/1.136, allocations: 31.07 MB / 0.8098 GB, free: 7.508 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002026/1.138, allocations: 1.881 MB / 0.8116 GB, free: 5.594 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.002843/1.141, allocations: 0.6705 MB / 0.8123 GB, free: 4.953 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002633/1.143, allocations: 1.55 MB / 0.8138 GB, free: 3.402 MB / 0.545 GB Notification: Performance of SimCode: time 1.263e-06/1.143, allocations: 0 / 0.8138 GB, free: 3.402 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3858/1.529, allocations: 110.9 MB / 0.9222 GB, free: 103.1 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 49.02/50.55, allocations: 3.75 kB / 0.9222 GB, free: 103.1 MB / 0.545 GB (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)