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.001136/0.001136, allocations: 100.1 kB / 15.88 MB, free: 12 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.001362/0.001362, allocations: 197.8 kB / 16.79 MB, free: 6.809 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.336/1.336, allocations: 222.9 MB / 240.5 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1982/0.1982, allocations: 15.32 MB / 305.9 MB, free: 15.34 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002105/0.002105, allocations: 59.91 kB / 370.3 MB, free: 4.434 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.146, allocations: 53.62 MB / 423.9 MB, free: 14.77 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.2425/0.3885, allocations: 35.52 MB / 459.4 MB, free: 37.19 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0412/0.4297, allocations: 47.31 MB / 0.4949 GB, free: 9.406 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002726/0.4325, allocations: 68.88 kB / 0.4949 GB, free: 9.375 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00297/0.4354, allocations: 0.9176 MB / 0.4958 GB, free: 8.789 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01164/0.4471, allocations: 3.267 MB / 0.499 GB, free: 6.059 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01941/0.4666, allocations: 5.587 MB / 0.5045 GB, free: 1.418 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.007365/0.4739, allocations: 4.352 MB / 0.5087 GB, free: 13.48 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004115/0.4781, allocations: 2.312 MB / 0.511 GB, free: 11.68 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004459/0.4826, allocations: 2.176 MB / 0.5131 GB, free: 9.742 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004911/0.4875, allocations: 2.503 MB / 0.5156 GB, free: 7.754 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001445/0.489, allocations: 280 kB / 0.5158 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02437/0.5134, allocations: 5.178 MB / 0.5209 GB, free: 2.762 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00268/0.5162, allocations: 0.8643 MB / 0.5217 GB, free: 1.895 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005175/0.5214, allocations: 1.905 MB / 0.5236 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02189/0.5433, allocations: 7.245 MB / 0.5307 GB, free: 8.711 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.379e-05/0.5434, allocations: 4 kB / 0.5307 GB, free: 8.707 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.5434, allocations: 0 / 0.5307 GB, free: 8.707 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0001952/0.5436, allocations: 0 / 0.5307 GB, free: 8.707 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.01986/0.5635, allocations: 4.767 MB / 0.5353 GB, free: 3.875 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.537e-05/0.5636, allocations: 8.031 kB / 0.5353 GB, free: 3.867 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007828/0.5714, allocations: 0.8428 MB / 0.5362 GB, free: 3.023 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005873/0.5774, allocations: 1.593 MB / 0.5377 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006072/0.578, allocations: 294.3 kB / 0.538 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00202/0.5801, allocations: 332.2 kB / 0.5383 GB, free: 0.75 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01053/0.5906, allocations: 4.477 MB / 0.5427 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.929e-05/0.5907, allocations: 3.938 kB / 0.5427 GB, free: 12.2 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003812/0.5911, allocations: 128 kB / 0.5428 GB, free: 12.07 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-05/0.5912, allocations: 76 kB / 0.5429 GB, free: 12 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01089/0.6021, allocations: 6.107 MB / 0.5488 GB, free: 5.883 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.03124/0.6334, allocations: 14.02 MB / 0.5625 GB, free: 7.449 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01066/0.6441, allocations: 6.316 MB / 0.5687 GB, free: 0.9609 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004291/0.6484, allocations: 2.243 MB / 0.5709 GB, free: 14.71 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02658/0.675, allocations: 14.79 MB / 0.5853 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.094e-05/0.6751, allocations: 64.8 kB / 0.5854 GB, free: 14.5 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002142/0.6773, allocations: 373 kB / 0.5858 GB, free: 14.13 MB / 462.1 MB Notification: Performance of pre-optimization done (n=284): time 1.509e-05/0.6773, allocations: 0 / 0.5858 GB, free: 14.13 MB / 462.1 MB Notification: Performance of matching and sorting (n=387): time 0.2768/0.9541, allocations: 23.81 MB / 0.609 GB, free: 128 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.474e-05/0.9541, allocations: 93.67 kB / 0.6091 GB, free: 127.9 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001867/0.956, allocations: 1.705 MB / 0.6108 GB, free: 127.2 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005936/0.9566, allocations: 93.89 kB / 0.6108 GB, free: 127.1 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005885/0.9572, allocations: 1.307 MB / 0.6121 GB, free: 126.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001008/0.9582, allocations: 1.305 MB / 0.6134 GB, free: 125.1 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001065/0.9593, allocations: 0.7756 MB / 0.6142 GB, free: 124.7 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.903e-05/0.9594, allocations: 301.1 kB / 0.6144 GB, free: 124.4 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002615/0.962, allocations: 1.818 MB / 0.6162 GB, free: 123.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003202/0.9652, allocations: 2.822 MB / 0.619 GB, free: 121.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00642/0.9716, allocations: 4.933 MB / 0.6238 GB, free: 118.9 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.701e-05/0.9717, allocations: 6.062 kB / 0.6238 GB, free: 118.9 MB / 462.1 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01914/0.9908, allocations: 6.818 MB / 0.6305 GB, free: 116.5 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.139e-05/0.9909, allocations: 19.88 kB / 0.6305 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-05/0.991, allocations: 29.69 kB / 0.6305 GB, free: 116.5 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.01183/1.003, allocations: 2.282 MB / 0.6327 GB, free: 116.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004159/1.007, allocations: 0.8997 MB / 0.6336 GB, free: 116 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0242/1.031, allocations: 17 MB / 0.6502 GB, free: 103 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00377/1.035, allocations: 211.9 kB / 0.6504 GB, free: 102.9 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004837/1.036, allocations: 232 kB / 0.6506 GB, free: 102.8 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.001447/1.037, allocations: 0.6108 MB / 0.6512 GB, free: 102.4 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006739/1.038, allocations: 273 kB / 0.6515 GB, free: 102.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01737/1.055, allocations: 6.575 MB / 0.6579 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.102e-05/1.055, allocations: 43.28 kB / 0.6579 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.07e-05/1.055, allocations: 10.47 kB / 0.658 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.935e-05/1.055, allocations: 21.92 kB / 0.658 GB, free: 99.82 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02208/1.077, allocations: 10.66 MB / 0.6684 GB, free: 95.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.41e-05/1.077, allocations: 3.906 kB / 0.6684 GB, free: 95.46 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002885/1.08, allocations: 0.6522 MB / 0.669 GB, free: 95.39 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.009688/1.09, allocations: 2.062 MB / 0.671 GB, free: 93.71 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007198/1.091, allocations: 143.3 kB / 0.6712 GB, free: 93.57 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01846/1.109, allocations: 15.68 MB / 0.6865 GB, free: 76.98 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.879e-06/1.109, allocations: 7.938 kB / 0.6865 GB, free: 76.97 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01901/1.128, allocations: 8.465 MB / 0.6948 GB, free: 68.41 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001748/1.13, allocations: 0.6962 MB / 0.6954 GB, free: 67.7 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004746/1.131, allocations: 83.94 kB / 0.6955 GB, free: 67.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002151/1.133, allocations: 149.1 kB / 0.6957 GB, free: 67.47 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006815/1.133, allocations: 338.8 kB / 0.696 GB, free: 67.14 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002875/1.134, allocations: 162.6 kB / 0.6961 GB, free: 66.99 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.001223/1.135, allocations: 1.117 MB / 0.6972 GB, free: 65.85 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.3e-07/1.135, allocations: 0 / 0.6972 GB, free: 65.85 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.005896/1.141, allocations: 2.155 MB / 0.6993 GB, free: 63.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.003555/1.144, allocations: 2.198 MB / 0.7015 GB, free: 62.33 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.009186/1.154, allocations: 5.838 MB / 0.7072 GB, free: 56.42 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.215e-06/1.154, allocations: 0 / 0.7072 GB, free: 56.42 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005694/1.159, allocations: 3.532 MB / 0.7106 GB, free: 52.81 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002971/1.162, allocations: 0.5125 MB / 0.7111 GB, free: 52.33 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01098/1.173, allocations: 8.245 MB / 0.7192 GB, free: 44.24 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00112/1.175, allocations: 1.882 MB / 0.721 GB, free: 42.37 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001792/1.176, allocations: 0.5505 MB / 0.7216 GB, free: 41.82 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/1.176, allocations: 0 / 0.7216 GB, free: 41.82 MB / 462.1 MB Notification: Performance of Templates: time 0.3058/1.482, allocations: 168.1 MB / 0.8858 GB, free: 62.39 MB / 478.1 MB 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)