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: translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") translateModel(Chemical.Examples.AcidBase.CarbonDioxideInBlood,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01151/0.01151, allocations: 103.2 kB / 15.73 MB, free: 6.047 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.002381/0.002381, allocations: 195.7 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.577/1.577, allocations: 222.9 MB / 240.3 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2377/0.2377, allocations: 15.32 MB / 305.8 MB, free: 15.22 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001178/0.001178, allocations: 59.91 kB / 425.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3098/0.311, allocations: 53.61 MB / 478.8 MB, free: 25.9 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.03898/0.35, allocations: 33.8 MB / 0.5006 GB, free: 0.8398 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0645/0.4145, allocations: 47.41 MB / 0.5469 GB, free: 1.246 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003922/0.4185, allocations: 35.81 kB / 0.5469 GB, free: 1.211 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004303/0.4228, allocations: 1.02 MB / 0.5479 GB, free: 188 kB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0151/0.4379, allocations: 3.705 MB / 0.5515 GB, free: 12.45 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.017/0.455, allocations: 6.38 MB / 0.5578 GB, free: 6.035 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.008763/0.4638, allocations: 4.531 MB / 0.5622 GB, free: 1.484 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004496/0.4683, allocations: 2.655 MB / 0.5648 GB, free: 14.77 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003853/0.4722, allocations: 2.248 MB / 0.567 GB, free: 12.52 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00499/0.4772, allocations: 2.55 MB / 0.5695 GB, free: 9.957 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001449/0.4786, allocations: 416 kB / 0.5699 GB, free: 9.551 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01661/0.4953, allocations: 5.289 MB / 0.575 GB, free: 4.254 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001524/0.4968, allocations: 0.9815 MB / 0.576 GB, free: 3.27 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003406/0.5003, allocations: 2.023 MB / 0.578 GB, free: 1.238 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02834/0.5286, allocations: 9.9 MB / 0.5876 GB, free: 7.305 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.5287, allocations: 0 / 0.5876 GB, free: 7.305 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.5287, allocations: 0 / 0.5876 GB, free: 7.305 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0001923/0.5289, allocations: 0 / 0.5876 GB, free: 7.305 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.01248/0.5414, allocations: 4.754 MB / 0.5923 GB, free: 2.484 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.858e-05/0.5414, allocations: 8.031 kB / 0.5923 GB, free: 2.477 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004358/0.5458, allocations: 0.8352 MB / 0.5931 GB, free: 1.637 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003306/0.5491, allocations: 1.659 MB / 0.5947 GB, free: 15.92 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002616/0.5494, allocations: 294.3 kB / 0.595 GB, free: 15.62 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007008/0.5501, allocations: 332.1 kB / 0.5953 GB, free: 15.29 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00779/0.5579, allocations: 4.48 MB / 0.5997 GB, free: 10.74 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.638e-05/0.558, allocations: 3.938 kB / 0.5997 GB, free: 10.74 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003245/0.5583, allocations: 128 kB / 0.5998 GB, free: 10.61 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.336e-05/0.5584, allocations: 76 kB / 0.5999 GB, free: 10.54 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009664/0.568, allocations: 6.103 MB / 0.6059 GB, free: 4.426 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.2682/0.8362, allocations: 13.96 MB / 0.6195 GB, free: 108.1 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009592/0.8459, allocations: 6.325 MB / 0.6257 GB, free: 105.2 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003645/0.8496, allocations: 2.244 MB / 0.6279 GB, free: 104.2 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01883/0.8684, allocations: 14.77 MB / 0.6423 GB, free: 92.8 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.8685, allocations: 61.14 kB / 0.6423 GB, free: 92.75 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.001599/0.8701, allocations: 384.7 kB / 0.6427 GB, free: 92.5 MB / 478.1 MB Notification: Performance of pre-optimization done (n=284): time 7.224e-06/0.8701, allocations: 0 / 0.6427 GB, free: 92.5 MB / 478.1 MB Notification: Performance of matching and sorting (n=387): time 0.08438/0.9545, allocations: 23.84 MB / 0.666 GB, free: 78.45 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.289e-05/0.9546, allocations: 90.45 kB / 0.6661 GB, free: 78.35 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001931/0.9565, allocations: 1.714 MB / 0.6677 GB, free: 76.59 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006778/0.9572, allocations: 93.64 kB / 0.6678 GB, free: 76.49 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005565/0.9578, allocations: 1.304 MB / 0.6691 GB, free: 75.18 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001278/0.9591, allocations: 1.307 MB / 0.6704 GB, free: 73.89 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001068/0.9601, allocations: 0.7835 MB / 0.6711 GB, free: 73.09 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 4.66e-05/0.9602, allocations: 305.1 kB / 0.6714 GB, free: 72.79 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00244/0.9626, allocations: 1.823 MB / 0.6732 GB, free: 70.96 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002972/0.9656, allocations: 2.82 MB / 0.676 GB, free: 67.73 MB / 478.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006092/0.9717, allocations: 4.931 MB / 0.6808 GB, free: 62.44 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/0.9718, allocations: 10.66 kB / 0.6808 GB, free: 62.43 MB / 478.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01673/0.9885, allocations: 6.808 MB / 0.6874 GB, free: 55.62 MB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.237e-05/0.9886, allocations: 16 kB / 0.6875 GB, free: 55.61 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.181e-05/0.9887, allocations: 31.98 kB / 0.6875 GB, free: 55.58 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01062/0.9993, allocations: 2.278 MB / 0.6897 GB, free: 53.33 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003526/1.003, allocations: 0.888 MB / 0.6906 GB, free: 52.44 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02191/1.025, allocations: 18.4 MB / 0.7086 GB, free: 33.14 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003545/1.028, allocations: 140 kB / 0.7087 GB, free: 33 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005453/1.029, allocations: 231.8 kB / 0.7089 GB, free: 32.77 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.001389/1.03, allocations: 0.6086 MB / 0.7095 GB, free: 32.16 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007755/1.031, allocations: 268.6 kB / 0.7098 GB, free: 31.89 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01561/1.047, allocations: 6.59 MB / 0.7162 GB, free: 25.39 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.473e-05/1.047, allocations: 40 kB / 0.7162 GB, free: 25.35 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.027e-05/1.047, allocations: 11.98 kB / 0.7162 GB, free: 25.34 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.557e-05/1.047, allocations: 19.92 kB / 0.7163 GB, free: 25.32 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0213/1.068, allocations: 10.64 MB / 0.7267 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-05/1.068, allocations: 7.938 kB / 0.7267 GB, free: 14.65 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002979/1.071, allocations: 0.6579 MB / 0.7273 GB, free: 13.99 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0091/1.08, allocations: 2.007 MB / 0.7293 GB, free: 12 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008123/1.081, allocations: 135.9 kB / 0.7294 GB, free: 11.87 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01994/1.101, allocations: 17.03 MB / 0.746 GB, free: 9.914 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.007e-06/1.101, allocations: 8 kB / 0.746 GB, free: 9.906 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02018/1.121, allocations: 8.47 MB / 0.7543 GB, free: 1.34 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001701/1.123, allocations: 0.6884 MB / 0.755 GB, free: 0.6289 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004504/1.124, allocations: 87.98 kB / 0.7551 GB, free: 0.543 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001878/1.126, allocations: 95.97 kB / 0.7552 GB, free: 460 kB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007321/1.126, allocations: 341.1 kB / 0.7555 GB, free: 120 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003311/1.127, allocations: 156.8 kB / 0.7556 GB, free: 15.96 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.00144/1.128, allocations: 1.115 MB / 0.7567 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/1.128, allocations: 0 / 0.7567 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.006873/1.135, allocations: 2.181 MB / 0.7588 GB, free: 12.88 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.004208/1.139, allocations: 2.19 MB / 0.761 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0119/1.151, allocations: 5.849 MB / 0.7667 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.002e-05/1.151, allocations: 7.938 kB / 0.7667 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.00718/1.158, allocations: 3.546 MB / 0.7702 GB, free: 1.699 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003007/1.161, allocations: 0.5554 MB / 0.7707 GB, free: 1.18 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01233/1.174, allocations: 6.636 MB / 0.7772 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001653/1.175, allocations: 1.881 MB / 0.779 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.002934/1.178, allocations: 0.6688 MB / 0.7797 GB, free: 7.961 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001213/1.18, allocations: 455.1 kB / 0.7801 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of SimCode: time 1.714e-06/1.18, allocations: 0 / 0.7801 GB, free: 7.516 MB / 0.5137 GB Notification: Performance of Templates: time 0.3595/1.539, allocations: 87.76 MB / 0.8658 GB, free: 156.3 MB / 0.545 GB make -j1 -f Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.makefile (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 & ./Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1)