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.001205/0.001206, allocations: 109.5 kB / 16.42 MB, free: 6.457 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.001226/0.001226, allocations: 190.7 kB / 17.35 MB, free: 5.715 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.276/1.276, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.07513/0.07513, allocations: 15.31 MB / 306.5 MB, free: 15.39 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 59.91 kB / 425.9 MB, free: 11.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08327/0.08448, allocations: 53.62 MB / 479.5 MB, free: 5.766 MB / 350.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.04126/0.1258, allocations: 33.8 MB / 0.5013 GB, free: 4.02 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2279/0.3537, allocations: 47.4 MB / 0.5476 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00209/0.3558, allocations: 35.75 kB / 0.5476 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003197/0.3591, allocations: 1.019 MB / 0.5486 GB, free: 11.51 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01064/0.3697, allocations: 3.707 MB / 0.5522 GB, free: 8.691 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01663/0.3864, allocations: 6.362 MB / 0.5584 GB, free: 3.812 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.005832/0.3922, allocations: 4.538 MB / 0.5628 GB, free: 1.121 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003105/0.3954, allocations: 2.657 MB / 0.5654 GB, free: 14.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003062/0.3984, allocations: 2.232 MB / 0.5676 GB, free: 12.28 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00379/0.4023, allocations: 2.574 MB / 0.5701 GB, free: 9.695 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008212/0.4031, allocations: 416 kB / 0.5705 GB, free: 9.289 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0167/0.4198, allocations: 5.285 MB / 0.5757 GB, free: 3.996 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00222/0.4221, allocations: 0.988 MB / 0.5767 GB, free: 3.008 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003119/0.4252, allocations: 2.019 MB / 0.5786 GB, free: 0.9805 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02222/0.4474, allocations: 9.896 MB / 0.5883 GB, free: 7.051 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.4475, allocations: 0 / 0.5883 GB, free: 7.051 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.4475, allocations: 0 / 0.5883 GB, free: 7.051 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.716e-05/0.4476, allocations: 4 kB / 0.5883 GB, free: 7.047 MB / 430.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.009971/0.4576, allocations: 4.751 MB / 0.5929 GB, free: 2.266 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.364e-05/0.4576, allocations: 8.031 kB / 0.5929 GB, free: 2.258 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003823/0.4615, allocations: 0.8338 MB / 0.5938 GB, free: 1.422 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002801/0.4643, allocations: 1.658 MB / 0.5954 GB, free: 15.72 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002395/0.4645, allocations: 294.3 kB / 0.5957 GB, free: 15.42 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005866/0.4651, allocations: 332.1 kB / 0.596 GB, free: 15.09 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007675/0.4728, allocations: 4.479 MB / 0.6003 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.245e-05/0.4729, allocations: 0 / 0.6003 GB, free: 10.55 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003568/0.4733, allocations: 130.7 kB / 0.6005 GB, free: 10.42 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.739e-05/0.4733, allocations: 76 kB / 0.6005 GB, free: 10.35 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009485/0.4828, allocations: 6.107 MB / 0.6065 GB, free: 4.23 MB / 446.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.02539/0.5083, allocations: 13.97 MB / 0.6202 GB, free: 5.887 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009791/0.5181, allocations: 6.318 MB / 0.6263 GB, free: 15.41 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00348/0.5216, allocations: 2.243 MB / 0.6285 GB, free: 13.16 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02251/0.5441, allocations: 14.77 MB / 0.6429 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.118e-05/0.5442, allocations: 67.47 kB / 0.643 GB, free: 12.99 MB / 494.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00187/0.5461, allocations: 375.7 kB / 0.6434 GB, free: 12.62 MB / 494.1 MB Notification: Performance of pre-optimization done (n=284): time 1.294e-05/0.5461, allocations: 0 / 0.6434 GB, free: 12.62 MB / 494.1 MB Notification: Performance of matching and sorting (n=387): time 0.09361/0.6398, allocations: 23.84 MB / 0.6666 GB, free: 4.691 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.003e-05/0.6398, allocations: 90.45 kB / 0.6667 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002296/0.6422, allocations: 1.716 MB / 0.6684 GB, free: 2.828 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 0.0004688/0.6426, allocations: 85.7 kB / 0.6685 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008993/0.6435, allocations: 1.305 MB / 0.6698 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.00143/0.645, allocations: 1.301 MB / 0.671 GB, free: 96 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001493/0.6465, allocations: 0.7797 MB / 0.6718 GB, free: 15.3 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001267/0.6466, allocations: 305.1 kB / 0.6721 GB, free: 15 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00309/0.6497, allocations: 1.82 MB / 0.6739 GB, free: 13.17 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004064/0.6538, allocations: 2.823 MB / 0.6766 GB, free: 9.914 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007823/0.6616, allocations: 4.932 MB / 0.6814 GB, free: 4.555 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.867e-05/0.6617, allocations: 11.94 kB / 0.6814 GB, free: 4.543 MB / 0.5137 GB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01986/0.6816, allocations: 6.816 MB / 0.6881 GB, free: 13.68 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 3.982e-05/0.6816, allocations: 16 kB / 0.6881 GB, free: 13.66 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.557e-05/0.6817, allocations: 28 kB / 0.6881 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01132/0.693, allocations: 2.287 MB / 0.6904 GB, free: 11.32 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003705/0.6967, allocations: 0.8893 MB / 0.6912 GB, free: 10.43 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02716/0.7239, allocations: 18.39 MB / 0.7092 GB, free: 7.008 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003574/0.7275, allocations: 140 kB / 0.7093 GB, free: 6.871 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001025/0.7286, allocations: 232.9 kB / 0.7096 GB, free: 6.645 MB / 0.545 GB 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.002251/0.7308, allocations: 0.6107 MB / 0.7102 GB, free: 6.023 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001008/0.7319, allocations: 276.5 kB / 0.7104 GB, free: 5.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2058/0.9377, allocations: 6.575 MB / 0.7168 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001299/0.9379, allocations: 20.58 kB / 0.7169 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.746e-06/0.9379, allocations: 1.031 kB / 0.7169 GB, free: 183.7 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001615/0.9395, allocations: 0.6915 MB / 0.7175 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004793/0.94, allocations: 76.69 kB / 0.7176 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001959/0.9419, allocations: 92 kB / 0.7177 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007672/0.9427, allocations: 342.1 kB / 0.718 GB, free: 183.6 MB / 0.545 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.01458/0.9573, allocations: 5.554 MB / 0.7234 GB, free: 183.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.01083/0.9682, allocations: 6.749 MB / 0.73 GB, free: 180.6 MB / 0.545 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.003077/0.9713, allocations: 1.965 MB / 0.732 GB, free: 179.8 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.001446/0.9727, allocations: 1.115 MB / 0.733 GB, free: 179.3 MB / 0.545 GB Notification: Performance of Backend: time 5.11e-07/0.9728, allocations: 1.531 kB / 0.733 GB, free: 179.3 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01298/0.9857, allocations: 6.961 MB / 0.7398 GB, free: 177.1 MB / 0.545 GB Notification: Performance of SimCode: time 0.007483/0.9933, allocations: 6.509 MB / 0.7462 GB, free: 173.9 MB / 0.545 GB Notification: Performance of Templates: time 0.1024/1.096, allocations: 94.58 MB / 0.8386 GB, free: 88.74 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)